Skip to content

Rvouill/MicrobitStarWarsGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

Microbit & Scratch StarWars Game

Microbit & Scratch StarWars Game

Overview

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 !

Table of Contents

What We Learned

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.

Get Ready

Prerequisites

Installation

  1. Connect your micro:bit: Plug your micro:bit into your computer using a USB cable.
  2. Open Scratch: Go to the Scratch website or open the offline editor.
  3. Load the Project: Download the .sb3 file from this repository and upload it to Scratch.
  4. Flash the micro:bit: Use the Scratch Link extension to connect and flash your micro:bit with the project code.

Try It

Start: Once micro:bit and Scratch are connected, press the the green flag of Scratch to start the game.

  1. Avoid Enemies: Tilt the micro:bit from left to righ to avoid enemies.
  2. Destroy Enemies: Hit A or B of the micro:bit to fire laser against enemies.
  3. Lives: Start with 3 lives, on each collision you lose one live.
  4. Score: Each time an enemy is hited, score inscrease by one.

End: If lose all youe lives the game is over !

Contributing

Contributions are welcome! If you have any ideas, improvements, or bug fixes, feel free to open an issue or submit a pull request.

Contact

If you have any questions or suggestions, feel free to contact me.


Happy coding and may the force be with you! 🚀✨

About

Basic Microbit + Scratch : Star Wars Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors