about summary refs log tree commit diff
path: root/src/game/game.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/game.h')
-rw-r--r--src/game/game.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/game/game.h b/src/game/game.h
index 5f69ef9e..64dcc685 100644
--- a/src/game/game.h
+++ b/src/game/game.h
@@ -18,6 +18,10 @@ inline float get_angle(baselib::vec2 dir)
 	return a;
 }
 
+#define LERP(a,b,t) (a + (b-a) * t)
+#define min(a, b) ( a > b ? b : a)
+#define max(a, b) ( a > b ? a : b)
+
 inline bool col_check_point(float x, float y) { return col_check_point((int)x, (int)y) != 0; }
 inline bool col_check_point(baselib::vec2 p) { return col_check_point(p.x, p.y); }
 
@@ -34,6 +38,7 @@ enum
 	EVENT_DAMAGEINDICATION,
 	EVENT_SOUND,
 	EVENT_SMOKE,
+	EVENT_SPAWN,
 };
 
 enum
@@ -75,6 +80,11 @@ struct ev_explosion
 	int x, y;
 };
 
+struct ev_spawn
+{
+	int x, y;
+};
+
 struct ev_sound
 {
 	int x, y;
@@ -152,9 +162,6 @@ enum
 	POWERUP_TYPE_TIMEFIELD		= 4,
 	POWERUP_TYPE_NUMPOWERUPS,
 
-	PLAYER_MAXHEALTH			= 10,
-	PLAYER_MAXARMOR				= 10,
-
 	MODIFIER_TYPE_NINJA			= 0,
 	MODIFIER_TYPE_TIMEFIELD		= 1,
 	MODIFIER_NUMMODIFIERS,