Permalink
Browse files

versao funcional com threads, porem graficos ainda nao acertados

  • Loading branch information...
prsolucoes committed Sep 18, 2012
1 parent dff44f1 commit c9a60e3c5f7e41e9156fb9ab87222b76e8bef156
Showing with 6 additions and 1 deletion.
  1. +1 −0 Character.cpp
  2. +5 −1 js/robot1.js
View
@@ -90,6 +90,7 @@ void Character::loadSprite()
}
sprite = new sf::Sprite(*texture);
sprite->setOrigin(sprite->getGlobalBounds().width / 2, sprite->getGlobalBounds().height / 2);
+ sprite->setRotation(getAngleForDirection(direction));
}
int Character::getAngleForDirection(int direction)
View
@@ -1,3 +1,7 @@
-robot1.walkForward();
+for (var x = 0; x < 20; x++)
+{
+ robot1.walkForward();
+}
+
robot1.rotateRight();
//robot1.mssleep(5000);

0 comments on commit c9a60e3

Please sign in to comment.