diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-10-12 13:20:06 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-10-14 12:42:09 +0200 |
commit | e1da92454d096c28292699f64d891a3af292a204 (patch) | |
tree | db84ed861a55e6c4f61c7090c19d6f0e41b6cec5 /src/game.cpp | |
parent | 753f71536339b78c49468ba6452c96d6b3c345b2 (diff) |
Initial work on animations.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
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; |