Fixed Gravity to scale correctly with global scale
This commit is contained in:
parent
bd0c49b3ae
commit
0cc31be0c7
Binary file not shown.
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
// {
|
// {
|
||||||
|
Loading…
Reference in New Issue
Block a user