Move flappy bird assets to flappy assets dir

main
Elijah Voigt 3 months ago
parent aac5430f9e
commit 129db30e55

@ -22,7 +22,7 @@ dist/trees/index.html: web/trees.html
cp ./web/trees.html ./dist/trees/index.html
# Copy assets
dist/trees/assets:
dist/trees/assets/trees:
rm -rf dist/trees/assets
rsync -av \
--include='*/' \
@ -30,8 +30,8 @@ dist/trees/assets:
--include='*.mono' \
--exclude='*' \
--delete \
assets/ \
dist/trees/assets
assets/trees \
dist/trees/assets/trees
# Helpful shorthand to serve files
web/trees/serve: web/trees

BIN
assets/flappy/bevy.png (Stored with Git LFS)

Binary file not shown.

BIN
assets/flappy/bird.png (Stored with Git LFS)

Binary file not shown.

BIN
assets/flappy/ground.png (Stored with Git LFS)

Binary file not shown.

BIN
assets/flappy/pipe.png (Stored with Git LFS)

Binary file not shown.

@ -141,7 +141,7 @@ fn init_bird(
mut materials: ResMut<Assets<ColorMaterial>>,
) {
let material = MeshMaterial2d(materials.add(ColorMaterial {
texture: Some(server.load("kenny.nl/1-bit-platformer-pack/tile_0380.png")),
texture: Some(server.load("flappy/bird.png")),
color: ORANGE.into(),
alpha_mode: AlphaMode2d::Blend,
..default()
@ -340,14 +340,14 @@ fn init_obstacle_assets(
server: Res<AssetServer>,
) {
pipe_assets.material = MeshMaterial2d(materials.add(ColorMaterial {
texture: Some(server.load("kenny.nl/1-bit-platformer-pack/tile_0247.png")),
texture: Some(server.load("flappy/pipe.png")),
color: GREEN.into(),
..default()
}));
pipe_assets.mesh = Mesh2d(meshes.add(Rectangle::new(1.0, 1.0)));
ground_assets.material = MeshMaterial2d(materials.add(ColorMaterial {
texture: Some(server.load("kenny.nl/1-bit-platformer-pack/tile_0088.png")),
texture: Some(server.load("flappy/ground.png")),
color: BLACK.into(),
..default()
}));

Loading…
Cancel
Save