Rendering is working

This commit is contained in:
2022-10-13 23:50:57 +01:00
parent 500983358d
commit dfcdaf3b92
10 changed files with 527 additions and 9 deletions

17
assets/scripts/render.toy Normal file
View File

@@ -0,0 +1,17 @@
import render;
fn onInit(node: opaque) {
node.loadTextureRenderNode("assets/sprites/character.png");
}
fn onStep(node: opaque) {
//
}
fn onFree(node: opaque) {
node.freeTextureRenderNode();
}
fn onDraw(node: opaque) {
node.drawRenderNode(50, 50);
}