(time: &f32)
| 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, |
nothing calls this directly
no outgoing calls
no test coverage detected