MoonCampaign by Revansh (7 years)
Our Social Impact - We're transforming education globally with free robotics and math workshops in the US, UK,
Canada, and Australia.
Our workshops have helped 66,000 students alone in the US plus 14,000 students benefit from our four-week sessions.
Game
Show and Tell
Show n Tell
Coming Soon
Revansh created a Pacman game on the Micro:bit using its 5x5 LED screen for dynamic gameplay. The game involves moving Pacman with buttons, collecting points, and avoiding obstacles. It showcases techniques like random number generation, collision detection, and real-time user input handling, providing hands-on experience with game development and Micro:bit programming.
In this project, I brought the classic Pacman game to life on a Micro:bit, creating a simple yet engaging gaming experience. Using the 5x5 LED screen, I controlled Pacman to collect points and avoid obstacles.
Here’s how it worked: I controlled Pacman by pressing the Micro:bit's buttons. Button A moved Pacman to the left, and Button B moved it to the right. The goal was to navigate the grid on the LED display, “eat” points, and avoid randomly appearing obstacles. Each collected point added to the score, shown after the game ended.
The code tracked Pacman’s position, updated it based on button inputs, and generated obstacles using a random number generator. The game ended when Pacman collided with an obstacle, and the final score was displayed before resetting.
This project combined game logic elements like random number generation, collision detection, and input handling. It was a fun way to explore coding and game design on the Micro:bit!
©️ Copyright, Moonpreneur Inc.
3031 Tisch Way, 110 Plaza West PMB # 138, San Jose, CA 95128, USA
Likes
Rating
43 days left
Game