Devlog #1 - Working with websockets in my game

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

H2
H3
H4
3 columns
2 columns
1 column
7 Comments
Ecency