mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-07 15:47:45 +02:00
* Show died status
This commit is contained in:
parent
69c7889c7f
commit
89e2527a02
@ -1147,6 +1147,7 @@ procedure TPacman.StartTimer;
|
||||
|
||||
begin
|
||||
FDying:=False;
|
||||
UpdateStatus('Playing');
|
||||
SpriteTimer:=window.setInterval(@DoSpriteTimer,TimerInterval);
|
||||
end;
|
||||
|
||||
@ -1228,6 +1229,7 @@ begin
|
||||
dec(LivesLeft);
|
||||
UpdateScore();
|
||||
PacmanDir:='-';
|
||||
UpdateStatus('You died');
|
||||
ShowText('YOU DIE !!!',@CheckGameOver);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user