Giter Site home page Giter Site logo

star-wars-rpg's Introduction

Star-Wars-RPG

This is a simple Star Wars themed RPG game with four characters. The player beings by choosing their character, then their opponent. The player and the computer's character engage in battle until one reaches 0 HP. If the player defeats the computer's character they choose another opponent character and keep battling until they deafeat all opponents or are defeated themselves.

The characters posses two more stats in addition to HP: attack and speed. The attack stat is used in the calculation of damage done by an attack; two characters may use the same attack move, but the one with the higher attack stat will do more damage. The speed stat determines whether the player or the computer goes first in the round.

So far, there are two types of moves: attack and speedmod. Attack moves do damage, while speedmods modify the speed stat. Further, speedmods come in two varieties, those that target the character using them and those that target their opponent. Self-targeting speedmods boost the speed of the user, while opponent-targeting speedmods lower the speed of the opponent. Both attacks and speedmods have a specific accuracy that controls the probablity of the move hitting. Self-targeting moves have an accuracy of 1 (or 100%).

More stats and move types may be added in the future.

star-wars-rpg's People

Contributors

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