Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

132
Visualizações
Connecting players' local games together

I'm looking for a special answer that i can't find anywhere and i need your help/ideas:

The situaton: I'm making a mobile web-game that is played on mobile phones. Every player has its own version and profile with levels etc. It is a roulette game so i want if a player gets a card it gets xp and the other players need to get xp as well. But as of now there is no way of syncing game data from one player to other players.

All roulette cards are stored in one big array and if a card is turned the script chooses a random one from the stack.

I was self thinking of some kind of code that everyone enters at the start of the game, and it contains the numbers of idk 20 cards in the array and so the game of all players will show the same card if they click next. But i dont know how to decode this and it is a bit irritating to enter such big code everytime you want to play.

P.s. i do not want to use a third party library or nodejs or something like that. Just javascript. The "app/game" is hosted on a website that every player loads on their own phone. And game save data is stored in localstorage.

Can you please help? I dont have code to show. That is not relevant here.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I fixed it. I used QR Codes instead. One qr code generator for the host and a qr code reader for the other players.

Search google for qr code reader js and you'll find it

thnx!

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda