From 19a32074595a4a2797eaeb978f8bd302f736f6a6 Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 19 Jan 2017 09:14:12 -0500 Subject: Limb animation actually works --- src/player.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/player.cpp') diff --git a/src/player.cpp b/src/player.cpp index e83616d..c0710cc 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -9,7 +9,8 @@ static const char *spriteXML = " \ \ - assets/cat.png \ + assets/player/player.png \ + assets/player/player.png\ \ "; @@ -22,14 +23,12 @@ void PlayerSystem::create(void) //player.assign(-0.001f); player.assign(1); player.assign(-0.2f); - auto sprite = player.assign(); XMLDocument xmld; xmld.Parse(spriteXML); auto frame = developFrame(xmld.FirstChildElement("Sprite")); if (frame.size() > 0) sprite->sprite = frame.at(0); - vec2 dim = player.component().get()->getSpriteSize(); float cdat[2] = {dim.x, dim.y}; player.assign(cdat[0], cdat[1]); -- cgit v1.2.3