@@ -68,21 +68,21 @@ class CountdownPopup extends openfl.display.Sprite {
6868 countdown = newCountdown ;
6969 }
7070
71- // Clear and redraw graphics
72- graphics .clear ();
73- graphics .beginFill (FlxColor .BLACK );
74- graphics .drawRoundRect (0 , 0 , 420 , 130 , 16 , 16 );
75- drawTextAt (textDisplay , name , 15 , 20 );
76- drawTextAt (textDisplay , desc , 15 , 50 );
77- drawTextAt (textDisplay , ' Countdown: ' + countdown , 15 , 80 );
78- graphics .endFill ();
79-
80- // Play countdown sound
81- if (countdown > 0 ) {
82- FlxG .sound .play (Paths .sound (' countdown/tick' ));
83- } else if (countdown == 0 ) {
84- FlxG .sound .play (Paths .sound (' countdown/end' ));
85- }
71+ // Clear and redraw graphics
72+ graphics .clear ();
73+ graphics .beginFill (FlxColor .BLACK );
74+ graphics .drawRoundRect (0 , 0 , 420 , 130 , 16 , 16 );
75+ drawTextAt (textDisplay , name , 15 , 20 );
76+ drawTextAt (textDisplay , desc , 15 , 50 );
77+ drawTextAt (textDisplay , ' Countdown: ' + countdown , 15 , 80 );
78+ graphics .endFill ();
79+
80+ // Play countdown sound
81+ if (countdown > 0 ) {
82+ FlxG .sound .play (Paths .sound (' countdown/tick' ));
83+ } else if (countdown == 0 ) {
84+ FlxG .sound .play (Paths .sound (' countdown/end' ));
85+ }
8686 }
8787 private function drawTextAt (text : FlxText , str : String , textX : Float , textY : Float ) {
8888 try {
0 commit comments