Small fixes, prepare for release!

main
Cameron Murphy Reikes 2 years ago
parent 9ff100561a
commit ab48cb8e84

@ -6,7 +6,7 @@
#define SERVER_PORT 2551 #define SERVER_PORT 2551
// must be unsigned integer // must be unsigned integer
#define GIT_RELEASE_TAG 23 #define GIT_RELEASE_TAG 24
#ifdef DEBUG #ifdef DEBUG

Binary file not shown.

@ -2833,6 +2833,14 @@ void process(struct GameState *gs, double dt)
{ {
cur_box->gyrospin_velocity = lerp(cur_box->gyrospin_velocity, cur_box->thrust * 20.0, dt * 5.0); cur_box->gyrospin_velocity = lerp(cur_box->gyrospin_velocity, cur_box->thrust * 20.0, dt * 5.0);
cur_box->gyrospin_angle += cur_box->gyrospin_velocity * dt; cur_box->gyrospin_angle += cur_box->gyrospin_velocity * dt;
if(cur_box->gyrospin_angle > 2.0*PI)
{
cur_box->gyrospin_angle -= 2.0 * PI;
}
if(cur_box->gyrospin_angle < -2.0 * PI)
{
cur_box->gyrospin_angle += 2.0 * PI;
}
if (cur_box->wanted_thrust == 0.0) if (cur_box->wanted_thrust == 0.0)
{ {
cur_box->thrust = 0.0; cur_box->thrust = 0.0;

@ -834,7 +834,7 @@ static void ui(bool draw, double dt, double width, double height)
double alpha = 1.0 - clamp01(zoomeasy_learned); double alpha = 1.0 - clamp01(zoomeasy_learned);
set_color_values(1.0, 1.0, 1.0, alpha); set_color_values(1.0, 1.0, 1.0, alpha);
sgp_set_image(0, image_zoomeasyhelp); sgp_set_image(0, image_zoomeasyhelp);
cpVect draw_at = cpv(width * 0.25, height * 0.5); cpVect draw_at = cpv(width * 0.1, height * 0.5);
transform_scope transform_scope
{ {
scale_at(1.0, -1.0, draw_at.x, draw_at.y); scale_at(1.0, -1.0, draw_at.x, draw_at.y);

Loading…
Cancel
Save