aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-07-24 23:50:50 +0000
committernathan <nathansmith@disroot.org>2025-07-24 23:50:50 +0000
commit7c4d899d6b8703f5cf787629a329c59a77a5411e (patch)
tree8deb0a89f1a150417a19955d9e4e95aa09af8be6
parentc4648528b61142c42d44f20371b07c9f3b23cf1b (diff)
downloadFindThings-7c4d899d6b8703f5cf787629a329c59a77a5411e.tar.gz
FindThings-7c4d899d6b8703f5cf787629a329c59a77a5411e.tar.bz2
FindThings-7c4d899d6b8703f5cf787629a329c59a77a5411e.zip
Tree
-rw-r--r--assets/tree.pngbin0 -> 208938 bytes
-rw-r--r--design.org (renamed from concepts.org)8
-rw-r--r--src/assets.c3
-rw-r--r--src/assets.h5
4 files changed, 13 insertions, 3 deletions
diff --git a/assets/tree.png b/assets/tree.png
new file mode 100644
index 0000000..5c41e69
--- /dev/null
+++ b/assets/tree.png
Binary files differ
diff --git a/concepts.org b/design.org
index b8c426d..3cd3462 100644
--- a/concepts.org
+++ b/design.org
@@ -94,3 +94,11 @@ creates is possible to beat. A little wack is fine as long as its
beatable. Since most of the world will just be a height map a image will be
generated first than rest of the world will be based around it.
+* TODO World generation check list [1/6]
++ [X] Basic terrain
++ [ ] Trees/plants
++ [ ] Pond
++ [ ] Power lines
++ [ ] Buildings
++ [ ] Roads
+
diff --git a/src/assets.c b/src/assets.c
index b42dfae..a50b824 100644
--- a/src/assets.c
+++ b/src/assets.c
@@ -7,7 +7,8 @@ const char imageAssetPaths[IMAGE_ASSET_COUNT][FT_NAMEMAX] = {
const char textureAssetPaths[TEXTURE_ASSET_COUNT][FT_NAMEMAX] = {
"heightmap.png",
"mint.png",
- "nickel.png"
+ "nickel.png",
+ "tree.png"
};
void initAssets(Assets* assets)
diff --git a/src/assets.h b/src/assets.h
index f276088..0c6664c 100644
--- a/src/assets.h
+++ b/src/assets.h
@@ -4,7 +4,7 @@
#define ASSETS_H
#define IMAGE_ASSET_COUNT 1
-#define TEXTURE_ASSET_COUNT 3
+#define TEXTURE_ASSET_COUNT 4
extern const char imageAssetPaths[IMAGE_ASSET_COUNT][FT_NAMEMAX];
extern const char textureAssetPaths[TEXTURE_ASSET_COUNT][FT_NAMEMAX];
@@ -20,7 +20,8 @@ enum {
enum {
HEIGHT_MAP_TEXTURE,
MINT_TEXTURE,
- NICK_TEXTURE
+ NICK_TEXTURE,
+ TREE_TEXTURE
};
typedef struct {