Here are all tutorials that we have created to help you get into Defold game development. If you are new to our engine and editor, this is a good place to start.
In this beginner's tutorial you get a taste of how to build a game in Defold by modifying a very simple side scroller game.
In this tutorial you learn how to make realistic movement using vectors and some simple vector algebra.
In this tutorial you build the foundation for a top down shooter game based on the "War Battles" RTS asset pack. You learn how to create player movement and rocket shooting.
In this tutorial you start with an existing mobile game and build an in-game GUI, a GUI screen for level selection and a start screen.
In this tutorial we start with an empty project and build a classic Snake game. The game is built on a tilemap making the visuals and logic very easy to experiment with.
In this tutorial we start with an empty project and build a classic 15 puzzle. The puzzle is built on a tilemap that the user can click to slide the pieces.
In this article, we go through the implementation of a basic tile-based 2D platformer. The mechanics are moving left/right, jumping and falling.
In this tutorial we start with an empty project and build a complete runner game with an animated character, physics collision, pickups and scoring.
In this tutorial we will build a complete little puzzle game with a start screen, the mechanics of the game and simple level progression in the form of increasing difficulty.
Building a car
If you are new to Defold, this guide will help you getting your bearings right in the editor. It also explains the basic ideas and the most common building blocks in Defold: Game objects, Collections, Scripts and Sprites.
In this tutorial, we take a very nice animated star nest shader from Shadertoy and implement it in Defold. It requires a basic understanding of GL shaders.
In this tutorial we create a color grading full screen post effect with custom GL shaders. It requires a basic understanding of GL shaders.
Defold examples repo
This public Github repo contains a selection of example projects. Download them, try them out, learn from them and then please feel free to use them as you see fit.
Defold expert Björn has created a page full of different code samples, demos and mini-games complete with code to show you how it's done.
Defold's own JCash has created a page with different samples, including a quick implementation of A* pathfinding.
In this sample, we demonstrate effects to present a main menu. The menu contains a background and two menu items.
In this sample, we demonstrate how to use a parallax effect to simulate depth in the game world. There are two layers of clouds, where one of the layers has the appearance of being further back than the other. There is also an animated saucer for flavor.
In this sample, we demonstrate effects for score counting. The scores appear randomly over the screen, simulating a game where the player obtains scores at different positions.
GameFromScratch video tutorials
Learn the basics in this video tutorial series from GameFromScratch.com, starting with how to use the Defold editor and working up from there!
Need to brush up on Lua? If our own documentation isn't enough you should check out this big list of Lua-related resources compiled by users from our forum.