there is now a player character and the world renders using a cammera
This commit is contained in:
26
source/game_source/entities/Gun.h
Normal file
26
source/game_source/entities/Gun.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef ENTITY_Gun_H
|
||||
#define ENTITY_Gun_H
|
||||
#include "../entity.h"
|
||||
#include "../world.h"
|
||||
|
||||
#define SHOOT_N 1
|
||||
#define SHOOT_E 2
|
||||
#define SHOOT_S 3
|
||||
#define SHOOT_W 4
|
||||
|
||||
|
||||
typedef struct {
|
||||
int projectileId;
|
||||
int direction;
|
||||
int fuse;
|
||||
int currentFuse;
|
||||
int inpact;
|
||||
} Gun;
|
||||
|
||||
entity* CreateGun(int direction,int bullet, world* w);
|
||||
|
||||
int GunUpdate(int, void*);
|
||||
int GunInit(void*);
|
||||
int GunFree(void*);
|
||||
|
||||
#endif // ENTITY_Gun_H
|
||||
Reference in New Issue
Block a user