Fixed some most memory leaks

This commit is contained in:
2026-05-08 17:26:29 +10:00
parent 07c7b1b443
commit e582796b20
3 changed files with 36 additions and 7 deletions
+6 -2
View File
@@ -9,9 +9,13 @@ fn onReady() {
fn onStep() {
frameCounter++;
if (frameCounter % 100 == 0) {
spawnActorAt("zombie", posCounter*50, posCounter*50);
// if (frameCounter % 10 == 0) {
spawnActorAt("zombie", posCounter*5, posCounter*5);
posCounter++;
// }
if (posCounter > 150) {
posCounter = 0;
}
}