yuv422 / png2tile Goto Github PK
View Code? Open in Web Editor NEWConvert PNG images into Sega Master System tile format
License: MIT License
Convert PNG images into Sega Master System tile format
License: MIT License
Something small I noticed while building this was that I had to add cstring to the includes, for strcmp, memcpy, memset to compile properly. I'm not sure how you would choose to fix this if you do so, it's a small issue and all, but I figured you'd want to know.
Hi there,
Thanks for this tool, it's really helping with my Aseprite => Tiled workflow for SMS game development :)
I'm wondering whether it would be possible/desirable to filter out blank 'alpha' tiles from the outputted data, i.e. tiles that don't contain any RGB pixels, which may occur in a source image that has some blank space in it. As an example, my current workflow is to construct tiled background objects in Aseprite, export full images of them, then use png2tile to convert them into a TMX tilemap. The result is de-duped tilesets (with h/v flip awareness) plus the constructed representations of these objects in the TMX that I can paste into my Tiled level tilemap, without having to reassemble the pieces like a jigsaw.
This is working fine so far, but one problem I'm having is that because the source images are full images rather than compacted tilesets they do have some blank transparent space in places, and this results in a junk blank tile being added to each tileset that is filled with palette index 0. The particular graphics I'm creating are isometric and I can't really compact them together to get rid of this space.
Would it be possible for these alpha tiles to be filtered out from the tileset completely, either by default or as an option? The resulting TMX tilemap could then use tile id 0 in place of these, which I believe is Tiled's way of representing non/transparent tiles in a tilemap layer.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.