postalrat's LD3 game

The game is only 1/4 complete. You can create two files "program1.txt" and "program2.txt". One file will control the red bot and the other will control the blue bot. There is no goal implmented in the game. At one time it was going to be a sumo match, at another soccer, and another tag.

To create a program you have to edit one of the two files. The syntax is much like an assembly language. You can move the bot forward with:

drive {1 1} // applies speed 1 to both sides

turn with

drive {1 -1} // one side forward, one back

and back with

drive {-1 -1} // both back

You can have it sit there with

wait {10.5} // wait 10.5 seconds

You can put stuff into memory locations

load @32 {1 1}

then use them for other things

drive @32

You have add, sub, mul, div, dot

add @32 {1 1}

also some flow control

[here]

jmp here // loop forever doing nothing

and

cmp @32 {2 2}

jmpeq here // jump to here if they are the same (and they are)

and

jmplesseq

The game never got finished. Realized there is just too much to expect for someone to do to play.

Other games by @postalrat

Found a bug?
Tell us on Discord