Separate game logic on the server in Node.js​

How to make code easier to work with? DON’T WRITE IT IN ONE FILE!

And that is exactly what we are going to do here. It will be the last part of the Server-Side WebSocket series.

If you missed previous ones, you can go back to preparing the local environment or writing base for our server.

In this post, we will create a new script responsible for the game part of the server.

Continue reading “Separate game logic on the server in Node.js​”

Basics of Scriptable Objects in Unity

Today we will tackle something easier as the subject of Scriptable Objects in Unity is fairly straightforward. What is so cool about them is that you can throw so much different thing in them!

What Scriptable Object is?

According to the definition provided by Unity, Scriptable Object is a data container that let you save a lot of data and reduce memory usage. You can create them from code or by making new instances in the project view.

Creating Scriptable Object

Thanks to that you can easily create a lot of different representation of data, for example, inventory items, skills, game modes and more.

Using Scriptable Objects as items

The sky is the limit as they say 😜

Continue reading “Basics of Scriptable Objects in Unity”

Coding animations in Unity

We all know that adding a few animations makes a game ten times better!
But what if you are a programmer and all you can do is to write code? You can animate from code!

Principles of Animation

One of the things that you need to understand before you begin to make animations is to start with 12 principles of animation. Those were introduced in the book: “The Illusion of Life: Disney Animation”.
This is a great place to start because it gives you some idea about how to make animations in general. At this point, there is a lot of videos that feature this subject and my favorite one is by AlanBeckerTutorials and I would highly recommend watching it first. 🤓

Continue reading “Coding animations in Unity”