Implemented text for nodes, updated Toy

This commit is contained in:
2023-03-07 07:03:10 +11:00
parent 9b25061658
commit 25dadb9bfd
7 changed files with 173 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
import standard;
import node;
import random;
//constants
var SPEED: int const = 4;
@@ -140,8 +141,6 @@ fn runAI(node: opaque, rng: opaque) {
if ((stepAI++) >= 1) { //TODO: Toy bug here, something to do with precedence of postfix++?
stepAI = 0;
import random;
var dir = rng.generateRandomNumber() % 4;
var moveX = 0;
var moveY = 0;