Measure by pixel/second
This commit is contained in:
parent
2d64adf476
commit
92e406bc74
@ -44,8 +44,8 @@ const char *info_format =
|
|||||||
"x: %f\n"
|
"x: %f\n"
|
||||||
"y: %f\n"
|
"y: %f\n"
|
||||||
"angle: %f (%f degrees)\n"
|
"angle: %f (%f degrees)\n"
|
||||||
"velX: %f\n"
|
"velX: %f px/sec\n"
|
||||||
"velY: %f";
|
"velY: %f px/sec";
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
char title[32];
|
char title[32];
|
||||||
@ -128,7 +128,7 @@ int main() {
|
|||||||
ship.x, ship.y,
|
ship.x, ship.y,
|
||||||
ship.direction,
|
ship.direction,
|
||||||
RAD_TO_DEG(ship.direction),
|
RAD_TO_DEG(ship.direction),
|
||||||
ship.velX, ship.velY);
|
ship.velX * FPS, ship.velY * FPS);
|
||||||
al_draw_multiline_text(font,
|
al_draw_multiline_text(font,
|
||||||
al_map_rgb(0xFF, 0xFF, 0xFF),
|
al_map_rgb(0xFF, 0xFF, 0xFF),
|
||||||
5, 5, WINDOW_WIDTH, 10.0f,
|
5, 5, WINDOW_WIDTH, 10.0f,
|
||||||
|
Loading…
Reference in New Issue
Block a user