Devlog #1 - Working with websockets in my game

in GEMS4 years ago (edited)

Capture.PNG
Graphic resources - https://opengameart.org/

Introduccion


Hello dear hive enthusiast community I want to share with you how excited I am to make a game like this. I am spending few hours a day working on this project and want to keep a log of the development and document the process and stages of this project. By the way I still haven't found a name for the game 😅, but I still think what should it be called.

Grabbing the bull by the horns


As I mentioned in my previous post, the most critical part is the multi-player matter or real-time communication of the game, So I decided to start there. I've never done anything real-time app related before, so I started at the beginning reading about the subject and more specifically about websockets, I don't want to talk so much about technicalities, but the main reason to use websockets is beacuse a multiplayer game needs constant communication between the server and the client and the websockets are perfects for that.

So I understood the most basic rules of how the communication between client and server works, that is, what is the information that must be sent through the web socket so that the game follows its flow correctly, which allowed me to do some tests with the library socket.io for javascript and add it to my game.

game.gif

In the previous image you can see how I can add two players to the same match using a real-time communication, of course it is not fully functional, but I am very happy because the communication was successful, but now it will need to be polished, there is a lot to do but the key is to start breaking everything into small tasks and also to do the most difficult things first.

Tools used for development


Some tools used for the development of the game, as soon as I have a playable demo I will share it with you, of course if you have any questions or suggestions leave it in the comments.

Game Engine

  • Phaser 3

Frontend

  • Angular Framework
  • Tailwind CSS

Backend

  • Node Js

Database

  • Mongo db

Code Editor

  • VS Code

Conclusion


This will not be easy I know, but I have always said it; the only sure way to fail is if you don't try. I would like to know what you think of the project, you can leave it in the comments.

Thanks for stopping by.

I appreciate the constant support from users 🙏


@ritch
@gustavmahler
@alebrijes

Resources


https://www.phaser.io/phaser3
https://www.consultorjava.com/wp/cuando-usar-websockets/
https://www.oscarblancarteblog.com/2017/02/20/introduccion-a-lo-websocket/
https://socket.io/
https://nodejs.org/en/
https://angular.io/
https://tailwindcss.com/
https://www.mongodb.com/
https://opengameart.org/ - Graphic resources

263-2635299_art-art-deco-divider-png-clipart.png

intro sz games.gif

Sort:  

Congratulations @shimozurdogames! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :

You distributed more than 200 upvotes. Your next target is to reach 300 upvotes.

You can view your badges on your board And compare to others on the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @hivebuzz:

Hive Whale - Make it spray and get your badge!
Support the HiveBuzz project. Vote for our proposal!

Gracias por la mención bro, con el talento que tienes estoy seguro que el juego será un éxito en la plataforma Hive. 🤗

Saludos

Gracias carnal, se necesitará gente con tus abilidades para este proyecto, saludos!

éxito en el desarrollo del juego, ¿piensas lanzarlo para hive y otras blockachins?

Saludos bro!!

Hey que onda Bro, si es es mi objetivo a corto plazo con hive, aunque dependiendo de como sea aceptado veré como moverlo, gracias por tu comentario, saludos!!

Otro juego para dejarme sin cerebro 😂😂😂😂 esperare el reto jejeje

Que onda bro, nada de eso jaja busco que sea divertido de jugar, un reto nada sencillo como ya sabes 😅 encontrar el equilibrio necesario es una ciencia, saludos!