Skip to content

Commit

Permalink
pong: fix issue pressing 'N' for new game a lot
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Jul 18, 2024
1 parent b337642 commit f6e345c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra/pong/pong.factor
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ M:: pong-gadget draw-gadget* ( PONG -- )
GADGET relayout-1 ;

: com-new-game ( gadget -- )
initial-state timer>> start-timer ;
initial-state timer>> restart-timer ;

: com-pause ( gadget -- )
dup game-over?>> [
Expand Down

0 comments on commit f6e345c

Please sign in to comment.