https://github.com/exposedcat/microbit-games
BBC micro:bit games
https://github.com/exposedcat/microbit-games
Last synced: 19 days ago
JSON representation
BBC micro:bit games
- Host: GitHub
- URL: https://github.com/exposedcat/microbit-games
- Owner: ExposedCat
- Created: 2022-07-08T19:06:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-08T21:33:06.000Z (over 3 years ago)
- Last Synced: 2025-01-18T14:34:15.598Z (12 months ago)
- Language: TypeScript
- Size: 819 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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
Controls
0. Go to directory `tetris` in this repo
1. Press `Left button (A)` to move block left
2. Press `Right button (B)` to move block right
3. Press `Both buttons (AB)` to rotate block
Controls
0. Go to directory `snake` in this repo
1. Tilt chip to turn the snake
📃 License
Do just what you want with this code. No one cares 🥱