feat: ✨ market
This commit is contained in:
parent
79f115c6ef
commit
9f52e24582
6 changed files with 92 additions and 7 deletions
|
@ -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,
|
||||
},
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue