aboutsummaryrefslogtreecommitdiff
path: root/src/engine/types.h
diff options
context:
space:
mode:
authorUnavailableDev <ggwildplay@gmail.com>2023-03-24 20:20:44 +0100
committerUnavailableDev <ggwildplay@gmail.com>2023-03-24 20:20:44 +0100
commitba830f93a15299fd578b00969eff3c403456950c (patch)
treedced71397e2f51f82b9c2c6e9c677a135f048091 /src/engine/types.h
parent810d05156a99dd0a1c6ae14d67685f63460ef621 (diff)
added first pass on animation systems
Diffstat (limited to 'src/engine/types.h')
-rw-r--r--src/engine/types.h42
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;