juvahubeku

Members
  • Content Count

    5
  • Joined

  • Last visited

About juvahubeku

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello. I am developing a multiplayer game. I have a problem. I want the server to create a random number from 1 to 2. And send this number to all customers. But if clients play once, the server must regenerate the number I wrote such a function. She chooses a number from 1 to 2. And then always returns this number. If you restart the server, it will return a different number. project - https://fishscape.herokuapp.com/ var map_positions = [ { map: 1}, { map: 2}, ]; var vibrana_map = { map: 0}; function locateFood(data) { var roomId = data; var tmpName = room + roomId; if (vibrana_map.map == 0) { var map_num = Math.floor(Math.random() * 2); vibrana_map = map_positions[map_num]; io.in(tmpName).emit("foodPosition", vibrana_map); } else { io.in(tmpName).emit("foodPosition", vibrana_map); } }
  2. I am looking for a developer who will make a smooth movement of characters in the game (socket io + phaser) I almost did, but I can't.
  3. Help bring username under the shipsI need to display the username under each ship (username)Project: https://drive.google.com/file/d/15W-d_Gno5VH5gq5124FrCwKlSOwsrVIZ/view?usp=sharingGame - game.jsServer - app.jsLogin(write nick) - login.js Thank you