Skip to content

Instantly share code, notes, and snippets.

View dadecoza's full-sized avatar

Johannes le Roux dadecoza

View GitHub Profile
@dadecoza
dadecoza / LCD_Game.ino
Created July 4, 2016 06:46
Side scrolling one button jump game for the Arduino LCD Keypad shield.
/* Modified slightly to work with the LCD Keypad Shield.
* Original - http://www.instructables.com/id/Arduino-LCD-Game/
*/
#include <LiquidCrystal.h>
#define SPRITE_RUN1 1
#define SPRITE_RUN2 2
#define SPRITE_JUMP 3
#define SPRITE_JUMP_UPPER '.' // Use the '.' character for the head
#define SPRITE_JUMP_LOWER 4