summaryrefslogtreecommitdiff
path: root/lib/constants.h
diff options
context:
space:
mode:
authorJoel Stålnacke <joel@saker.fi>2025-07-26 21:09:26 +0300
committerJoel Stålnacke <joel@saker.fi>2025-07-26 21:09:26 +0300
commit63506e59366acddf4a9e017ad8aebeadcf58c164 (patch)
tree2fa106661b85497fc1d63b7743a78e523ab48fba /lib/constants.h
parent53f68bb7b0dce309723675c4b97f726a469031c0 (diff)
Old changesHEADmaster
Diffstat (limited to 'lib/constants.h')
-rw-r--r--lib/constants.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/constants.h b/lib/constants.h
new file mode 100644
index 0000000..817fa43
--- /dev/null
+++ b/lib/constants.h
@@ -0,0 +1,12 @@
+#define WORLD_MAX_PLAYERS 5
+#define WORLD_MAX_BULLETS 5000
+
+#define PLAYER_ACCELERATION 150.0f
+#define PLAYER_DRAG 2.0f
+
+enum {
+ INPUT_UP = 1 << 0,
+ INPUT_DOWN = 1 << 1,
+ INPUT_LEFT = 1 << 2,
+ INPUT_RIGHT = 1 << 3
+};