@@ -597,6 +597,7 @@ def launch_rom(info):
597
597
elif "-record" in launch_command :
598
598
flash_message ("R E C O R D I N G" , x = 40 , y = 120 ) # Gameplay recording (i.e. Wolfmame)
599
599
600
+ clear_awarded_coin_status (_g .coins )
600
601
reset_all_inputs ()
601
602
if os .path .exists (launch_directory ):
602
603
os .chdir (launch_directory )
@@ -644,6 +645,12 @@ def drop_coin(x=67, y=73, rotate=2, movement=1, use_ladders=True, coin_type=1, a
644
645
_g .coins .append ((x , y , rotate , movement , use_ladders , coin_type , awarded ))
645
646
646
647
648
+ def clear_awarded_coin_status (coins ):
649
+ _g .coins = []
650
+ for coin in coins :
651
+ _g .coins .append (coin [:6 ] + (False ,))
652
+
653
+
647
654
def show_timeup_animation (sprite_number , loss = 0 ):
648
655
# Show coins during the out of time animation
649
656
display_icons (with_background = True )
@@ -744,6 +751,8 @@ def animate_rolling_coins(out_of_time=False):
744
751
for i , coin in enumerate (_g .coins ):
745
752
co_x , co_y , co_rot , co_dir , co_ladder , co_type , co_awarded = coin
746
753
if co_awarded :
754
+ write_text (("YOU WON A PRIZE !" , "COLLECT THE COINS" )[pygame .time .get_ticks () % 3000 > 1500 ], x = 108 , y = 37 ,
755
+ fg = WHITE , bg = MAGENTA , bubble = True )
747
756
_g .awarded = True
748
757
_g .screen .blit (get_image (f"artwork/sprite/coin{ str (co_type )} { str (int (co_rot % 4 ))} .png" ), (int (co_x ), int (co_y )))
749
758
0 commit comments