Increased precision and max speed and lowered friction
This commit is contained in:
parent
8a4bc582a9
commit
94938edba5
|
@ -1,4 +1,4 @@
|
|||
#define VEC_PRECISION 1024
|
||||
#define VEC_PRECISION 4096
|
||||
#define UPS 256
|
||||
#define PXS (VEC_PRECISION / UPS)
|
||||
#define TILE_SIZE (8 * VEC_PRECISION)
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#include "collide.h"
|
||||
|
||||
/* TODO: Determine FRICTION and ACCELERATION from UPS. */
|
||||
#define MAX_SPD (64 * PXS)
|
||||
#define FRICTION (0.95)
|
||||
#define MAX_SPD (128 * PXS)
|
||||
#define FRICTION 0.99
|
||||
#define ACCELERATION (int)(MAX_SPD * (1 - FRICTION))
|
||||
#define GRAVITY PXS
|
||||
#define JUMP_SPD (-128 * PXS)
|
||||
|
|
Reference in New Issue