diff --git a/src/features/snake-game/SnakeGame.tsx b/src/features/snake-game/SnakeGame.tsx index efdd855..5dcabf5 100644 --- a/src/features/snake-game/SnakeGame.tsx +++ b/src/features/snake-game/SnakeGame.tsx @@ -70,13 +70,16 @@ export function SnakeGame({ className = '' }: SnakeGameProps) {
- +
+ + {highScore > 0 && } +
- {highScore > 0 && ( -
- -
- )} -
- -
- +
+ +
)}
-
-
+
+
diff --git a/src/features/snake-game/components/GameControls.tsx b/src/features/snake-game/components/GameControls.tsx index a3b1d0f..8c33008 100644 --- a/src/features/snake-game/components/GameControls.tsx +++ b/src/features/snake-game/components/GameControls.tsx @@ -18,32 +18,35 @@ export const GameControls = memo(function GameControls({ status, onDirection }: const disabled = status !== 'playing'; const buttonClass = - 'bg-[#0a0a0a] border border-[#314158] hover:border-[#43D9AD] disabled:hover:border-[#314158] disabled:opacity-50 transition-colors rounded-lg w-12 h-12 flex items-center justify-center'; + 'bg-[#0a0a0a] border border-[#314158] hover:border-[#43D9AD] disabled:hover:border-[#314158] disabled:opacity-50 transition-colors rounded-lg w-11 h-11 sm:w-10 sm:h-10 flex items-center justify-center'; return (
-

- // use o teclado -

-

- // setas para jogar +

+ // use teclado ou swipe

-
- -
+
{ROW_BUTTONS.map(({ direction, rotation }) => (