Moved config.toy into assets

This commit is contained in:
2026-05-03 10:36:05 +10:00
parent 9d35e4862e
commit e646f3ff90
2 changed files with 1 additions and 1 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() {
//
}