Skip to content

Flappy pig is an Arduino Uno hyper casual game which follows the idea proposed by Flappy bird.

License

Notifications You must be signed in to change notification settings

gianmarcopicarella/flappy-pig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flappy Pig



Flappy pig is an Arduino Uno hyper casual game. It was developed as a side project during the university class "Arduino and multicore programming" at Sapienza. It uses U8g2 to communicate, via the SPI protocol, directly to the screen hardware without worring about low level details.

Usage

Download the progetto.ino file and install the latest U8g2 library version. Add the following lines inside these library files.

// inside U8g2lib.h right after nextPage definition
void customPage(uint8_t page) { u8g2_customPage(&u8g2, page); }

// inside u8g2.h right after u8g2_NextPage declaration
void u8g2_customPage(u8g2_t *u8g2, uint8_t page);

// inside u8g2_buffer.c right after u8g2_NextPage definition
void u8g2_customPage(u8g2_t *u8g2, uint8_t page) {
  if ( u8g2->is_auto_page_clear )
  {
    u8g2_ClearBuffer(u8g2);
  }
  u8g2_SetBufferCurrTileRow(u8g2, page);
}

You can now compile and try the game!

Features:

  • 8bit sounds effects when the player dies or earns a point
  • Easy to play
  • 14fps on average with a clock speed of 16mhz, 2kb of sram and a 1.5inch oled screen
  • Compatible with every monochrome SPI Arduino display

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contribution you make to Flappy pig is greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Flappy-pig is released under the under terms of the MIT License.

About

Flappy pig is an Arduino Uno hyper casual game which follows the idea proposed by Flappy bird.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages