Neon Shift
# Build a Browser Game – Neon Shift
Act as an expert HTML5 game developer and UI/UX designer.
Create a simple, unique, addictive browser game called **Neon Shift**.
### 1. Game Concept
The player controls a glowing orb inside a futuristic neon arena. The objective is to survive as long as possible by avoiding obstacles, switching colors, and collecting energy points.
### 2. Gameplay
- Player controls a glowing orb.
- Use LEFT/RIGHT arrow keys or A/D to move.
- Press SPACE to switch between two colors: Cyan and Magenta.
- The player can pass through barriers only when the orb's color matches the barrier.
- Avoid moving obstacles and collect glowing energy crystals.
- Obstacles become faster and more challenging as the score increases.
- The game ends when the player hits an incompatible barrier or obstacle.
### 3. Game Features
- Start Game screen.
- Pause and Resume functionality.
- Game Over screen.
- Live score counter.
- Best score saved using browser local storage.
- Increasing difficulty levels.
- Randomly generated obstacle patterns.
- Sound effects with mute/unmute option.
- Restart button.
- Responsive design for desktop and mobile.
- Mobile touch controls.
### 4. Visual Design
- Dark futuristic background.
- Neon cyan, purple, and magenta colors.
- Smooth animations and glowing effects.
- Minimalist interface.
- Particle effects when collecting crystals.
- Smooth transitions between screens.
- Modern arcade-style typography.
### 5. Technical Requirements
- Use HTML5, CSS3, and vanilla JavaScript.
- Use HTML Canvas for gameplay rendering.
- No backend or database required.
- No paid APIs or external dependencies.
- Must work directly in a modern browser.
- Maintain smooth performance at 60 FPS.
- Organize code into reusable functions.
- Include comments for important game logic.
### 6. Game UI
Display:
- Current Score
- Best Score
- Current Level
- Pause Button
- Sound Toggle
### 7. Important Instructions
- Build a fully playable game, not just a UI prototype.
- All buttons and controls must work.
- Ensure collision detection is accurate.
- Prevent unfair or impossible obstacle combinations.
- Make the game challenging but enjoyable.
- Add a short tutorial before the first game.
- Ensure the game works without internet access.
### Final Deliverable
Provide a complete, working browser game with polished visuals, responsive controls, and replay functionality.