]> git.lizzy.rs Git - dragonblocks3d-lua.git/blobdiff - modules/Game/src/init.lua
Refactoring
[dragonblocks3d-lua.git] / modules / Game / src / init.lua
diff --git a/modules/Game/src/init.lua b/modules/Game/src/init.lua
new file mode 100644 (file)
index 0000000..707ce0d
--- /dev/null
@@ -0,0 +1,11 @@
+local ressource_path = Game:get_path() .. "/ressources/"
+
+BlockSystem:register_block({
+       name = "game:stone",
+       texture_path = ressource_path .. "stone.png",
+})
+
+BlockSystem:register_block({
+       name = "game:dirt",
+       texture_path = ressource_path .. "dirt.png",
+})