aboutsummaryrefslogtreecommitdiff
path: root/standard.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-05 09:25:39 +1000
committerquou <quou@disroot.org>2023-05-05 09:25:39 +1000
commit280552fa4750b5dac9243782f9c0a7e0b7eea6f8 (patch)
tree6385dc740cc965dad7dc628e8b10738724ec0a42 /standard.h
parent0a083f5a9a747083bbc3a1f0689e76ac5fc3a3b9 (diff)
Add a basic enemy.
Diffstat (limited to 'standard.h')
-rw-r--r--standard.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/standard.h b/standard.h
index 6f56ebc..88918af 100644
--- a/standard.h
+++ b/standard.h
@@ -4,6 +4,9 @@
int string_equal(const char* a, const char* b);
#define fbits 9
+#define fscale_lower_limit 16
+#define fscale_upper_limit 900
+#define fscale_factor 16
#define mini(a_, b_) ((a_) < (b_) ? (a_) : (b_))
#define maxi(a_, b_) ((a_) > (b_) ? (a_) : (b_))
@@ -15,6 +18,7 @@ int ftan(int t);
int flerp(int a, int b, int t);
int fsqrt(int v);
+void vec_minise(int* x, int* y);
void vec_nrmise(int* x, int* y);
void seed_rng(unsigned seed);