Git Product home page Git Product logo

unit-4-game's Introduction

unit-4-game

Star Wars RPG Game (Challenge)

Star Wars

  1. Watch the demo.

  2. Here's how the app works:

    • When the game starts, the player will choose a character by clicking on the fighter's picture. The player will fight as that character for the rest of the game.

    • The player must then defeat all of the remaining fighters. Enemies should be moved to a different area of the screen.

    • The player chooses an opponent by clicking on an enemy's picture.

    • Once the player selects an opponent, that enemy is moved to a defender area.

    • The player will now be able to click the attack button.

      • Whenever the player clicks attack, their character damages the defender. The opponent will lose HP (health points). These points are displayed at the bottom of the defender's picture.
      • The opponent character will instantly counter the attack. When that happens, the player's character will lose some of their HP. These points are shown at the bottom of the player character's picture.
  3. The player will keep hitting the attack button in an effort to defeat their opponent.

    • When the defender's life is reduced to zero or below, remove the enemy from the defender area. The player character can now choose a new opponent.
  4. The player wins the game by defeating all enemy characters. The player loses the game the game if their character's HP falls to zero or below.

Game design notes
  • Each character in the game has 3 attributes: name src life, and power.

  • Each time the player attacks, their character's power increases by its inital power.

    • For example, if the base power is 6, each attack will increase the power by 6 (12, 18, 24, 30 and so on).
  • The enemy character only has initialPower.

    • Unlike the player's life, initialPower never changes.
  • The life, and power of each character must differ.

  • No characters in the game can heal or recover life.

    • A winning player must pick their characters wisely by first fighting an enemy with low initialPower. This will allow them to gain power and to take on enemies before they lose all of their life. Healing options would mess with this dynamic.

unit-4-game's People

Contributors

gth2103 avatar

Watchers

James Cloos 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.