From c38a7c4bca5b1efcdc2fb83551c34f28a8069026 Mon Sep 17 00:00:00 2001 From: nathansmithsmith Date: Sun, 5 Nov 2023 17:58:22 -0700 Subject: Better star system --- src/stars.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/stars.h (limited to 'src/stars.h') 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 -- cgit v1.2.3