The game "Wait a moment!" on arduino

Surely many of you know the popular Soviet electronic game "Electronics IM-02" produced since 1984, in which the wolf from the cartoon "Well, wait a minute!" catches eggs in a basket. So, I came across an article that describes the process of creating such a game on Arduino and decided to repeat the project with my changes. What I did, see below.



A few words about the game: the eggs roll alternately from four sides, the player, controlling the wolf, must catch the eggs in the basket, placing it opposite the rolled eggs. For each caught egg, the player is awarded one point, for each broken - a penalty point is awarded. When collecting three penalty points, the game ends. The game has four difficulty levels, which depend on the number of eggs caught, the more caught, the faster the eggs begin to roll.



My changes: I redid the control of the wolf on the buttons; added sounds; added penalty points; added a record keeping with a record in EEPROM and added a little animation at the end of the game, if the required number of points was scored.

Necessary Details:
Arduino Nano
OLED display 128x64
Button without fixing - 4 pcs.
Passive Buzzer
Development Board
Wires

Wiring diagram


A few points in the sketch:

  1. Difficulty levels depending on the number of eggs caught - lines 304-307
  2. Number of crashed eggs to complete the game - line 320
  3. Number of Eggs Caught for Animation - Line 547



Link to sketch and libraries

All Articles