Switch position, scale and velocity to i16
This commit is contained in:
3
common.h
3
common.h
@@ -7,6 +7,8 @@
|
||||
#define MAX_WANDERER_DIM 8
|
||||
#define MIN_WANDERER_DIM 3
|
||||
#define MIN_ZONE_DIM 30
|
||||
#define MIN_ABS_VELOCITY 200
|
||||
#define MAX_ABS_VELOCITY 600
|
||||
#define BG_COLOR (Color){.r = 0xea, .g = 0xf2, .b = 0xe3, .a = 0xff}
|
||||
#define FG_COLOR (Color){.r = 0x42, .g = 0x4C, .b = 0x55, .a = 0xff}
|
||||
#define ZONE_COLOR (Color){.r = 0xb4, .g = 0x65, .b = 0x4a, .a = 0xff}
|
||||
@@ -15,6 +17,7 @@
|
||||
#define WANDERER_SLOWDOWN_FACTOR 0.5f
|
||||
#define WANDERER_SPEEDUP_FACTOR 2.0f
|
||||
#define MSG_BUF_LEN 4096
|
||||
|
||||
#define abs(A) (A < 0 ? A * -1 : A)
|
||||
#define min(A, B) (A < B ? A : B)
|
||||
#define max(A, B) (A > B ? A : B)
|
||||
|
||||
Reference in New Issue
Block a user