Skip to content

Instantly share code, notes, and snippets.

# Example of a makefile to bulk export aseprite art onto a game.
# For windows, it is necessary to install some version of make such as:
# http://gnuwin32.sourceforge.net/packages/make.htm
#
# Details and specialized use of make are beyond this example. That's
# a whole different can of worms... Here I'm using the most simple of
# simples but any experts looking at this are welcome to improve.
@securas
securas / ldtk2c.py
Last active January 27, 2026 10:11
A python script to convert LDtk map into a .c file to be added to a project. It is not complete as entity fields are still hardly recognized but will try to add more fields in the future.
import sys
import os
import json
from contextlib import redirect_stdout
ldtk_entity_types = []
ldtk_tileset_enum = []