feat: market

This commit is contained in:
Ahmet Kaan Gümüş 2025-02-18 16:52:59 +03:00
parent 79f115c6ef
commit 9f52e24582
6 changed files with 92 additions and 7 deletions

View file

@ -5,6 +5,7 @@ use crate::CHARACTER_SPEED;
#[derive(Debug, Component)]
pub struct Player {
pub fish_count: usize,
pub money: usize,
}
impl Player {
@ -13,7 +14,10 @@ impl Player {
commands.spawn((
Sprite::from_image(image),
Transform::from_xyz(0.0, 0.0, 0.0),
Player { fish_count: 0 },
Player {
fish_count: 0,
money: 0,
},
));
}