You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 4, 2023. It is now read-only.
I want to implement a support for multiple players:
In firebase I want to have multiple games located in the root of the firebase database, and every game has several properties, for example maxPlayers, the gameId and the map as a String which allows all users to generate the same map. Furthermore each game should contain an players array, which container a player object with some properties like top, left, rotation, which all specify the tanks transformation.
The structure should look something like this:
and you should be able to select a game from tmp-game and push it down to tmp-map, in tmp-map you should loop over all players to get all players displayed on the map
The only thing which isn't working in multiple-players branch, is that it isn't firing the gameChanged observer and so it isn't pushing to firebase ...
No idea why ...
I want to implement a support for multiple players:
In firebase I want to have multiple games located in the
root
of the firebase database, and everygame
has several properties, for examplemaxPlayers
, thegameId
and themap
as a String which allows all users to generate the same map. Furthermore eachgame
should contain anplayers
array, which container aplayer
object with some properties liketop
,left
,rotation
, which all specify the tankstransformation
.The structure should look something like this:
and you should be able to select a
game
fromtmp-game
and push it down totmp-map
, intmp-map
you should loop over allplayers
to get all players displayed on the mapNOTE: already started this issue on multiple-players and multiple-players2
The text was updated successfully, but these errors were encountered: