Game For ECE 2035
Dependencies: mbed wave_player 4DGL-uLCD-SE MMA8452
Diff: map.h
- Revision:
- 9:cbb9cfb1f6c5
- Parent:
- 7:862062ffca62
- Child:
- 10:e18685911e84
--- a/map.h Sat Nov 20 03:57:56 2021 +0000 +++ b/map.h Tue Nov 30 00:48:48 2021 +0000 @@ -35,6 +35,11 @@ */ int walkable; + //Current and Previous Location of item + + int x,y; + int px,py; + /** * Arbitrary extra data for the MapItem. Could be useful for keeping up with * special information, like where a set of stairs should take the player. @@ -43,7 +48,7 @@ * a WALL probably doesn't need to use this (it can be NULL), where an NPC * might use it to store game state (have I given the player the key yet?). */ - void* data; + int data; } MapItem; typedef struct { @@ -63,6 +68,7 @@ #define DRAGON 7 #define PORTAl 8 #define KINDOM 9 +#define FRUIT 10 @@ -166,6 +172,8 @@ void add_npc(int x, int y); +void delete_npc(int x, int y); + void add_portal(int x, int y); void add_portal2(int x, int y);