Game For ECE 2035
Dependencies: mbed wave_player 4DGL-uLCD-SE MMA8452
Diff: graphics.cpp
- Revision:
- 11:6cd02a8539d1
- Parent:
- 10:e18685911e84
- Child:
- 14:7225da81314a
--- a/graphics.cpp Wed Dec 01 22:07:24 2021 +0000 +++ b/graphics.cpp Thu Dec 02 06:24:22 2021 +0000 @@ -12,6 +12,12 @@ #include "dragon.cpp" #include "portal2.cpp" #include "kindom.cpp" +#include "eye.cpp" +#include "merch.cpp" +#include "goblin.cpp" +#include "store.cpp" +#include "npc2.cpp" +#include "fire.cpp" /* In this file put all your graphical functions (don't forget to declare them first @@ -80,11 +86,42 @@ uLCD.BLIT(u,v,11,11,key_arr); } +void draw_fire(int u, int v) +{ + uLCD.BLIT(u,v,11,11,fire_arr); +} + void draw_npc(int u, int v) { uLCD.BLIT(u,v,11,11,npc_arr); } +void draw_npc2(int u, int v) +{ + uLCD.BLIT(u,v,11,11,npc2_arr); +} + +void draw_goblin(int u, int v) +{ + uLCD.BLIT(u,v,11,11,goblin_arr); +} + +void draw_eye(int u, int v) +{ + uLCD.BLIT(u,v,11,11,eye_arr); +} + +void draw_store(int u, int v) +{ + uLCD.BLIT(u,v,11,11,store_arr); +} + +void draw_merch(int u, int v) +{ + uLCD.BLIT(u,v,11,11,merch_arr); +} + + void draw_portal(int u, int v) { uLCD.BLIT(u,v,11,11,portal_arr);