thireven / dmtool

2 stars 1 forks source link

Support view for tracking player positions #8

Open foreza opened 6 years ago

foreza commented 6 years ago

Is your feature request related to a problem? Please describe.

We want to be able to track player, npc, and monster positions on the DM overview. This will allow the DM and players to more readily follow along with the store in lieu of a physical game board, as well as increase engagement with viewers / audience members who may have just joined and are not aware of the current game state.

During combat, it is hard to visualize (without physical game pieces / board) where the monsters are in relation to the party. During exploration, it is somewhat difficult to get a sense for how far the next objective or encounter is unless well described

Describe the solution you'd like

Design Specification

Technical Specification

Sample gamelocationobject:

player1 : {
uid : 1234 
locX :  15, 
locY : 10,
}, 

Sample 'persistent' gameboardstate object that we'll store locally for now

gameBoardState {

inCombat : false
currentlySelected: <gamelocationobject>
lastMoved: <gamelocationobject>

combatState {

playerUnitCombatLoc [
player1 : { locX :  15, locY : 10 }, 
player2 :  { locX :  15, locY : 10 }...
]
otherUnitsCombatLoc [
murloc : { locX :  15, locY : 10, size : tbd }, 
goblin :  { locX :  15, locY : 10, size: tbd}...
]
}

exploreState {

playerLoc [
player1 : { locX :  153, locY : 520 }, 
player2 :  { locX :  154, locY : 524 }...
]

unitLoc [
murloc : { locX :  15, locY : 10, size : tbd }, 
goblin :  { locX :  15, locY : 10, size: tbd}...
]

libraries:

https://github.com/flauwekeul/honeycomb#hexagon

resources:

http://archive.wizards.com/default.asp?x=dnd/rg/20040608a https://crobi.github.io/dnd5e-quickref/preview/quickref.html http://www.d20srd.org/srd/movement.htm http://dnd.wizards.com/products/tabletop/players-basic-rules

foreza commented 6 years ago

Will work more on this today

@thireven assign to me please

foreza commented 6 years ago

@thireven Do you think it's a good idea to re-use croppie for uploading the background image for the map?

foreza commented 6 years ago

As of 4d233786654297f44f44304ca4710b92770a02a3 we have basic movement (local) that is hardcoded specifically for /room/movementroom2/characters

Next step would be to persist all of these on the firestore DB and retrieve the gameBoardState / characters for rendering.

thireven commented 6 years ago

Do you think it's a good idea to re-use croppie for uploading the background image for the map?

Should be fine.

foreza commented 6 years ago

MVP:

have 3 monsters 3 players persist location on map drag and drop pointers

Wishlist

be able to calculate distance between enemy and player expose values X/Y to DM