Difference between revisions of "Tiled"
From GiderosMobile
(wip) |
(wip) |
||
Line 8: | Line 8: | ||
Gideros supports maps exported from Tiled with the .lua format (Tiled: ''File -> Export As -> Lua files (*.lua)''). | 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 (''right click -> Exclude from Execution'') | + | '''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 | + | Here we will see examples of how to use Tiled for your games. First examples 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. |
'''note''': as I became a big fan of '''ECS''' for building games, I am going to use '''tiny-ECS''' but you can completely ignore it as it has no impact on how to use Tiled in Gideros | '''note''': as I became a big fan of '''ECS''' for building games, I am going to use '''tiny-ECS''' but you can completely ignore it as it has no impact on how to use Tiled in Gideros | ||
Line 23: | Line 23: | ||
== Tiled and Bump (cBump) == | == Tiled and Bump (cBump) == | ||
− | You are using Tiled and '''Bump''' for | + | You are using Tiled and '''Bump''' for collision detection: |
* '''TO DO''' | * '''TO DO''' | ||
{{GIDEROS IMPORTANT LINKS}} | {{GIDEROS IMPORTANT LINKS}} |
Revision as of 23:21, 14 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 examples 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.
note: as I became a big fan of ECS for building games, I am going to use tiny-ECS but you can completely ignore it as it has no impact on how to use Tiled in Gideros
Basic Tiled Gideros Integration
Steps to integrate your Tiled levels in Gideros here:
- TO DO
Tiled and Liquidfun
You are using Tiled and Liquidfun as your physics engine:
Tiled and Bump (cBump)
You are using Tiled and Bump for collision detection:
- TO DO