Ikenna Adrian Ozoemena 201157039
Dependencies: mbed
Diff: Lore/Lore.cpp
- Revision:
- 44:a6a361bea806
- Parent:
- 41:e1fa36c0492e
- Child:
- 45:fe5fc85a5c73
--- a/Lore/Lore.cpp Wed May 08 15:50:40 2019 +0000 +++ b/Lore/Lore.cpp Wed May 08 16:46:21 2019 +0000 @@ -33,6 +33,24 @@ {1,0,0,0,0,0,1}, }; +const int seekerSpriteLarge[14][17] = { + {1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1}, + {1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,1}, + {1,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1}, + {1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1}, + {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, + {0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0}, + {0,0,1,0,0,0,0,1,0,1,0,0,0,0,1,0,0}, + {0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0}, + {0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0}, + {0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0}, + {0,0,0,1,1,1,0,0,1,0,0,1,1,1,0,0,0}, + {0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0}, + {0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0}, + {0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0}, + + +}; // Constructor Lore::Lore() @@ -78,7 +96,7 @@ void Lore::seeker(N5110 &lcd) { // _enemy.draw_seeker(lcd); - lcd.drawSprite(42,0,7,9,(int *)seekerSprite); + lcd.drawSprite(33,5,14,17,(int *)seekerSpriteLarge); lcd.printString(" Seekers ",2,3); lcd.printString(" explode ",2,4); lcd.printString(" on impact ",2,5); @@ -87,7 +105,7 @@ { lcd.drawSprite(16,2,10,11,(int *)shooterSprite); lcd.drawSprite(38,5,10,11,(int *)shooterSprite); - lcd.drawSprite(59,2,10,11,(int *)shooterSprite); + lcd.drawSprite(59,2,10,11,(int *)shooterSprite); lcd.printString("Shooters will",2,2); lcd.printString(" allign next ",2,3); lcd.printString("to you before",2,4); @@ -98,8 +116,8 @@ lcd.printString("the kestrel's",2,0); lcd.printString("fire rate ",2,1); lcd.printString("increases the",2,2); - lcd.printString("closer you are",2,3); - lcd.printString("to danger ",2,4); + lcd.printString(" closer you",2,3); + lcd.printString("are to danger",2,4); } void Lore::imperion(N5110 &lcd) {