I have a gaming idea where players have an avatar/character with a screen-position that gets pushed to each client so everyone can see where each player is - think simple X and Y “chess-board” at this point.
In Meteor, how would I implement the player positions? The positions do not need to be persisted to the database. They’re just real-time ephemeral values, but they do need to be shared/sent/published to all clients.
Server variables might work and serving them via Meteor methods, but how would I design it so new “sets” of player positions could be instantiated for each new game in the app? JS doesn’t support dynamic arrays right? If they were a database collection, it seems pretty easy. But I really don’t want to pass these values through the database as they’re more “real-time movement” and not turn-based values - there’s no need and it seems like that would just slow things down. There will be no need to save/reload the positions of the players.