Add assets

This commit is contained in:
Daniel Flanagan 2023-12-20 13:27:04 -06:00
parent 9b8918d43e
commit 72918dd102
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
2 changed files with 1 additions and 1 deletions

BIN
assets/img/square.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 B

View file

@ -22,7 +22,7 @@ impl Plugin for AssetLoader {
fn load_assets(mut sprite_assets: ResMut<Assets>, asset_server: Res<AssetServer>) { fn load_assets(mut sprite_assets: ResMut<Assets>, asset_server: Res<AssetServer>) {
*sprite_assets = Assets { *sprite_assets = Assets {
sprites: Sprites { sprites: Sprites {
square: asset_server.load("assets/img/square.png"), square: asset_server.load("img/square.png"),
}, },
}; };
} }