Lessons Learned while developing cross-platform games using the Defold Engine

Defold – a proven approach for making 2d cross-platform games

Defold is a turnkey solution which includes a Visual Editor, Lua Code Editor, Scene Editor, Version Control, Particle Editor and Tile Editor, enabling deployment across six target platforms (iOS, Android, HTML5, Mac OS X, Windows and Linux).  Defold is currently in the beta stage – having just released Version 2 of their editor.

 

Scroll down to see a list of tutorials which highlight the major features of the Defold Game Engine.

D

Defold Tutorials

Defold – a proven approach for making 2d cross-platform games

Defold is a turnkey solution which includes a Visual Editor, Lua Code Editor, Scene Editor, Version Control, Particle Editor and Tile Editor, enabling deployment across six target platforms (iOS, Android, HTML5, Mac OS X, Windows and Linux).  Defold is currently in the beta stage – having just released Version 2 of their editor.

 

Scroll down to see a list of tutorials which highlight the major features of the Defold Game Engine.

Latest stories

9 – Menu, GUI and Game Level Procedures – WIP

9

Within this tutorial, we’ll be incorporating several major Defold features which are very useful for future game development projects, to include: Introducing the concept of a ‘Game Level’; Describing the use of a Hierarchy of Game Levels to control the user experience; Extended use of Button Controls as a means to initiate game object actions and game control; Implementation of...

8 – Animated GUI Nodes

8

In thinking about all the design elements that are required to develop a viable Defold game, I think having an attractive and functional Graphical User Interface is high on the list.   In this tutorial, I’m going to describe how to animate a menu; in future tutorials, we’ll expand on that concept with other Defold GUI features. The end result for this tutorial is shown in the...

7 – ConvexShaped Collision Objects

7

In developing the simple physics example explained in tutorials # 5 & 6, we learned that collision objects can use either a box, capsule or sphere shape.   So…what if we want to incorporate a triangle shaped game object? As an example, the triangle image below is 140 pixels wide, and 70 pixels in height.   To create a Collision Object Shape which matches this polygon, the simplest...

6 – Preliminary Use of 2d Physics based Collisions – Part II

6

This is a continuation of the tutorial started in Part I — of this example of how to use Defold’s 2d Physics and Collision features.  In this second part, we’ll be adding: A Game Object Spawning Factory – which will create Crates at the cursor position when the mouse button is clicked; and An Explosion for each Crate that hits the floor of the game window – deleting...

5 – Preliminary Use of 2D Physics based Collisions – Part I

5

For this Defold Tutorial, I’d like to work through some capabilities that are similar to those found in many casual games, to include: Incorporation of Collision Objects with our Defold Game Objects as a basis for modeling the physical impacts of the effects of gravity – weight, friction and restitution (bounce); Placement of Boundaries to constrain Game Objects to the...

4 – Game Object Movement Techniques

4

Within this 4th Defold Tutorial, I’d like to work through several alternative means for moving a Game Object around the play area, to include: Use of the keyboard’s left/right/up/down arrow keys to initiate Game Object movement; Enabling a user to click (or touch) a location on the screen and have the Game Object move to that location; and Have a pre-planned path defined within the...

3 – Select, Drag and Drop a Defold Game Object

3

This tutorial will expand on the basic game object procedures we reviewed in the previous posts and explain several key procedures that will be frequently used in the development of game applications, to include: Developing a script which will invoke a Game Object ‘Factory’ – a function that will spawn additional game objects into the application; Developing a script associated...

2 – Defold Image Procedures – Part II

2

As a continuation of our Defold Image Processing tutorial which was started in Part I, this post will explain procedures for implementing a Sprite Flipbook, using script to move a Sprite around the game window and incorporating property animation.   Implementing a Sprite Flipbook.  The Defold Sprite FlipBook is essentially the mechanism for processing animations on a spritesheet — but...

2 – Defold Image Procedures – Part I

2

Understanding how to manipulate images within any game engine certainly fall high on the list of priorities.   For this post, I’m going to be focusing on several aspects of image processes using the Defold Game Engine: Part I: An overview of the Defold Building Blocks (Collections, Game Objects and Game Components); Adding images to a Defold project, and use the Atlas feature; Creating a...

1 – Kickoff with the Defold Game Engine

1

Having recently completed an HTML-5 game using the Phaser.io game engine, I have been researching the numerous options for cross-platform developmental tools which would enable me to migrate away from a WebView hybrid solution and focus more on native application development.  Although I was initially very excited about the potential of using a hybrid mobile app approach, the impact on...

Lessons Learned while developing cross-platform games using the Defold Engine