Your enemy only has two hits until they face certain death, but so do you... Bring down your enemy!
This repository is for a 2D Fighting Game using HTML Canvas & JavaScript. It's meant to showcase the power of vanilla HTML and JavaScript, no game engine or framework needed!
This is a local co-op game meant to be played with a friend using the same keyboard. The premise is simple, make the first strike to defeat your enemy!
- Move Left:
a
- Move Right:
d
- Jump:
w
- Attack:
space
- Move Left:
ArrowLeft
- Move Right:
ArrowRight
- Jump:
ArrowUp
- Attack:
ArrowDown
- Project Setup
- Create Player and Enemy
- Move Characters with Event Listeners
- Attacks
- Health Bar Interface
- Game Timers and Game Over
- Background Sprite
- Additional Sprite with Animation
- Player 1 Sprite
- Player 2 Sprite
- Interface Design and Animation
- Pushing Live
After the base functionality of the game is complete and V1 is live, here are some additional optimizations that will be made in a future date.
- Add music
- Add sound effects
- Add restart button
- Add more characters
- Add character select screen
- Add different stages
- Add stage select screen
- Add vs. CPU player option
Interested in some other related gaming projects? Check these out...