|
diff --git a/main.c b/main.c
|
| ... |
| 215 |
double runtime = GetTime(); |
215 |
double runtime = GetTime(); |
| 216 |
int height = GetScreenHeight(); |
216 |
int height = GetScreenHeight(); |
| 217 |
|
217 |
|
|
|
218 |
DrawRectangle(10, GetScreenHeight() - 90, 160, 80, DARKBLUE); |
| 218 |
DrawTextEx(ctx.font, TextFormat("fps: %d", fps), (Vector2){ 20, height - 80 }, 20, 0, RAYWHITE); |
219 |
DrawTextEx(ctx.font, TextFormat("fps: %d", fps), (Vector2){ 20, height - 80 }, 20, 0, RAYWHITE); |
| 219 |
DrawTextEx(ctx.font, TextFormat("run: %f", runtime), (Vector2){ 20, height - 60 }, 20, 0, RAYWHITE); |
220 |
DrawTextEx(ctx.font, TextFormat("run: %.4f", runtime), (Vector2){ 20, height - 60 }, 20, 0, RAYWHITE); |
| 220 |
DrawTextEx(ctx.font, TextFormat("dt: %f", delta), (Vector2){ 20, height - 40 }, 20, 0, RAYWHITE); |
221 |
DrawTextEx(ctx.font, TextFormat("dt: %.4f", delta), (Vector2){ 20, height - 40 }, 20, 0, RAYWHITE); |
| 221 |
|
222 |
|
| 222 |
return 0; |
223 |
return 0; |
| 223 |
} |
224 |
} |
| ... |
| 528 |
static void help(const char *argv0) { |
529 |
static void help(const char *argv0) { |
| 529 |
printf("Usage: %s [options]\n" |
530 |
printf("Usage: %s [options]\n" |
| 530 |
"\nAvailable options:\n" |
531 |
"\nAvailable options:\n" |
| 531 |
" -f,--file=file.lua run input file\n" |
532 |
" -f,--file=file.lua run input file\n" |
| 532 |
" -b,--bundle bundles this folder\n" |
533 |
" -b,--bundle bundles this folder\n" |
| 533 |
" -d,--debug prints debug information\n" |
534 |
" -d,--debug prints debug information\n" |
| 534 |
" -h,--help this help\n" |
535 |
" -h,--help this help\n" |
| ... |