I created a fun and engaging cookie clicker game using a Micro:bit. This game is designed to challenge players to click a button as many times as they can within a certain period, collecting "cookies" with each press. It’s a simple and interactive way to have fun, test reaction speed, and beat high scores. The project allows for an endless loop of competitive play!
To build this game, I used the Micro:bit to program the cookie counter and game logic. It displays the total number of cookies collected and resets automatically at the start of a new round. The code also incorporates timing functions and variables to ensure the game is fair and responsive. A USB cable connects the Micro:bit to a computer for power and coding, making it easily customizable.
Here’s how it works: When the game starts, the Micro:bit displays "Press!" prompting the player to click Button A. Each button press adds to the cookie count, which is displayed on the LED grid. The game lasts for a preset amount of time, such as 15 seconds, and stops automatically. Afterward, the score is displayed, and players can challenge themselves to beat it in the next round.
This project combines programming logic, timing, and interaction into a fun game that anyone can play. It’s a fantastic demonstration of how the Micro:bit can turn creative ideas into interactive realities!