en:tutorials:shaders:maps_in_a_shader
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| en:tutorials:shaders:maps_in_a_shader [2020/08/21 04:21 (5 years ago)] – Config data simplification iarwain | en:tutorials:shaders:maps_in_a_shader [2025/09/30 17:26 (6 weeks ago)] (current) – external edit 127.0.0.1 |
|---|
| - Create a Map using [[https://www.mapeditor.org|Tiled]]. | - Create a Map using [[https://www.mapeditor.org|Tiled]]. |
| - Export the tiled map to a TMX file. | - Export the tiled map to a TMX file. |
| - [[en:tutorials:creating_your_own_project|Create a new Orx project]]. | - [[en:tutorials:projects:creating_your_own_project|Create a new Orx project]]. |
| - Use [[https://wiki.orx-project.org/en/tutorials/community/sausage/tmx_to_orx|TiledToOrx]] (at least version 0.71) to convert the TMX into Orx configuration data. | - Use [[en:tutorials:tools:tmx_to_orx|TiledToOrx]] (at least version 0.71) to convert the TMX into Orx configuration data. |
| - Create an empty data config file in your projects data eg. ''tiled.ini'' to hold the map data temporarily. | - Create an empty data config file in your projects data eg. ''tiled.ini'' to hold the map data temporarily. |
| - Copy the config data from TiledToOrx, and paste into the ''tiled.ini'' in your project. | - Copy the config data from TiledToOrx, and paste into the ''tiled.ini'' in your project. |
| - Use the [[https://gitlab.com/sausagejohnson/orximagemap/-/raw/master/orximagemap.zip|OrxImageMap]] [https://gitlab.com/sausagejohnson/tiledtoorx] program to create an image map file and a ''shader.ini'' file for use in your project. OrxImageMap is a command line project. Example usage: | - Use the [[https://gitlab.com/sausagejohnson/orximagemap/-/raw/master/orximagemap.zip|OrxImageMap]] [[https://gitlab.com/sausagejohnson/orximagemap]] program to create an image map file and a ''shader.ini'' file for use in your project. OrxImageMap is a command line project. Example usage: |
| | |
| orximagemap -i C:\Dev\orx-projects\MyScrollingGame\data\config\tiled.ini -m "GameMap" -o C:\Dev\orx-projects\MyScrollingGame\data\texture\map-image.png -s C:\Dev\orx-projects\MyScrollingGame\data\config\shader.ini | orximagemap -i C:\Dev\orx-projects\MyScrollingGame\data\config\tiled.ini -m "GameMap" -o C:\Dev\orx-projects\MyScrollingGame\data\texture\map-image.png -s C:\Dev\orx-projects\MyScrollingGame\data\config\shader.ini |
en/tutorials/shaders/maps_in_a_shader.1597983699.txt.gz · Last modified: 2025/09/30 17:26 (6 weeks ago) (external edit)