diff options
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp index 05b0139..6fff821 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -2,9 +2,17 @@ namespace game { -class entity_t : world::entity_t { - virtual void render(sf::RenderWindow *window) = 0; -}; +void state_t::start(void) +{ + human_t *human; + + human = new human_t; + human->bounds.left = 0.2f; + human->bounds.top = 0.2f; + human->bounds.width = 1.0f; + human->bounds.height = 1.0f; + human->link(&world); +} void state_t::tick(void) { |