diff options
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r-- | src/game/game.hpp | 29 |
1 files changed, 20 insertions, 9 deletions
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); + } }; |