A retro-style endless runner game where you control a salad bowl, catching healthy ingredients while avoiding junk food.
- No build process required - pure HTML/JS using Phaser 3.60.0
- Open
index.htmlin a web browser to run the game - Font requirements: "Press Start 2P" (loaded via Google Fonts)
index.html- Entry point and font loadingconfig.js- Game configuration and constantsmainScene.js- Main game scene with core gameplay logiccloudBackground.js- Cloud background implementationbowl.png- Player spritecloud.png- Cloud sprite
- Endless runner mechanics
- Score system (+20 for catching veggies, +5 for avoiding junk food)
- Progressive difficulty (speed increases over time)
- Responsive design (scales to fit screen)
- Retro pixel art style
- Cloud background parallax effect
-
Code Organization
- Split game logic into more modular components
- Create separate classes for player, obstacles, and UI
- Implement proper asset preloading system
-
Gameplay Improvements
- Add power-ups or special items
- Implement combo system for catching multiple veggies
- Add different types of jumps (double jump, etc.)
- Create difficulty levels
-
Visual Improvements
- Add particle effects for collecting items
- Improve game over animation
- Add background parallax layers (buildings, etc.)
- Create proper sprite animations
-
Audio
- Add background music
- Add sound effects for jumping, collecting, game over
- Implement audio controls (mute, volume)
-
Technical Debt
- Add proper TypeScript support
- Implement proper asset management
- Add testing framework
- Improve error handling
- Add proper build process
-
Features
- Add high score system
- Implement save/load game state
- Add achievements
- Create tutorial/onboarding
-
Game Configuration
- Adjust game settings in
config.js - Speed settings:
SPEED_CONFIG - Item types:
DANGEROUS_SYMBOLSandFLOATING_VEGGIES - Player config:
SPRITE_CONFIG
- Adjust game settings in
-
Adding New Features
- Main game logic is in
mainScene.js - Background elements can follow pattern in
cloudBackground.js - Add new assets to root directory and preload in
mainScene.js
- Main game logic is in
-
Testing
- Test on different screen sizes
- Check performance with Chrome DevTools
- Verify mobile touch controls work