https://github.com/LucvandenBrand/Tiled2GBA
Simple CLI for converting Tiled maps to data the Game Boy Advance (GBA) understands.
https://github.com/LucvandenBrand/Tiled2GBA
converter game-development gba tiled-map-editor tool
Last synced: 3 months ago
JSON representation
Simple CLI for converting Tiled maps to data the Game Boy Advance (GBA) understands.
- Host: GitHub
- URL: https://github.com/LucvandenBrand/Tiled2GBA
- Owner: LucvandenBrand
- License: mit
- Created: 2018-06-23T13:39:58.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-26T21:45:26.000Z (over 6 years ago)
- Last Synced: 2024-07-31T22:42:56.635Z (11 months ago)
- Topics: converter, game-development, gba, tiled-map-editor, tool
- Language: C++
- Size: 538 KB
- Stars: 19
- Watchers: 2
- Forks: 3
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tiled2GBA
Simple CLI for converting [Tiled](https://www.mapeditor.org) maps to data the **G**ame **B**oy **A**dvance understands.
Special thanks to [Jasper Vijn](https://www.coranac.com) for providing a great tutorial on GBA development!## Releases
You can download binary releases [here](https://github.com/LucvandenBrand/Tiled2GBA/releases).## Usage
Tiled2GBA can generate both compilable C code and appendable binary data.
The latter is recommended (no need to recompile your project for changes in assets),
and can be used with [GBFS](http://www.pineight.com/gba/#gbfs) in order to access it.### Generating C code
Simply call `Tiled2GBA` from your command prompt, and provide a `map.tmx` and `map.c map.h` as
input and output parameters respectively.
For example, `Tiled2GBA assets/map.tmx src/map.c src/map.h` would output compilable C code
into the `src` folder.### Generating binary data
Call `Tiled2GBA` from your command prompt with the `--binary` option, and provide a `map.tmx` and `map.bin` as
input and output parameters respectively.
For example, `Tiled2GBA assets/map.tmx assets/map.bin --binary` would output appendable binary data
into the `assets` folder.You can use the `--help` command for more information.
## Development
This project is divided in two subfolders: `converter` for converting Tiled files, and `player` for playing the converted maps on the GBA.### Converter
The converter comes with a handy `CMake` file. Building the converter is done by going into the `converter` folder and executing the following commands:1. `mkdir build`
2. `cd build`
3. `cmake ..`
4. `make`This should result in a cute little `Tiled2GBA` binary.
### Player
The player contains a `gbaMap` library in its `lib` folder, **which you can use for your own gba projects**. Both the player as the library come with a handy `make` file. Builing the player and its libraries is done by going into the `player` folder and executing **one** of the two commands:- `make no-content` to make the player without any map data.
- `make` to make the player with map data in the `data` folder appended.You should have a GBA rom now.
### Contributing
Contributions are always welcome! You can make a contribution by:1. Creating an issue, be sure your contribution has not been claimed by somebody else!
2. Forking the project.
3. Creating a pull-request to merge your solution back into the **develop** branch of this repository.The **develop** branch is meant for in-development unstable releases,
whilst the **master** branch is meant for stable production-ready releases.### Licence
All source files are protected under the MIT Licence, except for the included external libraries. The used libraries are open-source, but please read their included licenses for
their specific terms and conditions.