From ff4929c650e6ed446b6faff9f6b0f078d0a3644c Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Mon, 9 Oct 2017 22:51:50 +0200 Subject: Initial work on entities. --- src/game.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/game.cpp') 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) { -- cgit