mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-06 07:15:41 -06:00
The render dirty flag was being reset instead of accumulated, causing the game to become stuck and unplayable in web builds. Changed from assignment to bitwise OR to preserve all dirty state updates. Also adds game layout component and updates Justfile to build frontend.
10 lines
272 B
TypeScript
10 lines
272 B
TypeScript
import "../../layouts/tailwind.css";
|
|
|
|
export default function GameLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<div className="bg-black text-yellow-400 min-h-screen flex flex-col">
|
|
<main className="flex-1">{children}</main>
|
|
</div>
|
|
);
|
|
}
|