Grid-based movement and collisions working

This commit is contained in:
2023-03-05 05:13:53 +11:00
parent 0d0e6369c9
commit b1ee485905
5 changed files with 190 additions and 99 deletions

View File

@@ -750,7 +750,7 @@ static int nativeDrawNode(Toy_Interpreter* interpreter, Toy_LiteralArray* argume
static int nativeCallNodeFn(Toy_Interpreter* interpreter, Toy_LiteralArray* arguments) {
//checks
if (arguments->count < 2) {
interpreter->errorOutput("Too few arguments passed to callNode\n");
interpreter->errorOutput("Too few arguments passed to callNodeFn\n");
return -1;
}
@@ -797,7 +797,7 @@ static int nativeCallNodeFn(Toy_Interpreter* interpreter, Toy_LiteralArray* argu
}
if (!TOY_IS_OPAQUE(nodeLiteral) || !TOY_IS_STRING(fnName)) {
interpreter->errorOutput("Incorrect argument type passed to callNode\n");
interpreter->errorOutput("Incorrect argument type passed to callNodeFn\n");
Toy_freeLiteral(nodeLiteral);
Toy_freeLiteral(fnName);
return -1;