diff options
| author | zlago | 2024-09-30 15:57:29 +0200 |
|---|---|---|
| committer | zlago | 2024-09-30 15:57:29 +0200 |
| commit | e4ad2c9362254ab3213c4cb7c743b6bbd72b6346 (patch) | |
| tree | d839f778a15f65b09fb0f0b773a500168e75afcc /src/entity.h | |
| parent | 45512bbc85188e3adb4eda597d0d2fa5530de651 (diff) | |
commandline parameters
Diffstat (limited to 'src/entity.h')
| -rw-r--r-- | src/entity.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/entity.h b/src/entity.h index 5b34bac..52a2eac 100644 --- a/src/entity.h +++ b/src/entity.h @@ -2,6 +2,9 @@ #include "loader.h" +#define from_fixed(a) (a / 16) +#define to_fixed(a) (a * 16) + struct entity { int (*update)(struct entity *self); int (*hurt)(struct entity *self, int damage); |
