Started work on new update
Added some small new map generation features Added "NPCs" and "Quests" (atleast a first experiment for them) Added magic compass to make search for stairs leass annoying Added mostly visual season and weather effects
This commit is contained in:
parent
f6e2d30ab6
commit
3699414dcd
19 changed files with 1324 additions and 253 deletions
|
@ -23,6 +23,8 @@
|
|||
#define ENTITY_DRAGONPROJECTILE 16
|
||||
#define ENTITY_MAGIC_PILLAR 17
|
||||
|
||||
#define ENTITY_NPC 18
|
||||
|
||||
typedef struct Entity Entity;
|
||||
|
||||
typedef struct {
|
||||
|
@ -160,6 +162,10 @@ typedef struct {
|
|||
s8 waitTime;
|
||||
} Glowworm;
|
||||
|
||||
typedef struct {
|
||||
u8 type;
|
||||
} NPC;
|
||||
|
||||
typedef struct {
|
||||
float xa;
|
||||
float ya;
|
||||
|
@ -200,6 +206,7 @@ struct Entity {
|
|||
Glowworm glowworm;
|
||||
Dragon dragon;
|
||||
DragonFire dragonFire;
|
||||
NPC npc;
|
||||
TextParticleEntity textParticle;
|
||||
SmashParticleEntity smashParticle;
|
||||
};
|
||||
|
@ -234,6 +241,7 @@ Entity newTextParticleEntity(char * str, u32 color, int xa, int ya, int level);
|
|||
Entity newSmashParticleEntity(int xa, int ya, int level);
|
||||
Entity newArrowEntity(Entity* parent, int itemID, s8 xa, s8 ya, int level);
|
||||
Entity newGlowwormEntity(int x, int y, int level);
|
||||
Entity newNPCEntity(int type, int x, int y, int level);
|
||||
void addEntityToList(Entity e, EntityManager* em);
|
||||
void removeEntityFromList(Entity * e,int level,EntityManager* em);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue