Initial commit
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
import { useGameState } from './hooks/useGameState';
|
||||
import StartScreen from './components/StartScreen';
|
||||
import GameScreen from './components/GameScreen';
|
||||
|
||||
export default function App() {
|
||||
const game = useGameState();
|
||||
|
||||
if (game.phase === 'menu') {
|
||||
return <StartScreen onStart={(mode) => game.startGame(1, mode)} />;
|
||||
}
|
||||
|
||||
return <GameScreen game={game} />;
|
||||
}
|
||||
Reference in New Issue
Block a user