Files
Airport/assets/scripts/render.toy
2022-10-19 20:42:33 +01:00

19 lines
349 B
Plaintext

import engine;
import render;
fn onInit(node: opaque) {
node.loadTextureRenderNode("assets/sprites/character.png");
}
fn onStep(node: opaque) {
//print node.getNodeTag();
//print node.getNodeParent().getNodeTag();
}
fn onFree(node: opaque) {
node.freeTextureRenderNode();
}
fn onDraw(node: opaque) {
node.drawRenderNode(50, 50, 100, 100);
}