A modern, high-octane architectural arcade shooter built with Vite, Tailwind CSS, and Canvas.
(Replace with actual screenshot)
Cosmic Escape puts you in the cockpit of a lone starfighter. Your mission is simple: survive the infinite void.
The game features three distinct modes:
- GALACTIC ODYSSEY (Story Mode): A tailored campaign across 500 sectors.
- Progression: Level up to upgrade your ship (Faster Fire Rate).
- Bosses: Battle immense bosses every 10 levels.
- Economy: Collect Coins to gain Hearts (10 Coins = +1 Life).
- SURVIVAL PROTOCOL: A high-intensity challenge.
- Objective: Survive for 30 Seconds per level.
- Weapons Disabled: Pure piloting skill required.
- No Bosses: Focus on hazard avoidance.
- CLASSIC ARCADE: The original simulation. Scaling difficulty, one life, infinite danger.
The game fully supports both Keyboard (Desktop) and Touch (Mobile/Tablet) controls.
| Action | Desktop (Keyboard) | Mobile (Touch) |
|---|---|---|
| Move | Arrow Keys | Tap & Hold (Thrust) |
| Fire | F / Z / Ctrl | Auto-Fire (While Thrusting) |
| Pause | P / Esc | Top-Left Icon |
- Core: Vanilla JavaScript (ES6+)
- Rendering: HTML5 Canvas API
- Styling: Tailwind CSS (Utility-first)
- Build Tool: Vite
- Animations: GSAP (GreenSock Animation Platform)
-
Clone the repository:
git clone https://github.com/codxbrexx/Cosmic_Escape.git cd Cosmic_Escape -
Install dependencies:
npm install
-
Run Development Server:
npm run dev
Open
http://localhost:5173(or the port shown in terminal) to play. -
Build for Production:
npm run build
- Responsive Design: Automatically scales from Mobile to Desktop (2:1 Aspect Ratio).
- Mobile Optimized:
touch-nonehandling, dynamic joystick-like control. - Visual Polish: Dynamic borders, particle explosions, and sector announcements.
- Persistent Scores: High scores are saved locally for all modes.
- Monochrome & Color: A sleek aesthetic that evolves as you play.
Built by CODXBREXX.
"Building digital universes one line of code at a time."