Tweaks while I sort stuff out

This commit is contained in:
2023-01-27 07:04:21 +00:00
parent 5251579e70
commit 3b5b399f4f
5 changed files with 52 additions and 27 deletions

View File

@@ -11,7 +11,7 @@ var y: int = 50;
var xspeed: int = 0;
var yspeed: int = 0;
//accessors
//accessors - variables are private, functions are public
fn getX(node: opaque) {
return x;
}
@@ -24,7 +24,7 @@ fn getY(node: opaque) {
fn onInit(node: opaque) {
print "render.toy:onInit() called";
node.loadTexture("assets/sprites/character.png");
node.loadTexture("sprites:/character.png");
parent = node.getNodeParent();
}