aboutsummaryrefslogtreecommitdiff
path: root/src/entity.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.h')
-rw-r--r--src/entity.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/entity.h b/src/entity.h
index 181182b..3684252 100644
--- a/src/entity.h
+++ b/src/entity.h
@@ -8,7 +8,20 @@ typedef struct {
uint16_t pos_y;
uint8_t radius;
uint8_t rotation; //45 degrees steps 0 == right 2 == down 4 == left 6 == up
- uint8_t direction_x; //direction where its looking at in case no input;
- int8_t speed; //10 default L/R MODifier
+ int8_t direction_x; //direction where its looking at in case no input;
+ int8_t accelY;
+ int16_t speed; // default L/R MODifier
+ int16_t air_speed; // air L/R MODifier
bool in_air;
} hh_s_entity_player;
+
+typedef struct {
+ uint16_t pos_x;
+ uint16_t pos_y;
+ uint8_t radius;
+ uint8_t direction_x; //direction where its walking towards;
+ int8_t accelY;
+ int16_t speed; // default L/R MODifier
+ int16_t air_speed;
+ bool in_air;
+} hh_s_entity_enemy;