Moved more polyfill code into the engine proper

This commit is contained in:
2023-02-28 04:22:37 +11:00
parent 479e38d492
commit d3a3896efe
10 changed files with 139 additions and 67 deletions

View File

@@ -2,8 +2,6 @@
import standard;
import node;
var childCounter: int = 0;
//TODO: reference these from a global source (root?)
var tileWidth: int const = 64;
var tileHeight: int const = 64;
@@ -23,9 +21,6 @@ fn makeChildSprite(parent: opaque, spriteName: string) {
child.loadTexture("sprites:/" + spriteName);
//BUGFIX
childCounter++;
return child;
}