Skip to content

sheaivey/tinyTWANG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tinyTWANG

1D Dungeon Crawler Game for the ATtiny10 Written by Shea Ivey

About

tinyTWANG Demo

Similar to the hit game TWANG but using two buttons and rewritten to work within the constraints of the ATtiny10 microcontroller (1024 bytes of program space and 32 bytes of dynamic memory). The game is currently compiling around 838 bytes.

The game is simple use the buttons to move the player (Green Pixel) to the end of the level (Blue Pixel) while avoiding lava (Orange Pixels) and enemies (Red Pixels). Pressing both buttons at the same time will attack and kill any enemy within range.

Future plans

  • Consolidate Buttons into one I/O pin and add speaker for sound effects.
  • Design a simple coin cell powered dev kit to teach kids soldering and programming.
  • Eye catching screen saver when no user interactions have happened.
  • Make game play faster with each win.

Programming

Hardware

BOM

  • 1x ATtiny10
  • 2x 10k Ohm Pull Down Resistors
  • 2x Momentary Push Buttons
  • 1x WS2812B LED Strip (Up to 200 pixels in length)

Power Consumption

  • Tested operating voltage range (3.0v to 5.5v).
  • Current depends on LED Strip size (Calculate Max Current = 20 * 3 * PIXEL_COUNT).
  • Without LED Strip 1mah/0mW (ATtiny10)

Schematic

tinyTWANG-schematic

Links & Credits

License

MIT License

About

1D Dungeon Crawler Game for the ATtiny10

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages