Skip to content

agworkgit/phantom-rush

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phantom Rush

Phantom Rush is a fast-paced top-down 2D shooter built entirely in vanilla JavaScript.
Your mission: survive as long as possible while collecting points and dodging relentless enemies.

🎮 Play the Live Demo →

Gameplay Overview

Move, aim, and shoot your way through waves of enemies —
every second alive means more points, more chaos, and higher scores.

Objective:
Stay alive. Rack up points. Dominate the leaderboard (if you can).

Controls

Action Key / Mouse
Move Up W
Move Down S
Move Left A
Move Right D
Aim Move the Mouse
Shoot Left Mouse Button
Pause / Resume Spacebar

Built With

  • JavaScript (ES6) – core logic and gameplay loop
  • HTML5 Canvas API – rendering, collisions, and effects
  • CSS3 – visual polish for UI elements like health bars and overlays

Core Features

  • Real-time combat system
  • Bullet–enemy collision detection
  • Dynamic health bar tracking player health
  • Pause / resume game state
  • Smooth game loop via requestAnimationFrame()

Future Enhancements

  • Enemy AI patterns (flanking, dodging, aggressive modes)
  • Power-ups and special abilities
  • Scoring system with local leaderboard
  • Sound effects and background music
  • Touch / mobile support

Author

Alex Grigore BSc Computer Science Student | Front-End Developer

MIT License

Copyright (c) 2025 Alex Grigore

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Phantom Rush is a fast-paced top-down 2D shooter built entirely in vanilla JavaScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published