Permalink
Browse files

Fixed RGJ01 bugs

  • Loading branch information...
1 parent ec07113 commit c14aefb5a584e5e387d818173e6b7624901c5026 @svenstaro committed Oct 20, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 RGJ01/src/GameApp.cpp
  2. +1 −1 RGJ01/src/Ship.cpp
@@ -130,6 +130,7 @@ void GameApp::Run() {
// Set up timestep and reset clock
float elapsed = m_Clock.GetElapsedTime();
+ elapsed /= 1000.f;
accumulator += elapsed;
m_Clock.Reset();
View
@@ -45,7 +45,7 @@ void Ship::Update() {
sf::Vector2f size = m_sprite.GetSize();
m_sprite.SetPosition(position.x + size.x / 2,
position.y - size.y / 2);
- m_sprite.SetRotation(angle);
+ m_sprite.SetRotation(angle - 180);
}
const sf::Sprite& Ship::GetDrawable() {

0 comments on commit c14aefb

Please sign in to comment.