From 015dcb72c1198663538e2975354666569b0a0915 Mon Sep 17 00:00:00 2001
From: "gpt-engineer-app[bot]"
<159125892+gpt-engineer-app[bot]@users.noreply.github.com>
Date: Wed, 7 Jan 2026 08:46:53 +0000
Subject: [PATCH] Changes
---
src/pages/Breakout.tsx | 50 +++++++++++++++---
src/pages/Games.tsx | 57 +++++++++++++--------
src/pages/Pacman.tsx | 112 ++++++++++++++++++++++++++++-------------
src/pages/Snake.tsx | 103 +++++++++++++++++++++++--------------
src/pages/Tetris.tsx | 68 ++++++++++++++++++-------
5 files changed, 269 insertions(+), 121 deletions(-)
diff --git a/src/pages/Breakout.tsx b/src/pages/Breakout.tsx
index 2faa72a..fa18f82 100644
--- a/src/pages/Breakout.tsx
+++ b/src/pages/Breakout.tsx
@@ -267,16 +267,50 @@ const Breakout = () => {
{!isMobile && (
-
-
SCORE
{score.toLocaleString()}
-
HIGH SCORE
{highScore.toLocaleString()}
max: 4,294,967,296
-
-
-
CONTROLS
← → / A D
P: Pause
+
+ {/* Score Panel */}
+
+
Score
+
{score.toLocaleString()}
+
+
+ {/* High Score */}
+
+
High Score
+
{highScore.toLocaleString()}
+
max: 4,294,967,296
+
+
+ {/* Level & Lives */}
+
+
+
+
Lives
+
{'♥'.repeat(lives)}
+
+
+
+ {/* Controls */}
+
+
+ {/* Action Button */}
{!gameStarted || gameOver ? (
-
+
) : (
-
+
)}
)}
diff --git a/src/pages/Games.tsx b/src/pages/Games.tsx
index 956270d..3b3b052 100644
--- a/src/pages/Games.tsx
+++ b/src/pages/Games.tsx
@@ -63,25 +63,27 @@ const Games = () => {
transition={{ duration: 0.5 }}
className="flex flex-col h-full"
>
-
+ {/* Header */}
+
-
+
-
- Select a game. High scores saved locally.
+
+ Select a game to play. High scores saved locally.
-
- Leaderboard
+
+
Leaderboard
-
+ {/* Game Grid */}
+
{games.map((game, index) => (
{
animate={{ opacity: 1, y: 0 }}
transition={{ delay: index * 0.1 }}
>
-
-
-
- {game.ascii}
-
-
-
-
-
- {game.description}
-
+
+
+ {/* ASCII Preview */}
+
+
+ {/* Game Info */}
+
+
+
+
+
+ {game.description}
+
+
+
+ {/* Multiplayer Badge */}
{game.hasMultiplayer && (
-
+
2P
)}
@@ -111,11 +122,15 @@ const Games = () => {
))}
-
+ {/* Footer */}
+
{'>'} Max score: 4,294,967,296
(uint32 overflow)
+
+ Arrow keys / WASD to control
+
);
diff --git a/src/pages/Pacman.tsx b/src/pages/Pacman.tsx
index 129b557..c6c5c05 100644
--- a/src/pages/Pacman.tsx
+++ b/src/pages/Pacman.tsx
@@ -604,57 +604,97 @@ const Pacman = () => {
{!isMobile && (
-
+
+ {/* Score Panel */}
{gameMode === '2p' ? (
-
-
SCORES
-
-
P1
{score.toLocaleString()}
-
P2
{score2.toLocaleString()}
+
+
Scores
+
+
+
P1
+
{score.toLocaleString()}
+
+
+
P2
+
{score2.toLocaleString()}
+
) : (
-
SCORE
{score.toLocaleString()}
- )}
-
HIGH SCORE
{highScore.toLocaleString()}
max: 4,294,967,296
-
- {gameMode === '2p' && (
-
-
LIVES
-
+
+
Score
+
{score.toLocaleString()}
)}
- {gameMode === '1p' && (
-
- )}
-
-
CONTROLS
+
+ {/* High Score */}
+
+
High Score
+
{highScore.toLocaleString()}
+
max: 4,294,967,296
+
+
+ {/* Level & Lives */}
+
+
{gameMode === '2p' ? (
- <>
-
P1: WASD / ←→↑↓
-
P2: I J K L
-
P: Pause
- >
+
+
Lives
+
+ {lives}
+ /
+ {lives2}
+
+
) : (
- <>
-
WASD / ←→↑↓
-
P: Pause
- >
+
+
Lives
+
{'♥'.repeat(lives)}
+
)}
+
+ {/* Controls */}
+
+
Controls
+ {gameMode === '2p' ? (
+
+ ) : (
+
+
WASD / ←→↑↓
+
P: Pause
+
+ )}
+ {gameMode === '2p' &&
P: Pause
}
+
+
+ {/* Action Buttons */}
{showModeSelection ? (
-
SELECT MODE
-
-
+
Select Mode
+
+
) : !gameStarted || gameOver || gameComplete ? (
-
+
) : (
-
+
)}
)}
diff --git a/src/pages/Snake.tsx b/src/pages/Snake.tsx
index 234c556..b836980 100644
--- a/src/pages/Snake.tsx
+++ b/src/pages/Snake.tsx
@@ -546,31 +546,42 @@ const Snake = () => {
{!isMobile && gameMode === '1p' && (
-
-
-
SCORE
-
{score.toLocaleString()}
+
+ {/* Score Panel */}
+
+
Score
+
{score.toLocaleString()}
-
-
HIGH SCORE
-
{highScore.toLocaleString()}
-
max: 4,294,967,296
+
+ {/* High Score Panel */}
+
+
High Score
+
{highScore.toLocaleString()}
+
max: 4,294,967,296
-
-
LENGTH
-
{snake.length}
+
+ {/* Stats */}
+
+
Length
+
{snake.length}
-
-
CONTROLS
-
← → ↑ ↓ / WASD
-
P: Pause
+
+ {/* Controls */}
+
+
Controls
+
+
← → ↑ ↓ / WASD
+
P: Pause
+
+
+ {/* Action Button */}
{!gameStarted || gameOver || gameComplete ? (
-