From c33d0fa9c43fb316a9c6bbb2be81446dce7f49da Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Tue, 12 Dec 2017 15:44:19 +0100 Subject: Move tile data to src/game. --- src/game/game.hpp | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to 'src/game/game.hpp') diff --git a/src/game/game.hpp b/src/game/game.hpp index 3e10bbb..5da6370 100644 --- a/src/game/game.hpp +++ b/src/game/game.hpp @@ -1,14 +1,25 @@ #include "../common.hpp" -namespace assets { - typedef struct { - render::oriented_sprite_4M_t head_idle, body_idle; - render::oriented_sprite_4M2_t legs_idle, legs_walking; - } human_assets_t; +namespace game { + enum { + TILE_NONE, + TILE_DIRT, + TILE_WALL + }; - extern human_assets_t human; - extern sf::Texture tile_dirt; - extern sf::Texture tile_wall; + void worldgen(world::tile_t *tile, world::tile_index_t x, + procgen::perlin_noise_t *perlin); - void load(void); + namespace assets { + typedef struct { + render::oriented_sprite_4M_t head_idle, body_idle; + render::oriented_sprite_4M2_t legs_idle, legs_walking; + } human_assets_t; + + extern human_assets_t human; + extern sf::Texture tile_dirt; + extern sf::Texture tile_wall; + + void load(void); + } }; -- cgit