idk
This commit is contained in:
parent
fa2a98720e
commit
0b82aebd1f
6 changed files with 7 additions and 1 deletions
BIN
assets/sprites/plants/Peashooter.aseprite
Normal file
BIN
assets/sprites/plants/Peashooter.aseprite
Normal file
Binary file not shown.
BIN
assets/sprites/plants/Sunflower.aseprite
Normal file
BIN
assets/sprites/plants/Sunflower.aseprite
Normal file
Binary file not shown.
BIN
assets/sprites/plants/Sunflower.png
Normal file
BIN
assets/sprites/plants/Sunflower.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 496 B |
BIN
assets/sprites/plants/peashooter.png
Normal file
BIN
assets/sprites/plants/peashooter.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 480 B |
0
src/debug.rs
Normal file
0
src/debug.rs
Normal file
|
|
@ -8,5 +8,11 @@ mod health;
|
|||
mod level;
|
||||
|
||||
fn main() {
|
||||
App::new().add_plugins(DefaultPlugins).add_plugins(HealthPlugin).run();
|
||||
App::new().add_plugins(DefaultPlugins).add_plugins(HealthPlugin).add_systems(Startup, setup).run();
|
||||
}
|
||||
|
||||
fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
|
||||
commands.spawn(Camera2d);
|
||||
|
||||
commands.spawn(Sprite::from_image(asset_server.load("sprites/background.png")));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue