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 thing
ctrl-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:


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:

Symboltypedescriptionexample
valuelogic false§♥☺
valuelogic true§♥☻
valuevariable a•♥◄
valuevariable b•♦◄
valuevariable c•♣◄
valuevariable d•♠◄
statementif 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)•♥‼♦◄
statementelse, unsupported•♥◄
►◘◄
sensingif detects a ground tile, returns true☼○
sensingif detects impassable, returns true☼◙
sensing, commandreturns the value stored on the tile☼♂
commandwrites the inputed value on the ground tile the tank is currently on♀♥
sensingif detects a button, returns true☼♪
sensingif detects the goal, returns true☼♫
commandscans the tile in front of the tank, based on the character after it, it will set the result value☼◙
statementend of an if statement•∟◄
redundant statement

sensingif detects a door, returns true☼↕
logic operatorif 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
§♥♦‼♥
syntaxseparator between commands, the only exception are the move commands↑¶
§commandsets the variable right after the § symbol to whatever follows, both one value or two values and one logic operator are supported.§♥♦
§♣♠‼☻
logic operatorlogic AND gate, if goth inputs are true, returns true§♦♥▬♣
sensingreturns the state of the scanned door, true should stand for open☼↨
commandmoves the tank forwards, (stackable, but counts as multiple lines if stacked, applies to all the move commands)
unusedmoves the tank backwards←←↑←←
commandturns the tank right 90°
commandturns the tank left 90°
valueresult, this is where the results from the sensing commands get saved.§♥∟
•∟◄
logic operatorlogic 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