Skip to content

theisolinearchip/attiny85_microgame_meteor_storm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meteor Storm, a microgame for attiny85 (with an SSD1306-based OLED screen)

Img 1 Img 2

A pretty raw single-button microarcade game (similar to the well-known Flappy Bird and many others) made in a bunch of hours to test some attiny85 + SSD1306 OLED screen stuff.

(as a future TODO, the code can probably be improved, cleaned and/or expanded - maybe I'll continue this in the future, who knows...).

Also check the project page on hackaday.io!

Setup and install

Connect an I2C SSD1306-based screen to the attiny85 SDA and SCL pins, add one button on PB1 and run make.

How to play

Avoid hitting the screen borders and the big white squares (aka "meteors"). Hold the button to move up and release it to start falling (some acceleration comes into play, here!). There's a non-persistent high-score function + current score display while playing.

Additional libraries

SSD1306 driver

I used the same driver I wrote for screen handling on my Game of Life implementation on an attiny85. It's basically a set of command / data writing functions + some initial configurations and flash memory reading operations.

I2C driver

I also wrote the I2C driver using the TWI interface for attiny85's micros (the wait times are tweaked a little bit for speed improvement - it seems to work fine with this specific screens).

Links

  • Project page on hackaday.io
  • Attiny Arduino Games, by Andy Jackson; more attiny85-based microgames and similar stuff (the numbers font I'm using here is from the font file that can be found there!).
  • My Game of life on an attiny85 project page on hackaday.io; I wrote some custom stuff for the SSD1306 screens when working on this project. Additional info about the display can be found there.
  • My I2C libraries for attiny85-like AVR micros project page on hackaday.io; I also wrote some custom libraries for I2C operations on attiny85's and similar AVR micros. Additional info can be found there.

About

attiny85 microgame, Meteor Storm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published