Little Tank
Little Tank
You code a robot, it does what you tell it to, but the map is not perfect (as seen in levels 5 and 6 and the level editor if you play with it enough).
Inspired by the WarBots DOS game, but you have only one bot, a.k.a. little tank, and it can't do as much.
Little Tank was made for the Patch Notes v1.0 game jam, with the theme The Error Is The Feature. But like in my other game jam submissions, I think I steered away from the theme a little again. Either way, I hope you enjoy the game.
Controls:
space to reset/start the tank
e to toggle editor, editor saves in the 0th slot.
0, 1, 2, 3, 4, 5, 6 to load the map with the respective number.
mouse to use the keyboard thingctrl-c to copy the code (apparently, the clipboard code doesn't work in the browser; you can try it, but it doesn't work for me)
ctrl-v to paste your code (pasting text somehow works though, so we have that)
Game that would've probably fit the theme better:
I made a game a while back that would've been perfect for this theme. If you're not interested in looking it up, imagine chess, but the board is messed up and the pieces have different moves because of it. You can find it here: https://a4rkeeper.itch.io/chess
Credits:
- Color palette: https://colorhunt.co/palette/ff204ea0153e5d0e4100224d
- Music, David KBD: https://davidkbd.itch.io/electric-pulse-synthwave-retro-futuristic-music-pack
- Licensed under: CC By 4.0 https://creativecommons.org/licenses/by/4.0/
Syntax:
I tried to provide descriptions of the symbols in-game, but of course, that isn't perfect. Here are all the 31 symbols written out in a table:
| Symbol | type | description | example |
| ☺ | value | logic false | §♥☺ |
| ☻ | value | logic true | §♥☻ |
| ♥ | value | variable a | •♥◄ |
| ♦ | value | variable b | •♦◄ |
| ♣ | value | variable c | •♣◄ |
| ♠ | value | variable d | •♠◄ |
| • | statement | if a condition, consisting of either one value or two values and one logic operator is false, jumps to the nearest end statement. (nesting is not supported) | •♥‼♦◄ ► |
| ◘ | statement | else, unsupported | •♥◄ ►◘◄ ► |
| ○ | sensing | if detects a ground tile, returns true | ☼○ |
| ◙ | sensing | if detects impassable, returns true | ☼◙ |
| ♂ | sensing, command | returns the value stored on the tile | ☼♂ ♂ |
| ♀ | command | writes the inputed value on the ground tile the tank is currently on | ♀♥ |
| ♪ | sensing | if detects a button, returns true | ☼♪ |
| ♫ | sensing | if detects the goal, returns true | ☼♫ |
| ☼ | command | scans the tile in front of the tank, based on the character after it, it will set the result value | ☼◙ |
| ► | statement | end of an if statement | •∟◄ ► |
| ◄ | redundant statement | ||
| ↕ | sensing | if detects a door, returns true | ☼↕ |
| ‼ | logic operator | if both inputs are the same, the result is true. Considering the values are either true or false, it's basically an XAND gate, if I'm not mistaken | §♥♦‼♥ |
| ¶ | syntax | separator between commands, the only exception are the move commands | ↑¶ ↑ |
| § | command | sets the variable right after the § symbol to whatever follows, both one value or two values and one logic operator are supported. | §♥♦ §♣♠‼☻ |
| ▬ | logic operator | logic AND gate, if goth inputs are true, returns true | §♦♥▬♣ |
| ↨ | sensing | returns the state of the scanned door, true should stand for open | ☼↨ |
| ↑ | command | moves the tank forwards, (stackable, but counts as multiple lines if stacked, applies to all the move commands) | ↑ |
| ↓ | unused | moves the tank backwards | ←←↑←← |
| → | command | turns the tank right 90° | → |
| ← | command | turns the tank left 90° | ← |
| ∟ | value | result, this is where the results from the sensing commands get saved. | §♥∟ •∟◄ |
| ↔ | logic operator | logic OR gate, if at least one input is true, returns true | §♠♦↔♥ |
| ▲ | unused | ||
| ▼ | unused |
Example code:
↑¶ //moves forward
→¶ //turns right
☼◙¶ //checks if there's an impassable something in front of it
•∟‼☻◄¶ // if statement, condition result must be equal to true
←¶ // turn left
►¶ //end of the previous if statement
§♥♦▬♠ //set variable ♥ to ♦ logic AND gate ♠
♀♥ //write the value of ♥ on the tile tank is on
I'm too lazy to write more examples. Just do trial and error if you're not sure about something, or ask, that's also an option (just don't expect me to answer soon).

Comments
Log in with itch.io to leave a comment.
I finally found someone that uses scratch like me