From e1da92454d096c28292699f64d891a3af292a204 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Thu, 12 Oct 2017 13:20:06 +0200 Subject: Initial work on animations. --- src/game.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 6416f93..396d26a 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -2,10 +2,26 @@ namespace game { + +class unit_t : public world::entity_t { + +}; + +static render::animated_texture_t test; + +class human_t : public unit_t { + void render(render::state_t *render) + { + render->render(&test, bounds); + } +}; + static human_t *human; void state_t::start(void) { + test.load("assets/test_", 4); + human = new human_t; human->bounds.left = -0.2f; human->bounds.top = -0.2f; -- cgit