summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp16
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;