Hooked runner's drive system into the engine paths

This commit is contained in:
2023-01-27 06:24:31 +00:00
parent 894861aaf1
commit fcefc4c5b0
8 changed files with 166 additions and 114 deletions

View File

@@ -28,4 +28,4 @@ mapInputEventToKeyUp("character_right", "right"); //event, keysym
initWindow("Airport Game", 800, 600, false);
//kick off the logic of the scene graph
loadRootNode("assets/scripts/root.toy");
loadRootNode("scripts:/root.toy");

View File

@@ -14,10 +14,10 @@ fn onInit(node: opaque) {
print "root.toy:onInit() called";
//make a child
node.makeChild("assets/scripts/entity.toy");
node.makeChild("scripts:/entity.toy");
//give the child a child
node.getNodeChild(0).makeChild("assets/scripts/entity.toy");
node.getNodeChild(0).makeChild("scripts:/entity.toy");
}
fn onStep(node: opaque) {