Adjust physics
This commit is contained in:
parent
0e1f2b017d
commit
f5621ac8e1
4 changed files with 10 additions and 7 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
#define SPEED_MULTIPLIER 1
|
||||||
#define PROJ_SHOW_FPS_COUNTER
|
#define PROJ_SHOW_FPS_COUNTER
|
||||||
#define PROJ_SCREENMODE 13
|
#define PROJ_SCREENMODE 13
|
||||||
#define PROJ_MODE13 1
|
#define PROJ_MODE13 1
|
||||||
|
|
|
@ -21,8 +21,9 @@
|
||||||
|
|
||||||
// redefine some parameters
|
// redefine some parameters
|
||||||
#define FPS 255
|
#define FPS 255
|
||||||
#define GRAVITY_ACCELERATION (RCL_UNITS_PER_SQUARE * 3)
|
#define PLAYER_SPEED (RCL_UNITS_PER_SQUARE * 2 * SPEED_MULTIPLIER)
|
||||||
#define PLAYER_JUMP_SPEED 700
|
#define GRAVITY_ACCELERATION (RCL_UNITS_PER_SQUARE * SPEED_MULTIPLIER)
|
||||||
|
#define PLAYER_JUMP_SPEED 400
|
||||||
#define RCL_CAMERA_COLL_HEIGHT_BELOW ((3 * RCL_UNITS_PER_SQUARE) / 2)
|
#define RCL_CAMERA_COLL_HEIGHT_BELOW ((3 * RCL_UNITS_PER_SQUARE) / 2)
|
||||||
#define RCL_HORIZONTAL_FOV (RCL_UNITS_PER_SQUARE / 5)
|
#define RCL_HORIZONTAL_FOV (RCL_UNITS_PER_SQUARE / 5)
|
||||||
|
|
||||||
|
@ -1284,8 +1285,8 @@ int main()
|
||||||
moveDirection = -1;
|
moveDirection = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
player.update(moveDirection,strafe,rotationDirection,pokitto.bBtn(),shearDirection,
|
player.update(moveDirection,strafe,rotationDirection,pokitto.bBtn(),
|
||||||
floorHeightAt,ceilingHeightAt,true,dt);
|
shearDirection,floorHeightAt,ceilingHeightAt,true,dt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
#define FPS 255
|
#define FPS 255
|
||||||
#define HEAD_BOB_HEIGHT 200
|
#define HEAD_BOB_HEIGHT 200
|
||||||
#define HEAD_BOB_STEP 20
|
#define HEAD_BOB_STEP 20
|
||||||
#define PLAYER_SPEED (5 * RCL_UNITS_PER_SQUARE)
|
#define PLAYER_SPEED (4 * RCL_UNITS_PER_SQUARE * SPEED_MULTIPLIER)
|
||||||
|
|
||||||
#define TEXTURE_W 32 // for the sake of performance we require prespecified sizes
|
#define TEXTURE_W 32 // for the sake of performance we require prespecified sizes
|
||||||
#define TEXTURE_H 32
|
#define TEXTURE_H 32
|
||||||
|
|
|
@ -13,9 +13,10 @@
|
||||||
#define SUBSAMPLE 1
|
#define SUBSAMPLE 1
|
||||||
|
|
||||||
// redefine player's height
|
// redefine player's height
|
||||||
#define PLAYER_SPEED (RCL_UNITS_PER_SQUARE * 6)
|
#define PLAYER_SPEED (RCL_UNITS_PER_SQUARE * 4 * SPEED_MULTIPLIER)
|
||||||
|
#define PLAYER_JUMP_SPEED 600
|
||||||
#define RCL_HORIZONTAL_FOV ((3 * RCL_UNITS_PER_SQUARE) / 10)
|
#define RCL_HORIZONTAL_FOV ((3 * RCL_UNITS_PER_SQUARE) / 10)
|
||||||
#define GRAVITY_ACCELERATION (RCL_UNITS_PER_SQUARE * 2)
|
#define GRAVITY_ACCELERATION (RCL_UNITS_PER_SQUARE * 2 * SPEED_MULTIPLIER)
|
||||||
#define RCL_CAMERA_COLL_HEIGHT_BELOW ((3 * RCL_UNITS_PER_SQUARE) / 2)
|
#define RCL_CAMERA_COLL_HEIGHT_BELOW ((3 * RCL_UNITS_PER_SQUARE) / 2)
|
||||||
#define FPS 255
|
#define FPS 255
|
||||||
#define HEAD_BOB_HEIGHT 150
|
#define HEAD_BOB_HEIGHT 150
|
||||||
|
|
Loading…
Reference in a new issue