X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FCharacter.cc;h=411c0327e641ba8c5ff0883f0efc0d4a22d6f366;hb=8ad81a8282ce6e9e488a453e6bcd05fbc09715dc;hp=97a10b2553d27532cd2631f2a5447ae85ec7f1ca;hpb=bfa6212d09d8735d8fd5e2638188e4a99f21ada4;p=chaz%2Fyoink diff --git a/src/Character.cc b/src/Character.cc index 97a10b2..411c032 100644 --- a/src/Character.cc +++ b/src/Character.cc @@ -27,8 +27,8 @@ *******************************************************************************/ #include "Character.hh" +#include "Log.hh" -#include Character::Character(const std::string& name) : tilemap_(name), @@ -125,7 +125,7 @@ void Character::handleEvent(const Mf::Event& event) break; } - std::cout << "current force: " << current.force << std::endl; + Mf::logInfo("current force [%f %f]", current.force[0], current.force[1]); } @@ -143,7 +143,7 @@ void Character::draw(Mf::Scalar alpha) const Mf::Scalar s = 16.0; - glBegin(GL_QUADS); + glBegin(GL_TRIANGLE_FAN); glTexCoord2f(coords[0], coords[1]); glVertex3(state.position[0]-s, state.position[1]-s, z); glTexCoord2f(coords[2], coords[3]);