diff --git a/example/src/App.tsx b/example/src/App.tsx index cf4a8f6..aec9ebe 100755 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -27,8 +27,13 @@ function App() { Score: {score}
- Keys: {keyLog.length} + Keystrokes: {scoreManager.totalKeystrokes}
+ {scoreManager.finalScore !== null && ( +
+ Final Score: {scoreManager.finalScore} +
+ )}
@@ -37,6 +42,7 @@ function App() { {gameStatus === "waiting" &&

Press space to start

} {gameStatus === "started" &&

Use hjkl to change direction • Press q to quit

} {gameStatus === "game-over" &&

Game Over! Press space to restart

} + {gameStatus === "game-won" &&

You Won! Press space to restart

}
);