From fe4708d52dfccc8d8d552806fcd40a61b43a9062 Mon Sep 17 00:00:00 2001 From: Elijah Voigt Date: Mon, 4 Aug 2025 11:02:16 -0700 Subject: [PATCH] Using sprite for main character --- src/base_game.rs | 2 +- src/bin/flappy/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base_game.rs b/src/base_game.rs index 518b6af..6b084f8 100644 --- a/src/base_game.rs +++ b/src/base_game.rs @@ -29,7 +29,7 @@ impl Plugin for BaseGamePlugin { ..default() }), ..default() - })) + }).set(ImagePlugin::default_nearest())) .add_plugins(DebuggingPlugin) .add_plugins(MeshPickingPlugin) .add_plugins(LoadingPlugin) diff --git a/src/bin/flappy/main.rs b/src/bin/flappy/main.rs index c87b642..23d0d26 100644 --- a/src/bin/flappy/main.rs +++ b/src/bin/flappy/main.rs @@ -116,8 +116,8 @@ fn init_bird( mut materials: ResMut>, ) { let material = MeshMaterial2d(materials.add(ColorMaterial { - texture: Some(server.load("flappy/bevy.png")), - color: WHITE.into(), + texture: Some(server.load("kenny.nl/1-bit-platformer-pack/tile_0380.png")), + color: BLACK.into(), alpha_mode: AlphaMode2d::Blend, ..default() }));