Added animations to node

This commit is contained in:
2023-02-27 09:28:21 +11:00
parent 572b809d1b
commit 2c16c10558
11 changed files with 366 additions and 115 deletions

View File

@@ -2,6 +2,7 @@
import standard;
import node;
//TODO: get child count
var childCounter: int = 0;
var levelXCount: int const = 4;
@@ -49,7 +50,7 @@ fn onDraw(node: opaque) {
//iterate over each layer, passing in the screen dimensions
for (var c = 0; c < childCounter; c++) {
node.getNodeChild(c).callNodeFn("drawLayer", camX, camY, screenWidth, screenHeight, c * 2);
node.getChildNode(c).callNodeFn("drawLayer", camX, camY, screenWidth, screenHeight, c * 2);
}
}