Tweaks while I sort stuff out
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user