Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
filmote committed Sep 15, 2017
1 parent bfbc8f6 commit 1a679c0
Show file tree
Hide file tree
Showing 3 changed files with 365 additions and 33 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

.DS_Store
Artwork/~$Artwork.xlsx
.vscode/tasks.json
.vscode/arduino.json
.vscode/c_cpp_properties.json
43 changes: 39 additions & 4 deletions Images.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,32 @@
#ifndef IMAGES_H
#define IMAGES_H

/* -----------------------------------------------------------------------------------------------------------------------------
* Retrieve the width of an image.
* -----------------------------------------------------------------------------------------------------------------------------
*/
byte getImageWidth(const byte *image) {

return pgm_read_byte(image);

}


/* -----------------------------------------------------------------------------------------------------------------------------
* Retrieve the height of an image.
* -----------------------------------------------------------------------------------------------------------------------------
*/
byte getImageHeight(const byte *image) {

return pgm_read_byte(image + 1);

}


/* -----------------------------------------------------------------------------------------------------------------------------
* Steve images and masks ..
* -----------------------------------------------------------------------------------------------------------------------------
*/
const byte PROGMEM dinosaur_still[] = {
18, 24,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFF, 0xFB, 0xFF, 0xFF, 0xBF, 0xBF, 0x3F, 0x3E,
Expand Down Expand Up @@ -41,7 +67,6 @@ const byte PROGMEM dinosaur_ducking_2[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x17, 0x03, 0x01, 0x01, 0x07, 0x05, 0x00, 0x03, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};


const byte PROGMEM dinosaur_still_mask[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xBF, 0xBF, 0x3F, 0x3E,
0x3F, 0x7C, 0xF8, 0xF0, 0xF0, 0xF8, 0xFC, 0xFE, 0xFF, 0xFF, 0xFF, 0x7F, 0x3F, 0x04, 0x0C, 0x00, 0x00, 0x00,
Expand Down Expand Up @@ -70,6 +95,11 @@ const byte PROGMEM dinosaur_ducking_2_mask[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x17, 0x03, 0x01, 0x01, 0x07, 0x05, 0x00, 0x03, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};


/* -----------------------------------------------------------------------------------------------------------------------------
* Obstacle Images ..
* -----------------------------------------------------------------------------------------------------------------------------
*/
const byte PROGMEM pterodactyl_1[] = {
22, 16,
0x20, 0x30, 0x38, 0x3C, 0x3E, 0x3E, 0x78, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xC0, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
Expand Down Expand Up @@ -103,17 +133,22 @@ const byte PROGMEM cactus_3[] = {
0x00, 0x00, 0x00, 0x00, 0x3F, 0x3F, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x03, 0x3F, 0x3F, 0x3F, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0x3F, 0x3F, 0x00, 0x00, 0x00, 0x00,
};

const byte PROGMEM ground_1[] = {

/* -----------------------------------------------------------------------------------------------------------------------------
* Ground images ..
* -----------------------------------------------------------------------------------------------------------------------------
*/
const byte PROGMEM ground_flat[] = {
32, 8,
0x14, 0x14, 0x04, 0x04, 0x44, 0x44, 0x44, 0x04, 0x04, 0x04, 0x04, 0x04, 0x24, 0x04, 0x04, 0x04, 0x04, 0x14, 0x14, 0x04, 0x04, 0x04, 0x44, 0x44, 0x04, 0x04, 0x04, 0x04, 0x24, 0x04, 0x04, 0x04,
};

const byte PROGMEM ground_2[] = {
const byte PROGMEM ground_bump[] = {
32, 8,
0x04, 0x24, 0x24, 0x04, 0x04, 0x04, 0x44, 0x04, 0x04, 0x04, 0x14, 0x04, 0x22, 0x02, 0x01, 0x01, 0x09, 0x81, 0x82, 0x02, 0x04, 0x04, 0x04, 0x14, 0x04, 0x04, 0x04, 0x44, 0x44, 0x04, 0x04, 0x04,
};

const byte PROGMEM ground_3[] = {
const byte PROGMEM ground_hole[] = {
32, 8,
0x84, 0x84, 0x04, 0x04, 0x04, 0x14, 0x04, 0x14, 0x04, 0x44, 0x04, 0x04, 0x08, 0x08, 0x90, 0x90, 0x10, 0x10, 0x10, 0x08, 0x08, 0x04, 0x44, 0x44, 0x04, 0x04, 0x04, 0x14, 0x04, 0x24, 0x04, 0x04,
};
Expand Down
Loading

0 comments on commit 1a679c0

Please sign in to comment.