diff options
Diffstat (limited to 'src/engine/types.h')
| -rw-r--r-- | src/engine/types.h | 42 | 
1 files changed, 42 insertions, 0 deletions
diff --git a/src/engine/types.h b/src/engine/types.h new file mode 100644 index 0000000..241d706 --- /dev/null +++ b/src/engine/types.h @@ -0,0 +1,42 @@ +#pragma once + +#include "engine/maths.h" + +typedef uint8_t hh_idx_t; + +typedef enum { +	fire, ice, poison +}hh_e_damage_t; + + +typedef struct { +	int8_t hp; +	int8_t dmg; +	hh_e_damage_t dmg_type; +	int8_t speed_x, speed_y; + +} hh_s_atributes; + + +typedef struct { +	hh_s_ppu_loc_fam_entry fam; //screen +	hh_idx_t frame0; +	hh_idx_t palette; +	 +}hh_s_rendering; + +typedef struct { +	vec2 pos, vel, size; +	bool is_grounded; +	bool is_hit; +	uint8_t radius; +	int8_t hp; +	int8_t speed; +	hh_s_rendering render; + +}hh_entity; + +typedef struct { +	hh_entity p; +	hh_s_atributes atr; +}hh_s_player;  |