From 92e406bc747590fff077ce135b1fea341f1ad8a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Thu, 29 Mar 2018 11:57:17 +0200 Subject: [PATCH] Measure by pixel/second --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 0009f08..d22d335 100644 --- a/src/main.c +++ b/src/main.c @@ -44,8 +44,8 @@ const char *info_format = "x: %f\n" "y: %f\n" "angle: %f (%f degrees)\n" - "velX: %f\n" - "velY: %f"; + "velX: %f px/sec\n" + "velY: %f px/sec"; int main() { char title[32]; @@ -128,7 +128,7 @@ int main() { ship.x, ship.y, ship.direction, RAD_TO_DEG(ship.direction), - ship.velX, ship.velY); + ship.velX * FPS, ship.velY * FPS); al_draw_multiline_text(font, al_map_rgb(0xFF, 0xFF, 0xFF), 5, 5, WINDOW_WIDTH, 10.0f,