aboutsummaryrefslogtreecommitdiff
path: root/src/entity.h
diff options
context:
space:
mode:
authorUnavailableDev <ggwildplay@gmail.com>2023-03-10 14:08:14 +0100
committerUnavailableDev <ggwildplay@gmail.com>2023-03-10 14:08:14 +0100
commit19737533abb3eeb90c97691618336b5cead14656 (patch)
tree01963569ac9bb4cb7e90744b06bdd6aba0560421 /src/entity.h
parent1fdac4d8ab609e8d496918929eb963be3f3a824f (diff)
parent4a740898621dcfc16fe257b6fe8695c768ec4dd6 (diff)
merge
Diffstat (limited to 'src/entity.h')
-rw-r--r--src/entity.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/entity.h b/src/entity.h
new file mode 100644
index 0000000..20cbf42
--- /dev/null
+++ b/src/entity.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <stdint.h>
+#include <stdbool.h>
+
+typedef struct {
+ uint16_t pos_x;
+ 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
+ bool in_air;
+} hh_s_entity_player;
+