commit c4b41c51451943de10a946b941e51bf77a9f6e33
parent 6f10e986be08f0ced46a7d92c457e93f54c05b5d
Author: Michael Savage <mikejsavage@gmail.com>
Date: Sun, 19 Nov 2017 12:28:25 +0200
Show velocity at the top
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clipmap.cc b/clipmap.cc
@@ -892,7 +892,7 @@ GAME_FRAME( game_frame ) {
const str< 128 > status( "Frame time: {.1}ms FPS: {.1} {}", dt * 1000.0f, 1.0f / dt,
connected ? "connected!" : "connecting" );
draw_text( status.c_str(), 2, 2, 16.0f );
- draw_text( str< 128 >( "pos = {.1}", game->pos ).c_str(), 2, 20, 16 );
+ draw_text( str< 128 >( "pos = {.1} vel = {.1}", game->pos, game->velocity ).c_str(), 2, 20, 16 );
draw_text( str< 128 >( "drawcalls = {}, tris = {}", renderer_num_draw_calls(), renderer_num_vertices() / 3 ).c_str(), 2, 38, 16 );
}