Skip to content

gauntlet-2bc92d27-ee6e-4f11-8c85-541a30927487-atari created by Classroom for GitHub

Notifications You must be signed in to change notification settings

rousell/gauntlet-atari

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Gauntlet game

Time to use protypal inheritance to build a game.

Some enterprising, young, software developer decided to build a simple web-based RPG that lets a human player fight against an array of different enemies. Unfortunately, there wasn't enough time to finish the project because aliens took over the Earth and everyone was shipped off to the plutonium mines.

Your job is to finish the game.

To do so, you need a firm understanding of prototypal inheritance. Start by examining the files player.js, classes.js, and enemies.js to see how the prototype chains were initially set up.

The game now belongs to you, intrepid adventurer. You can change the theme completely (aliens vs. undead, or axis vs. allies), style it however you want, but you need to have multiple classes, weapons, and enemies that the player can fight against.

Once the player has chosen all options for class, weapon, etc., you need to have a battlefield view that fulfills the following criteria.

  1. Display the initial statistics for the player and the enemy.
  2. Have a button with the label "Attack".
  3. Each time the attack button is clicked, the player's chosen character and the generated enemy should attack with their weapon, and once the damage is calculated, subtract that from the opponents' health.
  4. As soon as either combatant reaches health of 0, disable the attack button and annouce the winner.

About

gauntlet-2bc92d27-ee6e-4f11-8c85-541a30927487-atari created by Classroom for GitHub

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published