Skip to content

Commit 98c0ea5

Browse files
committed
Pauline announces when prize is won
1 parent 9354644 commit 98c0ea5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: launch.py

+9
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,7 @@ def launch_rom(info):
597597
elif "-record" in launch_command:
598598
flash_message("R E C O R D I N G", x=40, y=120) # Gameplay recording (i.e. Wolfmame)
599599

600+
clear_awarded_coin_status(_g.coins)
600601
reset_all_inputs()
601602
if os.path.exists(launch_directory):
602603
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
644645
_g.coins.append((x, y, rotate, movement, use_ladders, coin_type, awarded))
645646

646647

648+
def clear_awarded_coin_status(coins):
649+
_g.coins = []
650+
for coin in coins:
651+
_g.coins.append(coin[:6] + (False,))
652+
653+
647654
def show_timeup_animation(sprite_number, loss=0):
648655
# Show coins during the out of time animation
649656
display_icons(with_background=True)
@@ -744,6 +751,8 @@ def animate_rolling_coins(out_of_time=False):
744751
for i, coin in enumerate(_g.coins):
745752
co_x, co_y, co_rot, co_dir, co_ladder, co_type, co_awarded = coin
746753
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)
747756
_g.awarded = True
748757
_g.screen.blit(get_image(f"artwork/sprite/coin{str(co_type)}{str(int(co_rot % 4))}.png"), (int(co_x), int(co_y)))
749758

0 commit comments

Comments
 (0)