feat: Add shop logic and popup UI (#34). Update config tests and
defaults
This commit is contained in:
@@ -7,6 +7,8 @@ pub struct GameConfig {
|
||||
pub grid_width: u32,
|
||||
pub grid_height: u32,
|
||||
pub pom_speed: f32,
|
||||
pub shovel_base_price: u32,
|
||||
pub shovel_rate: f32,
|
||||
pub berry_seeds: Vec<BerrySeedConfig>,
|
||||
}
|
||||
|
||||
@@ -25,6 +27,8 @@ impl Default for GameConfig {
|
||||
grid_width: 12,
|
||||
grid_height: 4,
|
||||
pom_speed: 1.5,
|
||||
shovel_base_price: 10,
|
||||
shovel_rate: 0.2,
|
||||
berry_seeds: vec![
|
||||
BerrySeedConfig {
|
||||
name: "Normale Samen".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user