feat: More info drawn

This commit is contained in:
2026-04-23 22:49:05 +01:00
parent b7c4a2fa36
commit 4e7f79dadc
9 changed files with 42 additions and 13 deletions

View File

@@ -122,6 +122,11 @@ float normalize_angle_diff(const float diff)
return d;
}
float angle_to_heading(float const angle)
{
return normalize_angle(angle) * 180.0f / M_PIf;
}
int rand_int(int const min, int const max)
{
return SDL_rand(max - min) + min;