summary refs log tree commit diff
path: root/src/entity.h
diff options
context:
space:
mode:
authorzlago2024-09-30 15:57:29 +0200
committerzlago2024-09-30 15:57:29 +0200
commite4ad2c9362254ab3213c4cb7c743b6bbd72b6346 (patch)
treed839f778a15f65b09fb0f0b773a500168e75afcc /src/entity.h
parent45512bbc85188e3adb4eda597d0d2fa5530de651 (diff)
commandline parameters
Diffstat (limited to 'src/entity.h')
-rw-r--r--src/entity.h3
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);