]> Dogcows Code - chaz/yoink/blobdiff - src/Character.cc
library class revamped as manager, goodbye tilemap
[chaz/yoink] / src / Character.cc
index 9da4344aab361bd369eb26f41f56677eff2a5689..2290e3c2797a5d1023f63ddc4335921c04dfc602 100644 (file)
@@ -126,11 +126,10 @@ void Character::draw(Mf::Scalar alpha) const
        //glColor3f(1.0f, 1.0f, 1.0f);
        tilemap.bind();
 
-       Tilemap::Index frame = animation.getFrame();
+       Mf::Texture::TileIndex frame = animation.getFrame();
+       Mf::Texture::Orientation orientation = Mf::Texture::NORMAL;
 
-       Tilemap::Orientation orientation = Tilemap::NORMAL;
-
-       if (mState.velocity[0] < 0.0) orientation = Tilemap::REVERSE;
+       if (mState.velocity[0] < 0.0) orientation = Mf::Texture::REVERSE;
 
        Mf::Scalar coords[8];
        tilemap.getTileCoords(frame, coords, orientation);
This page took 0.016357 seconds and 4 git commands to generate.