← Home
Nicolas Perdu

Nicolas Perdu

Software engineer

Over ten years of experience as a software engineer and creating games.

Articles written by Nicolas Perdu (71)

Display text with Godot

In this tutorial we will see how to display a text in godot using RichTextLabel through the godot editor and also through code.

Draw shapes and texts

In this tutorial we will draw rectangle, circle, polygon and simple texts using the bases functions.

Getting started with Godot

In this tutorial the goal is to present the Godot Engine I will explain the different panel used.

Play an Ink story in Godot

In this tutorial we will see how to play an ink story in Godot 4. For that we will use a plugin Godot-Ink to parse and load the story.

Use a timer and signals

In this tutorial we will see how to use timer in godot using the node Timer. But we also need to learn how to use the signals.

Creating a 2D light with SDL2

The goal of this tutorial is creating a 2D light with SDL2. For that we use another library to compute the visible polygon.

Creating a particle system

In this tutorial we are creating a simple particle system with SDL. For that we will create a class Firework.

Display an image with SDL2_image

The goal for this SDL2 tutorials is to simply display an image with SDL2_image and SDL2. The program is basic and simple.

Display unicode text with SDL2_ttf

Display unicode text with SDL2_ttf and SDL2. The example display a japanese text with the font Kosugi Maru. We use wstring to store the text.

DXT Texture Compression with SDL2

In this tutorial we will see how to use DXT Texture Compression with SDL2, SDL_gpu, and gli. For that we will need to modify SDL_gpu.

How to use a GLSL shader with SDL2?

In this tutorial we explain how to use a GLSL shader with SDL2. For that, we will use SDL_gpu then create a vertex shader and a fragment shader.

Install SDL2 on Linux

Install and compile SDL2 on Linux using GCC. We also make a test program to check if the installation is working.

Make an animation with Sprited

Make an sprite-sheet or an animation with Sprited editor. You can easily import it in your game. Sprited is free open-source, multiplatform.

Make a health bar with SDL2

In this tutorial, the goal is to make a health bar with SDL2 and SDL2_image, we will use the cursor position to update the filling.

Make a loading screen

In this tutorial we are making a loading screen with SDL and threads. The threads are necessary to load the content while de main threads display the animation.

Playing a theora video with SDL2

In this tutorial we play a theora video with SDL2 using some of the code made by one of the developer of SDL2: Ryan Gordon.

Sprite Animations with SDL2 and SDL_gpu

Making some simple sprite animations from a sprite sheet with SDL2 and SDL_gpu. SDL_gpu is not mandatory but it's a handy library for the rendering.

Static build of SDL2 on MacOS

How to compile sdl2 statically with cmake or xcode or directly on macos. Making a simple static project can be helpful when making a game to avoid dependencies.

Static build of SDL2 on Windows

How to compile SDL2 statically with visual studio, on windows. Making a static build of SDL can be helpful when making a game to avoid dependencies.

How to Create a 2D Camera System in SDL3

Learn how to implement a smooth 2D camera system in SDL3 that follows your player across a larger game world. Ideal for platformers and top-down games.

Implementing AABB Collision Detection in SDL3

Learn how to implement Axis-Aligned Bounding Box (AABB) collision detection in SDL3. This tutorial covers the logic, code example, and integration in a 2D game environment.

How to Display an Image with SDL3

Learn how to display an image using SDL3 in this free tutorial. Perfect for beginners, this guide walks you through a simple SDL3 program.

Display and Manage Multiple Windows with SDL3

Learn how to create and manage multiple windows using SDL3. This step-by-step tutorial covers separate event handling for each window and practical examples for cross-platform development.

Display a texture with SDL3_gpu

Display a texture with SDL3_gpu. This step-by-step tutorial covers context creation, loading of a texture and use it with a hlsl shaders, how to setup a sampler.

Display a triangle with SDL3_gpu

Display a triangle with SDL3_gpu. This step-by-step tutorial covers context creation, basic usage of loading and use a hlsl shaders, how to compile shaders with SDL_shadercross.

Getting started with SDL3_gpu : Clear screen

Getting started with SDL3_gpu. This step-by-step tutorial covers context creation, basic usage of the command buffer, the basics concepts for using SDL3_gpu through an simple example.

Install SDL3 on macOS with CMake

In this SDL3 tutorial, you'll learn how to compile SDL3 with CMake on macOS and run a simple Hello World project to get started quickly.

Install SDL3 on Linux Using CMake

Learn how to install and compile SDL3 on Linux using CMake. This tutorial includes creating a simple test program to verify your installation.

Display a 3D Cube with OpenGL and SDL3

Learn how to render a 3D cube using modern OpenGL and SDL3. This step-by-step tutorial covers window creation, OpenGL context setup, cube rendering, and basic camera movement.

Play Music with SDL3_mixer in SDL3

Learn how to load, play, and manage audio with SDL3_mixer in this free SDL3 tutorial—ideal for game development and multimedia applications.

Implementing SAT Collision Detection in SDL3

Learn how to implement the Separating Axis Theorem (SAT) collision detection in SDL3. This tutorial covers the logic, code example, and integration in a 2D game environment.

A Detailed Comparison of SDL3 and SDL2

Compare SDL3 and SDL2 to explore their key differences, new features, and learn why upgrading to SDL3 offers improved performance, modularity, and modern APIs.

Use Gamepads and Joysticks with SDL3

Learn how to use gamepads and joysticks with SDL3 to control your games using external controllers in this beginner-friendly tutorial.

Create a Hitbox Editor

In this tutorial, we create a hitbox editor with SFML in order to make convexe collision masks.

Display tilemap from tiled

In this tutorial, we import tilemaps and render tilemaps with SFML. To parse the JSON files exported we will use RapidJSON

Getting started with SFML

Getting started with SFML. We will try to display some image but also play some music for your hello world program.

Make a bullet hell game

In this tutorial, we learn how to make a simple bullet hell game, also known as danmaku game in C++ with the library SFML.

Shader with SFML

In this tutorial this is an example of a fire burning made with a fragment shader with SFML. As you can see using shader is really simple.

Sprite Sheet Generator

In this tutorial we are making a sprite sheet generator with SFML. We use the format xml and rapidXML as a library to parse the XML.

Static build of SFML

Start developing with SFML on your IDE: Visual Studio, Code::Blocks, XCode on Windows Mac, Linux. Make a static build of SFML.

Textures, Sprites and Shapes with SFML

In this tutorial we dive deep into the graphic module of SFML with textures, sprites and shapes with SFML. There are sf::Sprite, sf::Texture.

Create 2D lights with Unity

In this tutorial we create 2d lights with Unity, for that you need to create a URP project . The 2d colored lights can be additive.

Playing a video in Unity

In this tutorial you will learn playing a video in Unity, for that you will need to create a game object with a video player.

Sprite sheet with Unity

Tutorial to help you import and use sprite sheet with Unity and also how to reduce the number of draw calls with Sprite Atlas.

Use sqlite in Unity

In this tutorial you will see how to use a sqlite in unity, in your game. Sqlite is a good and fast database for a game.

Unity toon shader with outline

In this tutorial we create a toon shader with outline in Unity. You can use this toon shader to have a cartoony look for your game.