From: hgn Date: Wed, 12 Oct 2022 21:40:07 +0000 (+0100) Subject: scoreboards X-Git-Url: https://harrygodden.com/git/?a=commitdiff_plain;ds=sidebyside;h=5e22cdfe9f6f83e807ce6456ab538d02104cd01d;p=carveJwlIkooP6JGAAIwe30JlM.git scoreboards --- diff --git a/highscores.h b/highscores.h index d99710e..28662bf 100644 --- a/highscores.h +++ b/highscores.h @@ -568,7 +568,7 @@ static void highscores_board_generate( char *buf, u32 id, u32 count ) highscore_strc ( buf+w*0, inf->name, w,w ); highscore_clear( buf+w*1, '-', w ); - highscore_strl ( buf+w*2, " #| Player | Time | Pts", 27 ); + highscore_strl ( buf+w*2, " #| Player | Time ", 27 ); for( int i=0; iaainfo_playerinfo_playerid, info_ptr ); - highscore_strl( line+3, inf->nickname, 10 ); + highscore_strl( line+3, inf->nickname, 16 ); } u16 centiseconds = record->time, @@ -609,14 +609,16 @@ static void highscores_board_generate( char *buf, u32 id, u32 count ) if( minutes > 9 ) minutes = 9; /* Timer */ - highscore_intr( line+14, minutes, 1, '0' ); - line[15] = ':'; - highscore_intr( line+16, seconds, 2, '0' ); - line[18] = '.'; - highscore_intr( line+19, centiseconds, 2, '0' ); + highscore_intr( line+20, minutes, 1, '0' ); + line[21] = ':'; + highscore_intr( line+22, seconds, 2, '0' ); + line[24] = '.'; + highscore_intr( line+25, centiseconds, 2, '0' ); +#if 0 /* Score */ highscore_intl( line+22, record->points, 5 ); +#endif it = aatree_next( &sys->aainfo_time, it ); } } diff --git a/network_msg.h b/network_msg.h index 221e6ef..1e3e475 100644 --- a/network_msg.h +++ b/network_msg.h @@ -55,7 +55,7 @@ typedef struct netmsg_set_nickname netmsg_set_nickname; struct netmsg_set_nickname { u32 inetmsg_id; - char nickname[10]; + char nickname[16]; }; enum{ k_inetmsg_set_nickname = 4 }; diff --git a/shaders/scoretext.h b/shaders/scoretext.h index 99b702c..4f1dc8f 100644 --- a/shaders/scoretext.h +++ b/shaders/scoretext.h @@ -36,7 +36,7 @@ static struct vg_shader _shader_scoretext = { " float s = -sin(w*0.2);\n" " float r = 0.2;\n" "\n" -" float w1 = clamp( w*4.0 - a_co.y*10.0, -1.0, 1.0 ) *(3.14159265*0.5);\n" +" float w1 = clamp( w*4.0 - a_co.y*10.0, -1.0, 1.0 ) * (3.14159265*2.5);\n" " float c1 = cos(w1);\n" " float s1 = sin(w1);\n" "\n" diff --git a/shaders/scoretext.vs b/shaders/scoretext.vs index f8a940c..bcd5b95 100644 --- a/shaders/scoretext.vs +++ b/shaders/scoretext.vs @@ -18,7 +18,7 @@ void main() float s = -sin(w*0.2); float r = 0.2; - float w1 = clamp( w*4.0 - a_co.y*10.0, -1.0, 1.0 ) *(3.14159265*0.5); + float w1 = clamp( w*4.0 - a_co.y*10.0, -1.0, 1.0 ) * (3.14159265*0.5); float c1 = cos(w1); float s1 = sin(w1); diff --git a/upload_to_steam.sh b/upload_to_steam.sh old mode 100644 new mode 100755 index 9db81a2..9e7d7f1 --- a/upload_to_steam.sh +++ b/upload_to_steam.sh @@ -1 +1 @@ -steamworks_sdk/tools/ContentBuilder/builder_linux/steamcmd.sh +login $1 $2 +run_app_build steam_build_script.vdf +steamworks_sdk/tools/ContentBuilder/builder_linux/steamcmd.sh +login $1 $2 +run_app_build ~/Documents/carve/steam_build_script.vdf diff --git a/world_sfd.h b/world_sfd.h index 71e8a94..29244e8 100644 --- a/world_sfd.h +++ b/world_sfd.h @@ -180,7 +180,7 @@ static void world_sfd_init(void) m4x3f identity; m4x3_identity( identity ); - for( int i=0;i<8;i++ ) + for( int i=4;i<6;i++ ) { u32 vert_start = sfd->mesh.vertex_count; scene_add_submesh( &sfd->mesh, mboard, card, identity );