Git Product home page Git Product logo

rps-like-multiplayer-game's Introduction

Firebase Game

This game is a two player multiplayer game. It is meant to simulate a kind of sword-fighting and magic spell using experience. You can think of it as a complex game of Rock Paper Scissors. However, instead of each player sending out one move at the same time where the better of the two wins, players sequentially take turns attacking and defending. The player attacking will send out a barrage of 5 attacks at a time and the defending player will have to parry each attack, one at a time and will have exactly one second to react to each attack. Attacking players have 8 different options for attacks to send out. While defending players also have 8 options to defend with, only one of those options will parry the displayed attack. Attacks comprise of 4 sword slashes (using the arrow keys) and 4 magic spells (using keys Q,W,E and R).

Left Key is a top left to bottom right sword swipe ( \ )

Right Key is a top right to bottom left sword swipe ( / )

Up Key is a vertical sword slash ( | )

Down Key is a horizontal sword slash ( - )

Q Key is a magical frost blast ( * )

W Key is a magical thunder strike ( ~ )

E Key is a magical fire blast ( X )

R Key is a magical earth crack ( ^ )

Parry methods differ for sword attacks and magical attacks. To parry sword attacks, you simply need to input the opposite attack that you see on the screen. So if you see an incoming vertical slash attack ( | ) you would need to input the Down Key to block with a horizontal slash ( - ) and vice versa. If you see an incoming top right to bottom left sword swipe attack ( / ) you would need to input the Right Key to block with a top left to bottom right sword swipe ( \ ) and vice versa.

Parrying magical attacks is like playing RPS with 4 elements instead of 3. So instead of rock beats scissors beats paper beats rock, it goes: Thunder ( ~ ) parries earth ( ^ ) parries fire ( X ) parries ice ( * ) parries thunder ( ~ ). Player 1 attacks first, and the first player to land 20 attacks wins, good luck!

rps-like-multiplayer-game's People

Contributors

jjwall avatar

Watchers

 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.