Fixed Gravity to scale correctly with global scale

This commit is contained in:
Alan Youngblood 2021-11-05 21:54:18 -04:00
parent bd0c49b3ae
commit 0cc31be0c7
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -3,5 +3,5 @@
"WindowName":"Beagle Rescue", "WindowName":"Beagle Rescue",
"WindowSize":{"w":320,"h":240}, "WindowSize":{"w":320,"h":240},
"WindowFullScreen": 0, "WindowFullScreen": 0,
"GlobalScale": 1 "GlobalScale": 3
} }

View File

@ -280,7 +280,7 @@ void Game::update()
// Gravity // Gravity
if (gravityOnPlayer){ if (gravityOnPlayer){
player.getComponent<TransformComponent>().position.y += 10; player.getComponent<TransformComponent>().position.y += 3*gScale;
} }
// for(auto& p: projectiles) // for(auto& p: projectiles)
// { // {