feat: Add shop logic and popup UI (#34). Update config tests and

defaults
This commit is contained in:
demenik
2025-12-01 13:42:19 +01:00
parent 91300e3f4d
commit 4b28f80bcb
10 changed files with 140 additions and 2 deletions

View File

@@ -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(),