/microbit-snake

Snake game for the BBC Micro:bit

Primary LanguageTypeScriptMIT LicenseMIT

English below

Snake voor de micro:bit

Het spelletje snake ken je misschien van oude Nokia mobieltjes. :) Dit is snake, maar dan voor de BBC micro:bit.

In het spel bestuur je een lijn die over het scherm beweegt, dit is de slang. Het doel is om de slang te laten groeien door hem telkens naar het blokje eten te sturen. De slang wordt één blokje langer iedere keer dat hij iets eet. Maar de slang mag niet tegen zichzelf botsen, dan is het spel voorbij. Wanneer de slang door de rand van het scherm gaat, gaat hij door aan de tegenovergestelde kant van het scherm.

Je kunt de knoppen A en B gebruiken om de slang van richting te laten veranderen:

  • Bij het indrukken van A draait de richting van de slang een kwartslag tegen de klok in.
  • Bij het indrukken van B draait de richting van de slang een kwartslag me de klok mee.

Snake for the micro:bit

You may know the game snake from old Nokia cellphones. :) This is snake, but for the BBC micro:bit.

In the game, you control a line that moves across the screen. This is the snake. The goal is to make the snake grow by sending it to the block of food each time. The snake grows one cube longer each time it eats something. But the snake must not bump into itself, then the game is over. When the snake passes through the edge of the screen, it continues on the opposite side of the screen.

You can use the A and B buttons to make the snake change direction:

  • When pressing A, the direction of the snake rotates counterclockwise a quarter turn.
  • When pressing B, the direction of the snake turns a quarter turn clockwise.