Run Time Error - Infinite Loop Detected

co-authored: @timnz, @mansinh
Overall★★★★★★★★★★3.00
Fun★★★★★★★★★★1.00
Innovation★★★★★★★★★★4.50
Theme★★★★★★★★★★3.50
Graphics★★★★★★★★★★2.00
Image.png
To earn points and money write a program for your robot that gets it to navigate its way to a resource, pick it up, and return to base.

Simple, right?

See the scripting documentation in game for help with scripting.

Important to note: The custom programming language uses prefix notation for all functions. This means to write if (var0 < 2) requires the following code: If LessThan GetVar 0 2.

This order is required because the code gets compiled down to the following: If( LessThan( GetVar(0), 2) )

Another important note: If statements might not work the way you would expect. The language I created for the robots to follow is quite simple, and so all that an if statement does is skip the next line of code if the condition is not met. Else statements are similar in that the skip the next line if the last if statement had its condition met.

Whilst you can hard code a route for the robot to take, this is not recommended since it isn't very fun and kind of defeats the purpose of the game. Also this certainly won't work late in the game when you have to program the robot to dodge a large number of enemies.

screenshot
Tools: Unity

Comments1

coryru6 Oct 2020, 04:17
Really cool idea! But OOOOO BOY! I was not very good at it. I like the complexity of it.

Other games by @wh05herlock

Found a bug?
Tell us on Discord