From ea9acc1e3decd623f9bd71705894718c130ac01b Mon Sep 17 00:00:00 2001 From: N0VA Date: Tue, 17 Feb 2026 13:15:54 +0100 Subject: [PATCH] Add world.c and world.h --- iris_c/world.c | 13 +++++++++++++ iris_c/world.h | 23 +++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 iris_c/world.c create mode 100644 iris_c/world.h diff --git a/iris_c/world.c b/iris_c/world.c new file mode 100644 index 0000000..afee3b2 --- /dev/null +++ b/iris_c/world.c @@ -0,0 +1,13 @@ +enum quadrant_type { + empty, + asteroid_field, + star_system, + nebula, + black_hole, + white_hole, + pulsar, + quasar, + supernova, + anomaly, + singularity +} diff --git a/iris_c/world.h b/iris_c/world.h new file mode 100644 index 0000000..20567c1 --- /dev/null +++ b/iris_c/world.h @@ -0,0 +1,23 @@ +#ifndef WORLD_H +#define WORLD_H + +#include + +#define WORLD_WIDTH = 256 +#define WORLD_HEIGHT = 256 + +typedef enum { + Q_EMPTY, + Q_ASTEROID_FIELD, + Q_STAR_SYSTEM, + Q_NEBULA, + Q_BLACK_HOLE, + Q_WHITE_HOLE, + Q_PULSAR, + Q_QUASAR, + Q_SUPERNOVA, + Q_ANOMALY, + Q_SINGULARITY +} quadrant_type; + +#endif