Measure by pixel/second

This commit is contained in:
Nicolás Ortega Froysa 2018-03-29 11:57:17 +02:00
parent 2d64adf476
commit 92e406bc74
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

@ -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,