Decouple game objects using Godot signals

Before going further, let me state that this tutorial is intended for absolute beginners who have no idea about signals and finding a hard time following the official documentation.

There are times we need to use some type of notification services. Whether the player hits an enemy or player health reached zero, be it anything, we require other areas of the game to be notified of those. We don’t want to write functions for each and every object and call it from somewhere. It will be so horrible that when you return the next day morning, you will throw your project. In this article, we will look what are Godot signals and how the signals can be used for better separation between game objects. Continue reading

Start Developing HTML5 games in Phaser using TypeScript

TypeScript is a superset of JavaScript which compiles to plain JavaScript. Anyone with an intermediate knowledge in JavaScript knows that as the project complexity increases, the number of classes and script files increases. JavaScript differs from other languages and the OOP is done through prototypical inheritance. Lack of typing and intellisense in IDE is another problem. TypeScript solves all these and helps developers with all the things they need – typing, auto-completion etc. TypeScript came from Microsoft and thus both Visual Studio and Visual Studio Code has full support for the syntax with intellisense. Continue reading

7 Lerping tricks you need to know as a Game Developer

Linear Interpolation or lerping is a mathematical function which interpolates between two values. The interpolation amount is varied by passing a weight factor along with the start and end values. Linear interpolation is used in many areas of game development for movement, rotation, scale and everywhere you can think of. This article is about 7 lerping tricks you need to know as a game developer. Continue reading

Godot Engine game tutorial for beginners – Create a 2D racing game part 7

In the previous post of this game tutorial for beginners series, we actually completed the racing game project. We’ve added some keyboard controls to know how things are going to run. But actually we want tp change the player controls from keyboard to mobile. If we tap to the left of the player car, the car will move to the left and the same for the right side. So let us take a look at the modified player script. Continue reading

Godot Engine game tutorial for beginners – Create a 2D Racing Game 4

In the past 3 parts of the 2d racing game tutorial for beginners, we setup the scene, created enemy cars and obstacles and setup the bg scrolling. Now we just need to spawn the cars and the obstacles to make the game look like moving. Welcome to the fourth part of the series and in this post we will make the enemy cars moving by adding the enemy script. Continue reading

Godot Engine game tutorial for beginners – Create a 2D Racing Game 3

This is the third part in the 2D racing game tutorial for beginners. In previous posts we setup the scene and created the enemy cars and roadblocks. Before going into this one, let me explain how this game is going to work. This is a top down racing game, the ideal thing would be to move the car upwards and the camera will follow the player car. But, we are not going to do that. Instead of moving the car and the camera, we will scroll the bg down – player car and the camera will be static. There are some scripting sections from now on and I expect you to have a basic understanding of Godot scripting. If you don’t know that, the official website provides some excellent tutorials in gdscript. Continue reading