https://github.com/vivivivianne/bunldtk
c99 LDTK level importer, with greedy meshing functionality!
https://github.com/vivivivianne/bunldtk
c99 gamedev ldtk
Last synced: 12 months ago
JSON representation
c99 LDTK level importer, with greedy meshing functionality!
- Host: GitHub
- URL: https://github.com/vivivivianne/bunldtk
- Owner: vivivivianne
- License: gpl-2.0
- Created: 2024-09-08T20:25:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-08T20:39:36.000Z (over 1 year ago)
- Last Synced: 2025-03-23T03:20:06.366Z (about 1 year ago)
- Topics: c99, gamedev, ldtk
- Language: C
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🐇BunLDTK
A Cool c99 LDTK Level Loader made with json-c
## ✅ Features:
- Overly commented header file
- Wall Greedy Meshing
- Single and multi file support
- Supports all world layouts
- Get custom fields easily with ldtk_get_field_lvl() and ldtk_get_field_ent() functions
- Reads data into simple to use C structs
## 💾 Usage
- To add to your project simply copy the headers, bunarr.c and ldtk.c
## ⚠️ Caveats:
- ***Currently not feature complete!***
- Requires bunarr and json-c
- Walls w and h are relative to the minimum wall size,
this means you must multiply the w and h by the tile size of your game before using them.
## 🗒️ Todo:
- Add proper support for different tile sizes and stuff
- Add Examples
- Add Super Simple Export Support
- Add PNG Level Export Support
- Add PNG Layer Export Support
- Proper error handling
- Generate docs with doxygen???