diff options
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/player.cpp b/src/player.cpp index 59274b3..37a958d 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -12,7 +12,9 @@ void PlayerSystem::create(void) player = game::entities.create(); player.assign<Position>(0.0f, 100.0f); player.assign<Direction>(0.0f, 0.0f); - player.assign<Physics>(-0.001f); + // The new g value is a multiplier for the gravity constant. This allows for air resistance simulation. + //player.assign<Physics>(-0.001f); + player.assign<Physics>(1); player.assign<Visible>(-0.2f); auto sprite = player.assign<Sprite>(); |