From ab48cb8e847c59e4e8475dacdc59f32179b449ef Mon Sep 17 00:00:00 2001 From: Cameron Reikes Date: Sun, 11 Dec 2022 19:45:15 -0800 Subject: [PATCH] Small fixes, prepare for release! --- buildsettings.h | 2 +- flight.rdbg | Bin 1450 -> 1681 bytes gamestate.c | 8 ++++++++ main.c | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/buildsettings.h b/buildsettings.h index 986bf42..c5e3fa5 100644 --- a/buildsettings.h +++ b/buildsettings.h @@ -6,7 +6,7 @@ #define SERVER_PORT 2551 // must be unsigned integer -#define GIT_RELEASE_TAG 23 +#define GIT_RELEASE_TAG 24 #ifdef DEBUG diff --git a/flight.rdbg b/flight.rdbg index 1ed3c22354d4d6b0d84ed479dbe08a0c429da2d2..79a69c1f8d30304190e465b13a6d3a8a6ca55eee 100644 GIT binary patch delta 166 zcmZ3*J&|`pE~^j&1B2J(1I*Tw?HSp4g9{RqQv*v=iz@Y!-JqiE>`oy?si}I&8w(X# z+*yF?xq&z*KRGccz92s{uS6EeEd=R_FG?*g%_-5#ORXr;wL_3>Km|pKDVe3ktUy+N lNk(eXgyrospin_velocity = lerp(cur_box->gyrospin_velocity, cur_box->thrust * 20.0, dt * 5.0); 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) { cur_box->thrust = 0.0; diff --git a/main.c b/main.c index 827914e..ce77f2b 100644 --- a/main.c +++ b/main.c @@ -834,7 +834,7 @@ static void ui(bool draw, double dt, double width, double height) double alpha = 1.0 - clamp01(zoomeasy_learned); set_color_values(1.0, 1.0, 1.0, alpha); 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 { scale_at(1.0, -1.0, draw_at.x, draw_at.y);