Files
Airport/assets/scripts/gameplay/text.toy

18 lines
411 B
Plaintext

import node;
//this is a child of the step counter, which simply renders text
fn onDraw(node: opaque) {
var posX: int = node.getNodePositionX();
var posY: int = node.getNodePositionY();
var scaleX: float = node.getNodeScaleX();
var scaleY: float = node.getNodeScaleY();
node.drawNode(floor(posX * scaleX), floor(posY * scaleY));
}
fn onFree(node: opaque) {
node.freeNodeTexture();
}
//TODO: polyfill?