diff --git a/app/play/page.tsx b/app/play/page.tsx
index 87936a6..cd020a4 100644
--- a/app/play/page.tsx
+++ b/app/play/page.tsx
@@ -122,15 +122,12 @@ export default function PlayPage() {
className={cn(
"flex flex-col h-full relative",
resMap.get(map._id)
- ? "bg-green-500"
+ ? "border-green-500"
: resMap.has(map._id)
- ? "bg-red-500"
+ ? "border-red-500"
: "",
)}
>
- {resMap.get(map._id) && (
-
- )}
Night #{map.level}
diff --git a/components/Map.tsx b/components/Map.tsx
index 8d70984..bc931f3 100644
--- a/components/Map.tsx
+++ b/components/Map.tsx
@@ -8,11 +8,11 @@ export function getCellImage(cell: string) {
alt="Zombie"
className="w-full h-full"
style={{
- width: '100%',
- height: '100%',
- position: 'relative',
- top: '-20px',
- left: '4px',
+ width: "100%",
+ height: "100%",
+ position: "relative",
+ top: "-20px",
+ left: "4px",
}}
/>
);
@@ -24,9 +24,9 @@ export function getCellImage(cell: string) {
alt="Player"
className="w-full h-full"
style={{
- position: 'relative',
- top: '-20px',
- left: '4px',
+ position: "relative",
+ top: "-20px",
+ left: "4px",
}}
/>
);
@@ -43,9 +43,9 @@ export function getCellImage(cell: string) {
alt="Block"
className="w-full h-full"
style={{
- position: 'relative',
- top: '0px',
- left: '0px',
+ position: "relative",
+ top: "0px",
+ left: "0px",
}}
/>
);
@@ -55,7 +55,12 @@ export function getCellImage(cell: string) {
export function Map({ map, size = 64 }: { map: string[][]; size?: number }) {
return (
-
+
+