Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haadiyeah/woodlandwarriors
A 2-player fighting game developed in JavaScript.
https://github.com/haadiyeah/woodlandwarriors
game-development javascript javascript-game vanilla-javascript vanilla-js
Last synced: about 5 hours ago
JSON representation
A 2-player fighting game developed in JavaScript.
- Host: GitHub
- URL: https://github.com/haadiyeah/woodlandwarriors
- Owner: haadiyeah
- Created: 2023-07-27T21:02:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-08T09:15:43.000Z (2 months ago)
- Last Synced: 2024-09-08T10:49:15.192Z (2 months ago)
- Topics: game-development, javascript, javascript-game, vanilla-javascript, vanilla-js
- Language: JavaScript
- Homepage: https://bespoke-praline-d53f53.netlify.app/
- Size: 3.46 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ABOUT THE GAME
This is a basic fighting game I developed in vanilla JavaScript, using no libraries, just HTML canvas.
Player 1: Can only attack towards right. Use a,w,d for movement and Shift to attack.
Player 2: Can only attack towards left. Use up,left,right arrow keys for movement and Space to attack.
Health potion bottles spawn randomly, jump around to grab them before your opponent does, or before they disappear!
Whoever stays alive wins, or if 60 seconds elapse, whoever has more health at the end of timer wins.
__Note__:
Many important controls, such as gravity, speed, max health, attack power, etc, can be controlled using the consts
which are defined at the beginning of script.js.I made this game just to practice and learn JavaScript! Contributions are very welcome!
# CREDITS
### Audio:
* Background audio: Lost Woods Lofi Remix by Mikel (GameChops)
* Get Item, Game Over (death), and Get Hit sounds: The Legend Of Zelda (Nintedo)
* Sword slash and arrow fire sounds: Zedge
### Sprites:
* Background forest sprite: edermunizz via itch.io
* Player sprites: LuizMelo via itch.io
* Health potion bottle sprite: LornENT via itch.io
### Animation:
* I leaned quite a lot on ChrisCourses' YouTube for animating the sprites, health bar feature, and more.