https://gonczarm.github.io/Legend-of-Link/
This was the first project I was able to build using only JavaScript. I grew up playing many iterations of Legend of Zelda and wanted to emulate it. This game lets you control and move Link around the map. You share the map with many ghosts that will attack when you cross their path. You can, however, try and defeat the enemies by swinging your sword at them.
This application us built strictly using JavaScript, HTML, and CSS. The libraries I used to help make it possible were jQuery and Canvas
- User spawns in middle of map
- User can move, with specific keyboard keys WASD, around the designated area of the map
- Enemies spawn in specific locations and move in a square around map
- If User collides with an enemy, user dies and game ends
- User attacks enemies with sword by hitting spacebar
- an attack extends sword in direction user moves
- if enemy is in the sword, enemy is destroyed
- If user destroyes all enemies on screen user wins
- sound for music, and different animation
- User has a health of 3 hearts
- Above the screen a display is shown of users hearts
- Each collision with enemy takes away a heart from the user
- if user loses all hearts game ends
- if user defeats all enemies a boss appears
- boss follows user around trying to collide with user to deal damage
- User can move to multiple sections of the map
- User starts with no sword, must acquire sword to attack
- after killing enemy, enemy will drop rupee
- add rupee count to display
- user can buy bombs with rupees
- add bomb count to display
- bombs can be placed by user and deal damage to any enemy in radius
- bomb also exposes secret cave where boss is