mirror of
https://github.com/luksamuk/engine-psx.git
synced 2025-04-28 13:28:02 +03:00
Store player constants as hex
This commit is contained in:
parent
956b6d1d27
commit
a3fadda065
1 changed files with 9 additions and 7 deletions
|
@ -4,13 +4,15 @@
|
|||
#include "chara.h"
|
||||
#include <psxgte.h>
|
||||
|
||||
#define X_ACCEL 192
|
||||
#define X_FRICTION 192
|
||||
#define X_DECEL 2048
|
||||
#define X_TOP_SPD 24576
|
||||
#define Y_GRAVITY 896
|
||||
#define Y_MIN_JUMP 16384
|
||||
#define Y_JUMP_STRENGTH 26624
|
||||
// Constants for running the game at a fixed 60 FPS.
|
||||
// These constants are also in a 12-scale format for fixed point math.
|
||||
#define X_ACCEL 0x0081
|
||||
#define X_FRICTION 0x0018
|
||||
#define X_DECEL 0x0800
|
||||
#define X_TOP_SPD 0x6000
|
||||
#define Y_GRAVITY 0x0380
|
||||
#define Y_MIN_JUMP 0x4000
|
||||
#define Y_JUMP_STRENGTH 0x6800
|
||||
|
||||
typedef struct {
|
||||
Chara chara;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue