aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/entity.c9
-rw-r--r--src/entity.h8
-rw-r--r--src/world.c6
3 files changed, 21 insertions, 2 deletions
diff --git a/src/entity.c b/src/entity.c
index 0fb784e..711a701 100644
--- a/src/entity.c
+++ b/src/entity.c
@@ -49,6 +49,15 @@ Entity createEntity(EntityId id, Vector3 position)
};
break;
+ case SAMANTHAS_SPOT:
+ entity.box = (BoundingBox){
+ .min = (Vector3){-SAMANTHAS_SPOT_SIZE, -SAMANTHAS_SPOT_HEIGHT,
+ -SAMANTHAS_SPOT_SIZE},
+ .max = (Vector3){SAMANTHAS_SPOT_SIZE, SAMANTHAS_SPOT_HEIGHT,
+ SAMANTHAS_SPOT_SIZE}
+ };
+
+ break;
default:
break;
}
diff --git a/src/entity.h b/src/entity.h
index 68caf64..4f673f9 100644
--- a/src/entity.h
+++ b/src/entity.h
@@ -5,7 +5,7 @@
#ifndef ENTITY_H
#define ENTITY_H
-#define ENTITY_COUNT 7
+#define ENTITY_COUNT 8
#define TREE_SCALE 40.0
#define BUSH_SCALE 8.0
@@ -17,6 +17,9 @@
#define UTILITY_POLE_HEIGHT 100.0
#define UTILITY_POLE_RADIUS 3.0
+#define SAMANTHAS_SPOT_SIZE 20.0
+#define SAMANTHAS_SPOT_HEIGHT 5.0
+
typedef int8_t EntityId;
enum {
@@ -27,7 +30,8 @@ enum {
BUSH,
FLOWER,
POND,
- UTILITY_POLE
+ UTILITY_POLE,
+ SAMANTHAS_SPOT
};
typedef struct {
diff --git a/src/world.c b/src/world.c
index 0217fd7..bf486e3 100644
--- a/src/world.c
+++ b/src/world.c
@@ -452,6 +452,12 @@ Seed generatePond(World* world, Color* heightmap, WorldUID id, Seed seed)
return seed;
}
+// TODO: get this mother fucker done in a sane amount of time
+Seed generateWorldSamanthasPlace(World* world, Seed seed, int spotIndex)
+{
+ return seed;
+}
+
Seed generateWorldPlants(World* world, Seed seed, int start, int end)
{
for (int index = start; index < end; ++index)