-#include "block_def.hpp"
-#include "game.hpp"
-#include "mapgen.hpp"
-#include "tile_def.hpp"
+#include "block_def.hpp"
+#include "game.hpp"
+#include "mapgen.hpp"
+#include "tile_def.hpp"
using namespace dragonblocks;
grass_side_texture.load("textures/grass_side.png");
dirt_texture.load("textures/dirt.png");
stone_texture.load("textures/stone.png");
-
+ snow_texture.load("textures/snow.png");
+
air = new BlockDef("dragonblocks:air");
grass = new BlockDef("dragonblocks:grass", TileDef({grass_side_texture, grass_side_texture, grass_side_texture, grass_side_texture, dirt_texture, grass_texture}));
dirt = new BlockDef("dragonblocks:dirt", dirt_texture);
stone = new BlockDef("dragonblocks:stone", stone_texture);
-
+ snow = new BlockDef("dragonblocks:snow", snow_texture);
+
mapgen->air_def = air;
mapgen->grass_def = grass;
mapgen->dirt_def = dirt;
mapgen->stone_def = stone;
+ mapgen->snow_def = snow;
}