Adjust camera parameters
This commit is contained in:
parent
e39104d8ea
commit
c91a59bab8
4 changed files with 16 additions and 8 deletions
|
@ -10,8 +10,11 @@
|
||||||
license: CC0 1.0
|
license: CC0 1.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// redefine player's height
|
// redefine some parameters
|
||||||
|
#define GRAVITY_ACCELERATION (UNITS_PER_SQUARE * 3)
|
||||||
|
#define PLAYER_JUMP_SPEED 700
|
||||||
#define CAMERA_COLL_HEIGHT_BELOW ((3 * UNITS_PER_SQUARE) / 2)
|
#define CAMERA_COLL_HEIGHT_BELOW ((3 * UNITS_PER_SQUARE) / 2)
|
||||||
|
#define HORIZONTAL_FOV (UNITS_PER_SQUARE / 5)
|
||||||
|
|
||||||
#include "general.hpp"
|
#include "general.hpp"
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
Player player;
|
Player player;
|
||||||
|
|
||||||
#define SHOT_SPEED 5 * UNITS_PER_SQUARE
|
#define SHOT_SPEED 10 * UNITS_PER_SQUARE
|
||||||
#define INFO_BAR_START 70
|
#define INFO_BAR_START 70
|
||||||
#define TEXTURE_MAX_DISTANCE (UNITS_PER_SQUARE * 6)
|
#define TEXTURE_MAX_DISTANCE (UNITS_PER_SQUARE * 6)
|
||||||
|
|
||||||
|
@ -900,10 +900,13 @@ int main()
|
||||||
|
|
||||||
bool strafe = pokitto.aBtn();
|
bool strafe = pokitto.aBtn();
|
||||||
|
|
||||||
|
if (!strafe)
|
||||||
|
{
|
||||||
if (pokitto.upBtn())
|
if (pokitto.upBtn())
|
||||||
moveDirection = 1;
|
moveDirection = 1;
|
||||||
else if (pokitto.downBtn())
|
else if (pokitto.downBtn())
|
||||||
moveDirection = -1;
|
moveDirection = -1;
|
||||||
|
}
|
||||||
|
|
||||||
if (pokitto.rightBtn())
|
if (pokitto.rightBtn())
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// redefine player's height
|
// redefine player's height
|
||||||
#define PLAYER_SPEED (UNITS_PER_SQUARE * 7)
|
#define PLAYER_SPEED (UNITS_PER_SQUARE * 6)
|
||||||
|
#define HORIZONTAL_FOV ((3 * UNITS_PER_SQUARE) / 10)
|
||||||
|
#define GRAVITY_ACCELERATION (UNITS_PER_SQUARE * 2)
|
||||||
#define CAMERA_COLL_HEIGHT_BELOW ((3 * UNITS_PER_SQUARE) / 2)
|
#define CAMERA_COLL_HEIGHT_BELOW ((3 * UNITS_PER_SQUARE) / 2)
|
||||||
#define FPS 40
|
#define FPS 40
|
||||||
#define HEAD_BOB_HEIGHT 150
|
#define HEAD_BOB_HEIGHT 150
|
||||||
|
|
|
@ -26,7 +26,7 @@ Pokitto::Core pokitto;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef PLAYER_SPEED
|
#ifndef PLAYER_SPEED
|
||||||
#define PLAYER_SPEED (2 * UNITS_PER_SQUARE)
|
#define PLAYER_SPEED (4 * UNITS_PER_SQUARE)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef PLAYER_ROTATION_SPEED
|
#ifndef PLAYER_ROTATION_SPEED
|
||||||
|
|
Loading…
Reference in a new issue