Giter Site home page Giter Site logo

asimonia / d16-gp-gauntlet-git-over-here Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nss-day-cohort-16/d16-gp-gauntlet-git-over-here

0.0 2.0 0.0 12.57 MB

d16-gp-gauntlet-git-over-here created by GitHub Classroom

HTML 38.40% JavaScript 49.29% CSS 12.31%

d16-gp-gauntlet-git-over-here's Introduction

#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.

d16-gp-gauntlet-git-over-here's People

Contributors

asimonia avatar rtwhitfield84 avatar sales-ls21 avatar samphillips1879 avatar stevebrownlee avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.