GithubHelp home page GithubHelp logo

png2tile's People

Contributors

raphnet avatar ryanbraganza avatar slipyx avatar yuv422 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

png2tile's Issues

One small fix.

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.

Filter out blank alpha tiles

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.