save file .sv2 format read/write
[fishladder.git] / fishladder_resources.h
index fca9152da0e1fc9b032a856b8bfbaecaecd634c3..c06c17de94edf307c635bb00ea0134c4dc3662b8 100644 (file)
@@ -255,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 );"
@@ -313,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 );"
@@ -589,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
@@ -605,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
@@ -625,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
@@ -806,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;
@@ -814,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 )
+       }
+};