save file .sv2 format read/write
[fishladder.git] / fishladder_resources.h
index 9a030d1ced25f550122958bf471d8e7964172144..c06c17de94edf307c635bb00ea0134c4dc3662b8 100644 (file)
@@ -7,8 +7,9 @@ vg_tex2d tex_wood =                     { .path = "textures/wood.qoi" };
 vg_tex2d tex_background =      { .path = "textures/background.qoi" };
 vg_tex2d tex_ball_noise =  { .path = "textures/bnoise.qoi" };
 vg_tex2d tex_monofur   =  { .path = "textures/ascii.qoi", .flags = VG_TEXTURE_NO_MIP };
+vg_tex2d tex_unkown            =  { .path = "textures/unkown.qoi" };
 
-vg_tex2d *texture_list[] = { &tex_tile_detail, &tex_tile_data, &tex_wood, &tex_background, &tex_ball_noise, &tex_monofur };
+vg_tex2d *texture_list[] = { &tex_tile_detail, &tex_tile_data, &tex_wood, &tex_background, &tex_ball_noise, &tex_monofur, &tex_unkown };
 
 // AUDIO
 // ===========================================================================================================
@@ -254,7 +255,7 @@ SHADER_DEFINE( shader_tile_main,
        ""
        "void main()"
        "{"
-               "vec3 shadowing_colour = vec3( 0.93, 0.88536, 0.8184 );"
+               "vec3 shadowing_colour = vec3( 0.93, 0.88536, 0.8184 ) * 0.97;"
                "vec4 glyph = texture( uTexGlyphs, aTexCoords.xy );"
                "vec4 wood = texture( uTexWood, aTexCoords.zw );"
                "vec4 wood_secondary = texture( uTexWood, aTexCoords.zw + 0.25 );"
@@ -312,7 +313,7 @@ SHADER_DEFINE( shader_background,
                
                "ao_accum -= data_this_tile.r;"
                
-               "vec3 colour_main = vec3( 0.369768, 0.3654, 0.42 );"
+               "vec3 colour_main = mix( vec3( 0.369768, 0.3654, 0.42 ),vec3( 0.275, 0.388, 0.553 ), data_this_tile.g );"
                
                "vec2 square_coords = fract( aTexCoords * 64.0 );"
                "vec2 grid_coords = abs( square_coords - 0.5 );"
@@ -571,6 +572,8 @@ struct cmp_level
        int linked_unlocks;     // When unlocked, unlock this many levels additionally
        
        int serial_id;
+       
+       SteamLeaderboard_t steam_leaderboard;
 };
 
 struct cmp_level cmp_levels_tutorials[] = 
@@ -586,7 +589,8 @@ struct cmp_level cmp_levels_tutorials[] =
        {
                .title = "PRINCIPLE 2",
                .map_name = "cmp_t02",
-               .description = "Utilize the twisty turny(TM) piece",
+               .description = "Utilize the twisty turny(TM) piece to split\n"
+                                                       "the marble stream into two",
                
                .serial_id = 1,
                .unlocks = 1
@@ -602,7 +606,8 @@ struct cmp_level cmp_levels_tutorials[] =
        {
                .title = "PRINCIPLE 4",
                .map_name = "cmp_t04",
-               .description = "Some stages require multiple runs to succeed in order to pass",
+               .description = "Some stages require multiple runs to succeed\n" 
+                                                       "in order to pass",
                
                .serial_id = 12,
                .unlocks = 3
@@ -622,7 +627,7 @@ struct cmp_level cmp_levels_basic[] =
        {
                .title = "SUBDIVISION 2",
                .map_name = "cmp_b02",
-               .description = "Simple maths. Futher.",
+               .description = "Simple maths, except more.",
 
                .serial_id = 4,
                .unlocks = 1
@@ -803,6 +808,8 @@ struct cmp_level cmp_levels_grad[] =
        }
 };
 
+#define NUM_CAMPAIGN_LEVELS (vg_list_size( cmp_levels_tutorials ) + vg_list_size( cmp_levels_basic ) + vg_list_size( cmp_levels_grad ))
+
 struct
 {
        int total_unlocked;
@@ -811,3 +818,24 @@ career_local =
 {
        .total_unlocked = 1
 };
+
+struct serializable_set 
+{
+       struct cmp_level *pack;
+       int count;
+} 
+career_serializable[] =
+{
+       {
+               .pack = cmp_levels_tutorials,
+               .count = vg_list_size( cmp_levels_tutorials )
+       },
+       {
+               .pack = cmp_levels_basic,
+               .count = vg_list_size( cmp_levels_basic )
+       },
+       {
+               .pack = cmp_levels_grad,
+               .count = vg_list_size( cmp_levels_grad )
+       }
+};