A two-player Minecraft-themed mini-game collection built with React and TypeScript. Players compete through three exciting challenges: a labyrinth race, portal building, and TNT field navigation.
Prompt: Erstelle ein Spiel aus unserer Zeichnung, für zwei Spieler ab 8-10 Jahre // https://aistudio.google.com/
... und ein paar zusätzliche Prompts zusammen mit dem Kind, damit es auf dem Tablet gespielt werden kann.
PS: lass die Kinder selbst auf Papier zeichnen und schreiben und erweckt dann gemeinsam ihre Fantasie zum Leben :)
- Three Unique Mini-Games: Labyrinth race, Portal building, and TNT field challenges
- Two-Player Competition: Simultaneous gameplay on keyboard or touch devices
- Responsive Design: Works on desktop and tablet devices
- Real-time Score Tracking: Keep track of each player's victories
- Pixel Art Aesthetic: Minecraft-inspired visual design
- Node.js (v16 or higher)
- npm or yarn
-
Clone the repository:
git clone https://github.com/voku/Minecraft_Game.git cd Minecraft_Game -
Install dependencies:
npm install
-
Run the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:3000
To build the application for production:
npm run buildThe built files will be in the dist directory.
- Labyrinth: Navigate through the maze to reach the exit first
- Portal: Build your portal by collecting the required blocks
- TNT Field: Carefully navigate through the explosive field
- Player 1: Touch buttons on the left side or keyboard arrows (W/A/S/D)
- Player 2: Touch buttons on the right side or keyboard arrows (Arrow Keys)
Contributions are welcome! Visit the project repository to report issues or submit pull requests.
To understand the codebase structure, here are the key files:
App.tsx: Main application component with game flow logicindex.html: Entry point HTML file with game stylingindex.tsx: React application bootstraptypes.ts: TypeScript type definitions for game entitiescomponents/Stage1Labyrinth.tsx: Labyrinth mini-game implementationcomponents/Stage2Portal.tsx: Portal building mini-gamecomponents/Stage3TNT.tsx: TNT field mini-gamevite.config.ts: Vite build configurationpackage.json: Project dependencies and scripts
This project is open source and available under the MIT License.
Visit the live demo at: https://voku.github.io/Minecraft_Game/