]> git.lizzy.rs Git - dragonblocks_alpha.git/commitdiff
Add snow
authorElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 12 Jul 2021 17:52:30 +0000 (19:52 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 12 Jul 2021 17:52:30 +0000 (19:52 +0200)
src/clientnode.c
src/node.c
src/node.h
textures/snow.png [new file with mode: 0644]

index 7e502d310b195940ab87c11f93eadd4404031088..f94efe4ac8cc198f7fd355b8511a6bcb85c74d33 100644 (file)
@@ -9,6 +9,7 @@ ClientNodeDefintion client_node_definitions[NODE_UNLOADED] = {
        {RESSOURCEPATH "textures/grass.png", NULL},
        {RESSOURCEPATH "textures/dirt.png", NULL},
        {RESSOURCEPATH "textures/stone.png", NULL},
+       {RESSOURCEPATH "textures/snow.png", NULL},
 };
 
 void init_client_node_definitions()
index be90a69994a34ba993e8f54457c60f2862c8a57e..5fc7b5c9b0486fd2d15bf981052ea51a13702c6c 100644 (file)
@@ -27,4 +27,9 @@ NodeDefintion node_definitions[NODE_UNLOADED] = {
                .visible = true,
                .solid = true,
        },
+       // snow
+       {
+               .visible = true,
+               .solid = true,
+       },
 };
index 6028500cc621a7cc1a1a791b712c78c96298fe69..552da3873d8657b9add837f8f0824795312bcdeb 100644 (file)
@@ -11,6 +11,7 @@ typedef enum
        NODE_GRASS,
        NODE_DIRT,
        NODE_STONE,
+       NODE_SNOW,
        NODE_UNLOADED,          // Used for nodes in unloaded blocks
 } Node;
 
diff --git a/textures/snow.png b/textures/snow.png
new file mode 100644 (file)
index 0000000..1748103
Binary files /dev/null and b/textures/snow.png differ