Add assets
This commit is contained in:
parent
9b8918d43e
commit
72918dd102
BIN
assets/img/square.png
Normal file
BIN
assets/img/square.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 125 B |
|
@ -22,7 +22,7 @@ impl Plugin for AssetLoader {
|
|||
fn load_assets(mut sprite_assets: ResMut<Assets>, asset_server: Res<AssetServer>) {
|
||||
*sprite_assets = Assets {
|
||||
sprites: Sprites {
|
||||
square: asset_server.load("assets/img/square.png"),
|
||||
square: asset_server.load("img/square.png"),
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue