Small tweaks while I think

This commit is contained in:
2026-05-03 11:23:04 +10:00
parent e646f3ff90
commit f4e41fdd24
4 changed files with 11 additions and 4 deletions
+26
View File
@@ -0,0 +1,26 @@
var screenWidth = 1280;
var screenHeight = 720;
var screenCaption = "Hello raylib from Toy!";
var frameCounter: Int = 0;
var posCounter: Int = 0;
//this runs before the game starts
fn onReady() {
loadMonsterSprite("parvati", "assets/parvati.png", 32, 32);
}
//this runs each frame
fn onStep() {
frameCounter++;
if (frameCounter % 100 == 0) {
spawnMonsterAt("parvati", posCounter*50, posCounter*50);
posCounter++;
}
}
//this runs as the game is closing down
fn onFinished() {
//
}