diff options
author | Andy <drumsetmonkey@gmail.com> | 2016-10-26 09:27:40 -0400 |
---|---|---|
committer | Andy <drumsetmonkey@gmail.com> | 2016-10-26 09:27:40 -0400 |
commit | 0fa2320e978926db6781a2bdcdf5a9b6f0317e93 (patch) | |
tree | 61576fdff5ae8434c2299486690f4b411d6b79d3 /src/player.cpp | |
parent | e0f353be4c21f38978bef83e9651ef9eda886da4 (diff) |
Physics and world collide
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>(); |