aboutsummaryrefslogtreecommitdiff
path: root/src/stars.h
diff options
context:
space:
mode:
authornathansmithsmith <nathansmith7@mailfence.com>2023-11-05 17:58:22 -0700
committernathansmithsmith <nathansmith7@mailfence.com>2023-11-05 17:58:22 -0700
commitc38a7c4bca5b1efcdc2fb83551c34f28a8069026 (patch)
tree7dc0f2cca1758f2373aa7da3fdd1f55c197516d5 /src/stars.h
parent451887dabd71b6b9b8cdf2587fee31ec59c3675b (diff)
Better star system
Diffstat (limited to 'src/stars.h')
-rw-r--r--src/stars.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/stars.h b/src/stars.h
new file mode 100644
index 0000000..aa30fa4
--- /dev/null
+++ b/src/stars.h
@@ -0,0 +1,19 @@
+#include "gameCommon.h"
+
+#ifndef STARS_H
+#define STARS_H
+
+#define STAR_COUNT 64
+
+#define STAR_MIN_DISTANCE 400.0
+#define STAR_MAX_DISTANCE 1000.0
+
+typedef struct Stars {
+ Vector3 stars[STAR_COUNT];
+ bool starsUsed[STAR_COUNT];
+} Stars;
+
+void initStars(Stars * stars);
+void drawStars(Game * game, Stars * stars);
+
+#endif