GithubHelp home page GithubHelp logo

fighter's Introduction

The game Fighter

Wireframe

wireframe

Backlog

https://github.com/users/arkadiyshin/projects/7/

External API

https://akabab.github.io/superhero-api/

ER Diagram

erDiagram

USERS ||--|{ AVATARS : "use"
ENEMIES ||--|{ AVATARS : "use"
USERS ||--|{ LEVELS : "use"
ENEMIES ||--|{ LEVELS : "use"
TILES |{--|| TILE_TYPES : "use"

USERS{
  int id PK
  string username
  string password_hash
  int level
  int experience
  int free_points
  int health
  int strength
  int dexterity
  int intuition
  int avatar_id
}

ENEMIES{
  int id PK
  string name
  int level
  int health
  int strength
  int dexterity
  int intuition
  int avatar_id
}

AVATARS{
  int id PK
  string avatar_url
  enum alignment "good|bad"
}

LEVELS{
  int level PK
  int experience
  int free_points
}

TILE_TYPES{
  int id PK
  string title
  bool crossable
}

TILES{
  int x "PK x + y"
  int y
  int tile_type_id FK
}

API

USERS

POST /users/signup

  • body
    • username
    • password
  • response
    • 201: created

POST /users/login

  • body
    • username
    • password
  • response
    • 202: success

GET /users/:id

  • responce
    • 200:
    • username
    • evel
    • experience
    • free_points
    • health
    • strength
    • dexterity
    • intuition
    • avatar

PUT /users/:id/profile

  • body
    • avatar_id
  • responce
    • 202: success

PUT /users/:id/skills

  • body
    • free_points
    • health
    • strength
    • dexterity
    • intuition
  • responce
    • 202: success

GAME

GET /games/start

  • query
    • level_min
    • level_max
  • responce
    • 200:
    • enemy_name
    • enemy_level
    • enemy_health
    • enemy_strength
    • enemy_dexterity
    • enemy_intuition
    • enemy_avatar_url

POST /games/finish/:player_id

  • body
    • player_id
    • player_health
    • enemy_id
    • enemy_health
  • responce
    • 202:
    • experince
    • level
    • free_points

AVATARS

GET /avatars/

  • responce
    • 200:
    • id
    • avatar_url

fighter's People

Contributors

arkadiyshin avatar oleksandrsokaliuk avatar ask-13 avatar

Watchers

 avatar

Forkers

ask-13

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.