diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-10-09 22:51:50 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-10-09 22:51:50 +0200 |
commit | ff4929c650e6ed446b6faff9f6b0f078d0a3644c (patch) | |
tree | 932671a8f9e06d0add2fb2ae9c0f542bd3980304 /src/game.cpp | |
parent | 8d6cb03cd83b9f6576909058601af54f16c8acfe (diff) |
Initial work on entities.
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) { |