An addictive endless cooking game Progressive Web App (PWA) optimized for mobile devices. Prepare delicious dishes, serve customers, and climb the leaderboard in this fast-paced culinary challenge!
- 🎮 Endless Gameplay: Continuous cooking action with increasing difficulty
- 📱 Mobile-First Design: Optimized touch controls and responsive layout
- 🔄 Offline Support: Play anywhere with PWA offline capabilities
- 🏆 Leaderboard: Compete with global players
- 🎯 Multiple Recipes: Unlock new dishes as you progress
- ⚡ Performance Monitoring: Built-in performance tracking for smooth gameplay
- 🎨 Modern UI: Beautiful animations and intuitive interface
- 💾 Local Storage: Save progress and high scores
Play the game online: https://devjfac1.github.io/cooking-game-pwa/
- Frontend: React 18 with Hooks
- State Management: Redux Toolkit
- Styling: CSS Modules with custom properties
- Animations: Framer Motion
- PWA Features: Service Worker (Workbox)
- Build Tool: Create React App
- Deployment: GitHub Pages
- Node.js (v16 or higher)
- npm or yarn
- Modern web browser with PWA support
-
Clone the repository
git clone https://github.com/devjfac1/cooking-game-pwa.git cd cooking-game-pwa -
Install dependencies
npm install
-
Start development server
npm start
-
Open your browser Navigate to
http://localhost:3000
# Start development server
npm start
# Build for production
npm run build
# Serve production build locally
npm run pwa-install- Touch/Mouse: Drag ingredients to cooking stations
- Tap: Serve completed dishes to customers
- Swipe: Navigate through recipes and menus
- Open the app in a supported browser (Chrome, Edge, Safari)
- Click "Add to Home Screen" or "Install App"
- Launch from your home screen for full-screen experience
# Deploy to GitHub Pages
npm run deploy- Build the project:
npm run build - Copy
build/*to your hosting platform - Ensure all asset paths are relative
- Set
homepageinpackage.jsonto"./"for relative paths - Configure your hosting platform for SPA routing (serve
index.htmlfor all routes)
cooking-game-pwa/
├── public/ # Static assets
│ ├── index.html # Main HTML template
│ ├── manifest.json # PWA manifest
│ └── sw.js # Service worker
├── src/
│ ├── components/ # React components
│ │ ├── common/ # Shared components
│ │ └── game/ # Game-specific components
│ ├── redux/ # State management
│ │ ├── store.js # Redux store configuration
│ │ └── reducers/ # State reducers
│ ├── styles/ # Global styles
│ ├── App.js # Main app component
│ └── index.js # App entry point
├── docs/ # Documentation
└── package.json # Project configuration
- Modify CSS custom properties in
src/styles/index.css - Update color scheme and animations in component styles
- Customize PWA icons in
public/directory
- Adjust difficulty curves in Redux reducers
- Modify recipes and ingredients in game components
- Update scoring system in
ScoreBoard.js
- Edit
public/manifest.jsonfor app metadata - Modify service worker in
public/sw.jsfor caching strategies - Update install prompts in
src/index.js
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open a Pull Request
- Follow React best practices and hooks patterns
- Use Redux Toolkit for state management
- Maintain mobile-first responsive design
- Test PWA features across devices
- Ensure accessibility compliance
- Lighthouse Score: 95+ (Performance, Accessibility, Best Practices, SEO)
- Bundle Size: ~100KB gzipped
- First Paint: <1.5s
- Time to Interactive: <3s
404 on GitHub Pages
- Ensure Pages is configured for
masterbranch/docsfolder - Wait 2-5 minutes after deployment for rebuild
- Clear browser cache
PWA Not Installing
- Check browser compatibility (Chrome 70+, Safari 12.2+)
- Ensure HTTPS connection
- Verify manifest.json is accessible
Performance Issues
- Check browser console for performance warnings
- Ensure images are optimized
- Verify service worker is caching correctly
This project is licensed under the MIT License - see the LICENSE file for details.
- Icons and assets from various free resources
- Inspired by classic cooking games
- Built with modern web technologies
- Create an issue for bugs or feature requests
- Check documentation in
docs/folder - Join discussions in GitHub Discussions
Enjoy cooking! 🍽️ Made with ❤️ using React and modern web technologies.