Difference between revisions of "Tiled"

From GiderosMobile
(wip)
(wip)
Line 13: Line 13:
  
 
== Basic Tiled Gideros Integration ==
 
== Basic Tiled Gideros Integration ==
The first example will show how to load your Tiled levels in Gideros.
+
The first example will show how to display your Tiled levels in Gideros.
  
For images, we will use both Tiled, New Tileset -> "''Based on Tileset Image''" and New Tileset -> "''Collection of Images''".
+
For images, we will use both Tiled, New Tileset -> "''Based on Tileset Image''" and "''Collection of Images''".
  
Using Tiled Object Layers we will also be able to draw Shapes in Gideros (Polygon, Polyline, Rectangles, ...).
+
Using Tiled Object Layers we will be able to draw Shapes in Gideros (Polygon, Polyline, Rectangles, ...).
  
 
Please follow this link:
 
Please follow this link:
Line 23: Line 23:
  
 
== Tiled and Liquidfun ==
 
== Tiled and Liquidfun ==
You are using Tiled and '''Liquidfun''' is your physics engine:
+
In the second example, you are using Tiled and '''Liquidfun''' is your physics engine.
 +
 
 +
Beside using images and shapes for display, we will also use shapes for '''Collision shapes''' needed for Liquidfun.
 +
 
 +
Please follow this link:
 
* '''[[Tiled Liquidfun]]'''
 
* '''[[Tiled Liquidfun]]'''
  
 
== Tiled and Bump (cBump) ==
 
== Tiled and Bump (cBump) ==
You are using Tiled and '''Bump''' for collision detection:
+
In the third example, you are using Tiled and '''Bump''' for collision detection.
 +
 
 +
Beside using images and shapes for display, we will also use shapes for '''Collision shapes''' needed for Bump.
 +
 
 +
Please follow this link:
 
* '''TO DO'''
 
* '''TO DO'''
  
 
{{GIDEROS IMPORTANT LINKS}}
 
{{GIDEROS IMPORTANT LINKS}}

Revision as of 04:17, 17 May 2025

Description

Tiled is a free and open source, easy to use, and flexible level editor
link: https://www.mapeditor.org/

Gideros supports maps exported from Tiled with the .lua format (Tiled: File -> Export As -> Lua files (*.lua)).

note: in your Gideros project, don't forget to exclude from execution your Tiled lua files (Gideros: right click Tiled lua file -> Exclude from Execution)

Here we will see examples of how to use Tiled for your games. First example will simply load some Tiled levels, then we will integrate Liquidfun and Bump as you would probably want to use some kind of collision detection.

Basic Tiled Gideros Integration

The first example will show how to display your Tiled levels in Gideros.

For images, we will use both Tiled, New Tileset -> "Based on Tileset Image" and "Collection of Images".

Using Tiled Object Layers we will be able to draw Shapes in Gideros (Polygon, Polyline, Rectangles, ...).

Please follow this link:

Tiled and Liquidfun

In the second example, you are using Tiled and Liquidfun is your physics engine.

Beside using images and shapes for display, we will also use shapes for Collision shapes needed for Liquidfun.

Please follow this link:

Tiled and Bump (cBump)

In the third example, you are using Tiled and Bump for collision detection.

Beside using images and shapes for display, we will also use shapes for Collision shapes needed for Bump.

Please follow this link:

  • TO DO