MCPcopy Create free account
hub / github.com/TanTanDev/rusty_demon_attack / get_enemy_spawn_count

Method get_enemy_spawn_count

src/wave.rs:66–74  ·  view source on GitHub ↗
(time: &f32)

Source from the content-addressed store, hash-verified

64 }
65
66 fn get_enemy_spawn_count(time: &f32) -> i32 {
67 let fraction = time / TIME_UNTIL_MAX_DIFFICULTY;
68 let spawn_countf32 = lininterp::lerp(
69 &(ENEMY_SPAWN_STARTING_COUNT as f32),
70 &(ENEMY_SPAWN_MAX_COUNT as f32),
71 &fraction,
72 );
73 spawn_countf32 as i32
74 }
75
76 pub fn update(
77 &mut self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected