A rouge-like rpg, heavily inspired on the binding of isaac. Running on a FRDM-K64F Mbed board. C++.
Dependencies: mbed MotionSensor
Diff: sprites.h
- Revision:
- 10:1a3499f6b583
- Parent:
- 8:27244a0c3414
- Child:
- 12:a1c1991835ca
diff -r 304079450898 -r 1a3499f6b583 sprites.h --- a/sprites.h Sat Apr 20 22:58:15 2019 +0000 +++ b/sprites.h Sun Apr 21 23:23:35 2019 +0000 @@ -106,14 +106,6 @@ } }; -const int sprite_player_hitbox[5][6] = { - {1,1,1,1,1,1,}, - {1,1,1,1,1,1,}, - {1,1,1,1,1,1,}, - {1,1,1,1,1,1,}, - {1,1,1,1,1,1,} -}; - const int sprite_player[4][4][12][6] = { // Player [Face][SpriteAnimationFrame][Size_Y][Size_X] { // Up { @@ -350,4 +342,191 @@ } }; +const int sprite_headless[4][4][9][6] = { // Player [Face][SpriteAnimationFrame][Size_Y][Size_X] + { // Up + { + {0,0,0,0,0,0,}, + {1,0,0,0,0,0,}, + {0,1,1,1,1,0,}, + {1,0,1,1,0,1,}, + {0,0,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,1,0,0,1,0,}, + {0,1,0,0,1,0,}, + {0,1,0,0,1,0,} + }, + { + {0,0,0,0,0,0,}, + {0,0,0,1,0,0,}, + {0,1,1,1,1,0,}, + {1,0,1,1,0,1,}, + {0,0,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,1,0,0,1,0,}, + {0,1,0,0,1,0,}, + {0,0,0,0,1,0,} + }, + { + {0,0,0,0,1,0,}, + {0,0,1,0,0,0,}, + {0,1,1,1,1,0,}, + {1,0,1,1,0,1,}, + {0,0,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,1,0,0,1,0,}, + {0,1,0,0,1,0,}, + {0,1,0,0,1,0,} + }, + { + {0,1,0,0,0,0,}, + {0,0,0,0,0,0,}, + {0,1,1,1,1,0,}, + {1,0,1,1,0,1,}, + {0,0,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,1,0,0,1,0,}, + {0,1,0,0,1,0,}, + {0,1,0,0,0,0,} + } + }, + { // Right + { + {0,0,0,0,0,0,}, + {0,0,1,0,0,0,}, + {0,0,1,1,0,0,}, + {0,0,1,1,1,1,}, + {0,0,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,0,1,0,0,0,}, + {0,0,1,0,0,0,}, + {0,0,1,1,0,0,} + }, + { + {0,1,0,0,0,0,}, + {0,0,0,1,0,0,}, + {0,0,1,1,0,0,}, + {0,0,1,1,1,1,}, + {0,0,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,0,1,0,1,0,}, + {0,0,1,0,1,0,}, + {0,1,0,0,0,1,} + }, + { + {0,0,0,0,1,0,}, + {0,0,0,0,0,0,}, + {0,0,1,1,0,0,}, + {0,0,1,1,1,1,}, + {0,0,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,0,1,0,0,0,}, + {0,0,1,0,0,0,}, + {0,0,1,1,0,0,} + }, + { + {0,0,0,0,0,0,}, + {0,0,0,0,0,1,}, + {0,0,1,1,0,0,}, + {0,0,1,1,1,1,}, + {0,0,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,0,1,0,1,0,}, + {0,0,1,0,1,0,}, + {0,1,0,0,0,1,} + } + }, + { // Down + { + {0,0,0,0,0,0,}, + {1,0,0,0,0,0,}, + {0,1,1,1,1,0,}, + {1,0,1,1,0,1,}, + {0,0,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,1,0,0,1,0,}, + {0,1,0,0,1,0,}, + {0,1,0,0,1,0,} + }, + { + {0,0,0,0,0,0,}, + {0,0,0,1,0,0,}, + {0,1,1,1,1,0,}, + {1,0,1,1,0,1,}, + {0,0,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,1,0,0,1,0,}, + {0,1,0,0,1,0,}, + {0,0,0,0,1,0,} + }, + { + {0,0,0,0,1,0,}, + {0,0,1,0,0,0,}, + {0,1,1,1,1,0,}, + {1,0,1,1,0,1,}, + {0,0,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,1,0,0,1,0,}, + {0,1,0,0,1,0,}, + {0,1,0,0,1,0,} + }, + { + {0,1,0,0,0,0,}, + {0,0,0,0,0,0,}, + {0,1,1,1,1,0,}, + {1,0,1,1,0,1,}, + {0,0,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,1,0,0,1,0,}, + {0,1,0,0,1,0,}, + {0,1,0,0,0,0,} + } + }, + { // Left + { + {0,0,0,0,0,0,}, + {0,0,0,1,0,0,}, + {0,0,1,1,0,0,}, + {1,1,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,0,0,1,0,0,}, + {0,0,0,1,0,0,}, + {0,0,1,1,0,0,} + }, + { + {0,0,0,0,1,0,}, + {0,0,1,0,0,0,}, + {0,0,1,1,0,0,}, + {1,1,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,1,0,1,0,0,}, + {0,1,0,1,0,0,}, + {1,0,0,0,1,0,} + }, + { + {0,1,0,0,0,0,}, + {0,0,0,0,0,0,}, + {0,0,1,1,0,0,}, + {1,1,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,0,0,1,0,0,}, + {0,0,0,1,0,0,}, + {0,0,1,1,0,0,} + }, + { + {0,0,0,0,0,0,}, + {1,0,0,0,0,0,}, + {0,0,1,1,0,0,}, + {1,1,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,0,1,1,0,0,}, + {0,1,0,1,0,0,}, + {0,1,0,1,0,0,}, + {1,0,0,0,1,0,} + } + } +}; + #endif \ No newline at end of file