Welcome to my little StarWars Game! As a huge Star Wars fan, I made this project with my kids using the BBC micro:bit and Scratch programming. It's a fun and educational way to explore coding and electronics ! Feel free to download & have fun !
micro:bit: Supported Features in Scratch 3
- micro:bit : Senor: Implementation of micro:bit left/right and up/down tilt sensor.
- micro:bit : Button: Implementation of micro:bit Button.
- micro:bit : LEDs: Implementation of micro:bit LEDs display.
Scratch 3 Concepts
- ScrollingBackground: Imeplement vertical scrolling background.
- Clone: Use clone concept for moving elements
- Messages: Use Scratch messages concept to send informations to sprites.
- Intersection: Use intersection concept to manage collision between sprites.
- Controller: Use a dedicated sprites to implement global logic.
- Variables: Use variables concept to store and give position, and also count points and lives.
- MicroBitAddOn: Use various concept to set & get microbit motion via sensor + buttons.
- A BBC micro:bit
- Scratch programming environment (online or offline)
- Connect your micro:bit: Plug your micro:bit into your computer using a USB cable.
- Open Scratch: Go to the Scratch website or open the offline editor.
- Load the Project: Download the
.sb3file from this repository and upload it to Scratch. - Flash the micro:bit: Use the Scratch Link extension to connect and flash your micro:bit with the project code.
Start: Once micro:bit and Scratch are connected, press the the green flag of Scratch to start the game.
- Avoid Enemies: Tilt the micro:bit from left to righ to avoid enemies.
- Destroy Enemies: Hit A or B of the micro:bit to fire laser against enemies.
- Lives: Start with 3 lives, on each collision you lose one live.
- Score: Each time an enemy is hited, score inscrease by one.
End: If lose all youe lives the game is over !
Contributions are welcome! If you have any ideas, improvements, or bug fixes, feel free to open an issue or submit a pull request.
If you have any questions or suggestions, feel free to contact me.
Happy coding and may the force be with you! 🚀✨
