diff --git a/Toy b/Toy index 750ebd1..b0387ed 160000 --- a/Toy +++ b/Toy @@ -1 +1 @@ -Subproject commit 750ebd1f99f2a6a4e82e344d4f0c2a2b9da7b225 +Subproject commit b0387edeb0f9227067e1a1dc276b926c68992d17 diff --git a/assets/main.toy b/assets/main.toy index ccc5b47..a2e666d 100644 --- a/assets/main.toy +++ b/assets/main.toy @@ -32,4 +32,3 @@ fn onFrame() { initScreen(1280, 720, "Oh no, Zombies!"); initLoop(onReady, null, null); - diff --git a/source/main.c b/source/main.c index 8a05d0f..6e30543 100644 --- a/source/main.c +++ b/source/main.c @@ -218,7 +218,7 @@ int main() { //process the actors (if possible) processActors(&vm); - //run the onStep function + //run the onFrame function Toy_runVM(&vm); //no check needed, empty VMs are skipped //drawing @@ -229,7 +229,7 @@ int main() { EndDrawing(); } - //clear onStep + //clear after the final frame if (onFrame != NULL) { Toy_resetVM(&vm, false, false); }