diff options
author | Flenk008 <frenk_0_0@hotmail.com> | 2023-03-10 14:20:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-10 14:20:09 +0100 |
commit | 6bd3372103a97f8cb3183f1a7b0a3cfc3c1e1558 (patch) | |
tree | 16974fd4462defaf338aba06286992160e4e7246 /src/entity.h | |
parent | ad7a3609b650e4c1fccc7f2f768cfcb75a072b08 (diff) | |
parent | 4a740898621dcfc16fe257b6fe8695c768ec4dd6 (diff) |
Merge branch 'lonkaars:dev' into dev
Diffstat (limited to 'src/entity.h')
-rw-r--r-- | src/entity.h | 15 |
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; + |