Game For ECE 2035
Dependencies: mbed wave_player 4DGL-uLCD-SE MMA8452
Diff: actions.cpp
- Revision:
- 16:06a88c0110ff
- Parent:
- 15:05592aaa468c
- Child:
- 18:760dd68e939e
diff -r 05592aaa468c -r 06a88c0110ff actions.cpp --- a/actions.cpp Fri Dec 03 09:50:47 2021 +0000 +++ b/actions.cpp Fri Dec 03 10:52:08 2021 +0000 @@ -89,6 +89,56 @@ horizontal_speech1(line3,line4); } +void heal_up() +{ + char line1[] = "Player Health:"; + char line2[] = "Low"; + horizontal_speech1(line1,line2); + + char line3[] = "Hint:"; + char line4[] = "Store or Tree"; + horizontal_speech1(line3,line4); +} + +void pick_key() +{ + char line1[] = "Congrats!!"; + char line2[] = "You've slain the"; + horizontal_speech1(line1,line2); + + char line3[] = "Dragon and"; + char line4[] = "completed your"; + horizontal_speech1(line3,line4); + + char line5[] = "Quest.."; + char line6[] = "Job Well Done"; + horizontal_speech1(line5,line6); + + char line7[] = "Collect Your"; + char line8[] = "Winnings"; + horizontal_speech1(line7,line8); + + char line9[] = "Thanks For"; + char line10[] = "Playing My"; + horizontal_speech1(line9,line10); + + char line11[] = "Game ;)"; + char line12[] = "-Holiday"; + horizontal_speech1(line11,line12); +} + +void mag_up() +{ + char line1[] = "Player Magic:"; + char line2[] = "Low"; + horizontal_speech1(line1,line2); + + char line3[] = "Hint:"; + char line4[] = "Store or Chest"; + horizontal_speech1(line3,line4); +} + + void merch_speech1(){ char line1[] = "Welcome To"; char line2[] = "The Shop"; @@ -144,17 +194,28 @@ horizontal_speech2(line1,line2); } -void npc2_speech() +void npc2_speech1() { char line1[] = "*Twink Twink*"; char line2[] = "*Twink Twink*"; horizontal_speech1(line1,line2); - char line3[] = "Please save us"; + char line3[] = "Please Save Us"; char line4[] = "Mighty Hero"; horizontal_speech1(line3,line4); } +void npc2_speech2() +{ + char line1[] = "Thank You"; + char line2[] = "For Saving Us"; + horizontal_speech1(line1,line2); + + char line3[] = "We Are Eternally"; + char line4[] = "Grateful"; + horizontal_speech1(line3,line4); +} + void fire_dmg(){ char line1[] = "*Burn Burn*"; char line2[] = "*Crackle*";