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:
- 7:4aaa37a711a1
- Parent:
- 4:d1aeb131e533
- Child:
- 8:27244a0c3414
diff -r 104c2506237e -r 4aaa37a711a1 sprites.h --- a/sprites.h Tue Apr 16 12:30:33 2019 +0000 +++ b/sprites.h Sat Apr 20 22:17:24 2019 +0000 @@ -1,4 +1,9 @@ -const int level_map[2][48][84] = { // map[room_type][2d/3d][y][x] +#ifndef SPRITES_H +#define SPRITES_H +const int screen_width = 84; +const int screen_height = 48; + +const int level_map[2][48][84] = { // map[2d/3d][y][x] { {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,}, @@ -101,7 +106,7 @@ } }; -const int player_hitbox[5][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,}, @@ -109,7 +114,7 @@ {1,1,1,1,1,1,} }; -const int player[4][4][12][6] = { // Player [Face][SpriteAnimationFrame][Size_Y][Size_X] +const int sprite_player[4][4][12][6] = { // Player [Face][SpriteAnimationFrame][Size_Y][Size_X] { // Up { {0,1,1,1,1,0,}, @@ -343,4 +348,6 @@ {1,0,0,0,1,0,} } } -}; \ No newline at end of file +}; + +#endif \ No newline at end of file