A rouge-like rpg, heavily inspired on the binding of isaac. Running on a FRDM-K64F Mbed board. C++.
Dependencies: mbed MotionSensor
Diff: RoomEngine/RoomEngine.cpp
- Revision:
- 33:4f3948dcd2f7
- Parent:
- 32:fe6359ef9916
- Child:
- 34:1d5b4da3935e
--- a/RoomEngine/RoomEngine.cpp Mon May 06 08:56:48 2019 +0000 +++ b/RoomEngine/RoomEngine.cpp Mon May 06 13:27:26 2019 +0000 @@ -373,15 +373,15 @@ { if(gamepad.check_event(Gamepad::START_PRESSED)) { draw_health(lcd); - int * paused_screen = lcd.readScreen(); + char * paused_screen = lcd.readScreen(); int pause_timer = 2; - lcd.drawSpriteTransparent(20, 20, 9, 45, (int *)pause_sprite); + lcd.drawSpriteTransparent(20, 20, 9, 45, (char *)pause_sprite); wait(0.05); while(gamepad.check_event(Gamepad::START_PRESSED)) { lcd.clear(); lcd.drawSprite(0, 0, HEIGHT, WIDTH, paused_screen); if (pause_timer % 10 <= 4) { - lcd.drawSpriteTransparent(20, 20, 9, 45, (int *)pause_sprite); + lcd.drawSpriteTransparent(20, 20, 9, 45, (char *)pause_sprite); } lcd.refresh(); pause_timer++; @@ -393,7 +393,7 @@ lcd.clear(); lcd.drawSprite(0, 0, HEIGHT, WIDTH, paused_screen); if (pause_timer % 10 <= 4) { - lcd.drawSpriteTransparent(20, 20, 9, 45, (int *)pause_sprite); + lcd.drawSpriteTransparent(20, 20, 9, 45, (char *)pause_sprite); } lcd.refresh(); pause_timer++; @@ -405,7 +405,7 @@ lcd.clear(); lcd.drawSprite(0, 0, HEIGHT, WIDTH, paused_screen); if (pause_timer % 10 <= 4) { - lcd.drawSpriteTransparent(20, 20, 9, 45, (int *)pause_sprite); + lcd.drawSpriteTransparent(20, 20, 9, 45, (char *)pause_sprite); } lcd.refresh(); pause_timer++;