Closed this issue 3 years ago · 1 comments
If all enemies are cleared before any to spawn (easy to reproduce), the ActiveEnemies underflow to u32.MAX, prevents new enemies to spawn.
ActiveEnemies
rust-invaders/src/main.rs
Line 36 in 314fda9
i32 may be better.
i32
I am following the video tutorial, clearly this is fixed in the latest code.