GithubHelp home page GithubHelp logo

old-roll-initiative's Introduction

Roll Initiative

Displays

Users

view user information for a given account authenticated with google

Dashboard

displays the current encounter for the currect campaign with different options depending on user privelige ( admin or not )

QuickRoll

on hover name and formula, on click compute roll with library, configurable die icon ( type and color )

Models

Users

User

  • google_id
  • role

Campaigns

Campaign

  • id
  • name

CampaignEncounter

Maps an encounter to a campaign

  • id
  • campaign id
  • encounter id

CampaignUser

Maps a user to a campaign defining their role within the campaign.

  • id
  • campign id
  • user id
  • role

Encounters

Encounter

A given encounter.

  • id
  • name
  • description

EncounterParty

Includes a predefined party in an encounter.

  • id
  • party id
  • encounter id

EncounterInstance

There may be multiple encounters instantiated at one time, but there may only be one active encounter for a given campaign at one time. The idea is to allow the DM to construct a series of possible encounters.

  • id
  • encounter id

CharacterInstance

When an encounter is instantiated, a flatten list of PartyCharacters is computed for all parties involved in the encounter. For each of these party characters, a corresponding character instance is created which contains a copy of all the current values.

If NPC characters have computed (string) attribute values, they will be calculated automatically when a character instance is created.

  • id
  • encounter instance id
  • party id
  • character id
  • alias
  • character clone id

Parties

Party

  • id
  • name

PartyCharacter

There could be multiple copies of the same character in a given party with. For example, there may be a couple skeleton warriors in a party with multiple aliases used to differentiate them.

  • id
  • party id
  • character id
  • alias

Characters

NPC character attributes come as absolute or computed values. Player controlled characters exist as singleton entities. Hit points, current spell slots, notes, and other information exists as

Character

  • id
  • type ('npc','pc')
  • name,
  • height,
  • weight,
  • age,
  • size,
  • speed,
  • hit points,
  • spell slots ( tick of check boxes? ),
  • attributes,
  • experience,
  • challenge rating,
  • notes ( Markdown )

TODO

  1. Create initial migrations for each model with relationships.
  2. Exercise the basics of:
    • Logging in / out ( creating a user )
    • Campaign CRUD
  3. Character CRUD
  4. Party CRUD
  5. Encounter CRUD
  6. Roll Initiative!
    • Instantiate an encounter, order by initiative rolls

Ideas

  1. Dead players are grayed out
  2. Integrated calculator for hitpoint value ( value, add, remove )
  3. Only the creator of a campaign can administrate it ( owned by googleid )
  4. Prepopulate database with NPC / PC character definitions via Sequelize fixtures

old-roll-initiative's People

Contributors

erikdunning avatar erikzen 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.