Update
This commit is contained in:
parent
72fc074af1
commit
85362a12ac
1 changed files with 11 additions and 5 deletions
|
@ -8,7 +8,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define FPS 60
|
#define FPS 60
|
||||||
#define PLAYER_SPEED (UNITS_PER_SQUARE * 3)
|
#define HEAD_BOB_HEIGHT 200
|
||||||
|
#define HEAD_BOB_STEP 20
|
||||||
|
#define PLAYER_SPEED (5 * UNITS_PER_SQUARE)
|
||||||
|
|
||||||
#include "general.hpp"
|
#include "general.hpp"
|
||||||
|
|
||||||
|
@ -811,7 +813,11 @@ void draw()
|
||||||
|
|
||||||
player.mCamera.height += player.mHeadBob;
|
player.mCamera.height += player.mHeadBob;
|
||||||
renderSimple(player.mCamera,floorHeightAt,textureAt,pixelFunc,c);
|
renderSimple(player.mCamera,floorHeightAt,textureAt,pixelFunc,c);
|
||||||
|
|
||||||
|
/* this would achieve more or less the same (less shaky head bob),
|
||||||
|
for a cost of a few FPS: */
|
||||||
// render(player.mCamera,floorHeightAt,0,textureAt,pixelFunc,c);
|
// render(player.mCamera,floorHeightAt,0,textureAt,pixelFunc,c);
|
||||||
|
|
||||||
player.mCamera.height -= player.mHeadBob;
|
player.mCamera.height -= player.mHeadBob;
|
||||||
|
|
||||||
if (shotFired)
|
if (shotFired)
|
||||||
|
|
Loading…
Reference in a new issue