๐ณ Cooking Game PWA
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!

โจ Features
- ๐ฎ 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
๐ Live Demo
Play the game online: https://devjfac1.github.io/cooking-game-pwa/
๐ ๏ธ Tech Stack
- 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
๐ Prerequisites
- Node.js (v16 or higher)
- npm or yarn
- Modern web browser with PWA support
๐ง Installation
- Clone the repository
git clone https://github.com/devjfac1/cooking-game-pwa.git
cd cooking-game-pwa
- Install dependencies
- Start development server
- Open your browser
Navigate to
http://localhost:3000
๐ฏ Usage
Local Development
# Start development server
npm start
# Build for production
npm run build
# Serve production build locally
npm run pwa-install
Game Controls
- Touch/Mouse: Drag ingredients to cooking stations
- Tap: Serve completed dishes to customers
- Swipe: Navigate through recipes and menus
PWA Installation
- 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
๐ Deployment
GitHub Pages (Automated)
# Deploy to GitHub Pages
npm run deploy
Manual Deployment
- Build the project:
npm run build
- Copy
build/* to your hosting platform
- Ensure all asset paths are relative
Environment Setup
- Set
homepage in package.json to "./" for relative paths
- Configure your hosting platform for SPA routing (serve
index.html for all routes)
๐ Project Structure
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
๐จ Customization
Themes and Styling
- Modify CSS custom properties in
src/styles/index.css
- Update color scheme and animations in component styles
- Customize PWA icons in
public/ directory
Game Mechanics
- Adjust difficulty curves in Redux reducers
- Modify recipes and ingredients in game components
- Update scoring system in
ScoreBoard.js
PWA Configuration
- Edit
public/manifest.json for app metadata
- Modify service worker in
public/sw.js for caching strategies
- Update install prompts in
src/index.js
๐ค Contributing
- 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
Development Guidelines
- 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
๐ Troubleshooting
Common Issues
404 on GitHub Pages
- Ensure Pages is configured for
master branch /docs folder
- 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
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- Icons and assets from various free resources
- Inspired by classic cooking games
- Built with modern web technologies
๐ Support
- 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.