Skip to content

ExposedCat/microbit-games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

micro:bit games

This repo contains several games written in TypeScript for micro:bit chips

πŸ‘Ύ Running

  1. Open game directory in this repo
  2. Download .hex file
  3. Follow steps 6+ from the next paragraph

πŸ— Building from source

  1. Go to MS MakeCode and create new project
  2. Go to the JavaScript tab on the top of the editor
  3. Replace code field contents with the ones from the game.ts file.
    The microbit.d.ts file is a file with global typings to code in VSCode with autocomplete instead of an error, it's not required
  4. Ensure code works by running the program in an emulator on the left (green triangle)
  5. Press Download in the lower-left corner
  6. Connect your micro:bit chip via USB
  7. Open the MICROBIT device from your file manager
  8. Drop the downloaded .hex file to the opened device. It will disappear and appear in read-only mode later.
    IMPORTANT: do NOT unplug the chip while the indicator there is blinking.
  9. At the end of the indicator flashing unplug and turn on your micro:bit.

    Game should start. Use the toggle to turn on/off chip, the bottom button to restart game. Game controls specified in the game description paragraph

Tetris game preview

Controls

  1. Go to directory tetris in this repo
  2. Press Left button (A) to move block left
  3. Press Right button (B) to move block right
  4. Press Both buttons (AB) to rotate block

Snake game preview

Controls

  1. Go to directory snake in this repo
  2. Tilt chip to turn the snake

πŸ“ƒ License

Do just what you want with this code. No one cares πŸ₯±

About

BBC micro:bit games

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published