Increased precision and max speed and lowered friction

This commit is contained in:
KikooDX 2020-12-24 12:33:24 +01:00
parent 8a4bc582a9
commit 94938edba5
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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)