new map, different light colours
authorhgn <hgodden00@gmail.com>
Sun, 23 Jan 2022 22:15:13 +0000 (22:15 +0000)
committerhgn <hgodden00@gmail.com>
Sun, 23 Jan 2022 22:15:13 +0000 (22:15 +0000)
fishladder.c
fishladder_resources.h
maps/cmp_binary.map
maps/cmp_p7.map [new file with mode: 0644]
maps/cmp_plot3x3.map
sprites_autocombine.h
textures_combine/flare_w.png [new file with mode: 0644]

index 493b70401eabe3fec2ad0d5dd8efa1decf3b78d9..22438c9c45f7fa3133a1c3c4d6102c22a336a308 100644 (file)
@@ -668,6 +668,9 @@ static void gen_level_text( struct cmp_level *pLevel )
       }
    }
 
+   // re-create level scores
+   
+
    ui_resolve( &world.st.world_text );
 }
 
@@ -3149,11 +3152,16 @@ void vg_render(void)
 
                        v2_add( center, (v2f){ -0.25f, -0.25f }, p0 );
                        v2_add( center, (v2f){  0.25f, -0.25f }, p1 );
-
-                       if( cell->state & FLAG_FLIP_FLOP )
-                               render_sprite( k_sprite_flare_y, p1 );
-                       else
-                               render_sprite( k_sprite_flare_b, p0 );
+         
+         if( cell->state & FLAG_TARGETED )
+         {
+                          if( cell->state & FLAG_FLIP_FLOP )
+                               render_sprite( k_sprite_flare_y, p1 );
+                          else
+                                  render_sprite( k_sprite_flare_b, p0 );
+         }
+         else
+            render_sprite( k_sprite_flare_w, cell->state &FLAG_FLIP_FLOP? p1: p0 );
                }
        }
 
index a3a2a87bc08ce8ba3b180035e11d866a00d92661..90303019e2c7aa2e9a286b5f9e7ce7d555ba21ce 100644 (file)
@@ -634,7 +634,15 @@ static struct cmp_level cmp_levels_tutorials[] =
 
                ._unlock = 18,
                .is_tutorial = 1
-       }
+       },
+   {
+      .serial_id = 25,
+      .title = "PRINCIPLE 7",
+      .map_name = "cmp_p7",
+      .description = "Emitters",
+      ._unlock = 26,
+      .is_tutorial = 1
+   }
 };
 
 static struct cmp_level cmp_levels_basic[] =
@@ -757,7 +765,7 @@ static struct cmp_level cmp_levels_basic[] =
                .map_name = "cmp_xor",
                .description =  "",
 
-               ._unlock = 13,
+               ._unlock = 25,
                .achievement = "GRADUATE"
        }
 };
@@ -807,7 +815,23 @@ static struct cmp_level cmp_levels_computer[] =
                .serial_id = 23,
                .title = "3 BIT BINARY",
                .map_name = "cmp_binary",
-               .description = "",
+               .description = "convert amount to binary",
+      .strings =
+      {
+         {
+            .placement = k_placement_bottom,
+            .str = 
+"\t\t\t\t\t\t\t\t\t\t\x83                   \x84\n"
+"\t\t\t\t\t\t\t\t\t\t\x83                   \x84 Binary\n"
+"\t\t\t\t\t\t\t\t\t\t\x83 4       2       1 \x84"
+         },
+         {
+            .placement = k_placement_top,
+            .str =
+"\n"
+"\t\t\t\t\t\t\t\t\t\t\t Count"
+         }
+      },
                
                ._unlock = 24
        },
@@ -841,7 +865,18 @@ static struct cmp_level cmp_levels_computer[] =
                .serial_id = 25,
                .title = "3x3 PLOT",
                .map_name = "cmp_plot3x3",
-               .description = ""
+               .description = "2 bit x/y",
+
+      .strings =
+      {
+         {
+            .placement = k_placement_top,
+            .str=
+"\t\t\t\t\t\t\t\t\x8A 2       1 \x8B           \x8A 2       1 \x8B\n"
+"\t\t\t\t\t\t\t\t\x83           \x84 X       Y \x83           \x84\n"
+"\t\t\t\t\t\t\t\t\x83           \x84           \x83           \x84"
+         }
+      }
        }
 };
 
index a4743782d1701fbc3cc30581fb6e7d30962794c4..9966653d53a8cc669e8f3b6d077ee2b5e6d6c388 100644 (file)
@@ -1,5 +1,5 @@
 #####################;
-########-#-#-########;a:a::,:a:a:a,:::a
+##########-.-.-######;a:a::,:a:a:a,:::a
 ##                 ##;
 ##                 ##;
 ##                 ##;
diff --git a/maps/cmp_p7.map b/maps/cmp_p7.map
new file mode 100644 (file)
index 0000000..ef8292e
--- /dev/null
@@ -0,0 +1,9 @@
+########;
+##-#####;db
+##    ##;
+##### ##;
+### # ##;
+### # ##;
+### # ##;
+###+#*##;a,bd
+########;
index cfb4d01f0b234fb655ea4167352de11398a6d76f..3ce83b91fa293b3344672c8f0595506ab13f6164 100644 (file)
@@ -21,5 +21,5 @@
 ##                 ##;
 ##                 ##;
 ###               ###;
-####+###+#+###+#+####;b:b:b:b:b:b,:a::::,a:::a:a:,::a::a:,a:::::
+####+###+.+###+.+####;b:b:b:b:b:b,:a::::,a:::a:a:,::a::a:,a:::::
 #####################;
index 809278815583b9d9d4cc8ed785feff5431797291..44a163a9d4bc8c81000125386578a1625adbdbbb 100644 (file)
@@ -5,6 +5,7 @@ enum sprites_auto_combine_index
        k_sprite_brk_r,
        k_sprite_brk_u,
        k_sprite_flare_b,
+       k_sprite_flare_w,
        k_sprite_flare_y,
        k_sprite_jack_1,
        k_sprite_jack_2,
@@ -19,7 +20,8 @@ static struct vg_sprite sprites_auto_combine[] =
        {{ 0.468750, 0.000000, 0.156250, 0.156250 }},
        {{ 0.625000, 0.000000, 0.125000, 0.125000 }},
        {{ 0.750000, 0.000000, 0.125000, 0.125000 }},
-       {{ 0.875000, 0.000000, 0.062500, 0.062500 }},
-       {{ 0.937500, 0.000000, 0.062500, 0.062500 }},
-       {{ 0.875000, 0.062500, 0.062500, 0.062500 }}
+       {{ 0.875000, 0.000000, 0.125000, 0.125000 }},
+       {{ 0.000000, 0.156250, 0.062500, 0.062500 }},
+       {{ 0.062500, 0.156250, 0.062500, 0.062500 }},
+       {{ 0.125000, 0.156250, 0.062500, 0.062500 }}
 };
\ No newline at end of file
diff --git a/textures_combine/flare_w.png b/textures_combine/flare_w.png
new file mode 100644 (file)
index 0000000..0cc28f1
Binary files /dev/null and b/textures_combine/flare_w.png differ