Skip to content

Simple Arduino hardware and software framework for games.

Notifications You must be signed in to change notification settings

beefviper/ArduinoArcade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArduinoArcade

Simple Arduino hardware and software framework for games.

The basic layout is:

  • Arcade
    • Hardware
      • Screen
      • Joystick
      • Speaker
      • RanNumGen
    • Software
      • Game
        • Snake
        • Missile
        • Breakout

Arcade contains Hardware and Software. It also contains four main functions: init(), draw(), input(), and logic() which it cascades down.

Hardware contains Screen, Joystick, Speaker, and RanNumGen. It calls all the init() functions for all the hardware defined with HardwareParams.

Screen is an U8G2 object. Library: https://github.com/olikraus/u8g2

Joystick reads from a standard analog module.

Speaker supports both Active and Passive speakers.

RanNumGen does an analog read from a floating pin.

Software contains Game, and Game contains the actual games. (TODO: One of them needs to handle a menu)

And Snake, Missle, and Breakout are simple proofs of concept. With the basic idea being that they have a draw() and logic() functions that get called each time through the loop. Plus whatever functions they need to work.

About

Simple Arduino hardware and software framework for games.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published