|
|
@ -5,7 +5,7 @@
|
|
|
|
#define BOX_SIZE 0.25f
|
|
|
|
#define BOX_SIZE 0.25f
|
|
|
|
#define PLAYER_SIZE ((V2){.x = BOX_SIZE, .y = BOX_SIZE})
|
|
|
|
#define PLAYER_SIZE ((V2){.x = BOX_SIZE, .y = BOX_SIZE})
|
|
|
|
#define PLAYER_MASS 0.5f
|
|
|
|
#define PLAYER_MASS 0.5f
|
|
|
|
#define PLAYER_JETPACK_FORCE 2.0f
|
|
|
|
#define PLAYER_JETPACK_FORCE 1.5f
|
|
|
|
// #define PLAYER_JETPACK_FORCE 20.0f
|
|
|
|
// #define PLAYER_JETPACK_FORCE 20.0f
|
|
|
|
#define PLAYER_JETPACK_SPICE_PER_SECOND 0.1f
|
|
|
|
#define PLAYER_JETPACK_SPICE_PER_SECOND 0.1f
|
|
|
|
#define MAX_HAND_REACH 1.0f
|
|
|
|
#define MAX_HAND_REACH 1.0f
|
|
|
@ -13,14 +13,14 @@
|
|
|
|
#define BUILD_BOX_SNAP_DIST_TO_SHIP 0.2f
|
|
|
|
#define BUILD_BOX_SNAP_DIST_TO_SHIP 0.2f
|
|
|
|
#define BOX_MASS 1.0f
|
|
|
|
#define BOX_MASS 1.0f
|
|
|
|
#define COLLISION_DAMAGE_SCALING 0.15f
|
|
|
|
#define COLLISION_DAMAGE_SCALING 0.15f
|
|
|
|
#define THRUSTER_FORCE 8.0f
|
|
|
|
#define THRUSTER_FORCE 12.0f
|
|
|
|
#define THRUSTER_ENERGY_USED_PER_SECOND 0.005f
|
|
|
|
#define THRUSTER_ENERGY_USED_PER_SECOND 0.005f
|
|
|
|
#define VISION_RADIUS 16.0f
|
|
|
|
#define VISION_RADIUS 16.0f
|
|
|
|
#define MAX_BYTES_SIZE 1024 * 128 // maximum size of serialized gamestate buffer
|
|
|
|
#define MAX_BYTES_SIZE 1024 * 128 // maximum size of serialized gamestate buffer
|
|
|
|
#define SUN_RADIUS 10.0f
|
|
|
|
#define SUN_RADIUS 10.0f
|
|
|
|
#define INSTANT_DEATH_DISTANCE_FROM_SUN 300.0f
|
|
|
|
#define INSTANT_DEATH_DISTANCE_FROM_SUN 500.0f
|
|
|
|
#define SUN_POS ((V2){50.0f,0.0f})
|
|
|
|
#define SUN_POS ((V2){50.0f,0.0f})
|
|
|
|
#define SUN_GRAVITY_STRENGTH (5.0e3f)
|
|
|
|
#define SUN_GRAVITY_STRENGTH (9.0e2f)
|
|
|
|
#define SOLAR_ENERGY_PER_SECOND 0.02f
|
|
|
|
#define SOLAR_ENERGY_PER_SECOND 0.02f
|
|
|
|
#define DAMAGE_TO_PLAYER_PER_BLOCK 0.1f
|
|
|
|
#define DAMAGE_TO_PLAYER_PER_BLOCK 0.1f
|
|
|
|
#define BATTERY_CAPACITY DAMAGE_TO_PLAYER_PER_BLOCK*0.7f
|
|
|
|
#define BATTERY_CAPACITY DAMAGE_TO_PLAYER_PER_BLOCK*0.7f
|
|
|
|