Giter VIP home page Giter VIP logo

Comments (2)

jan-xyz avatar jan-xyz commented on May 23, 2024

I debugged this a bit on my side, and it seems to be related to the size of the image. The tiles are supposed to be 32x32 but the entire image is not divisible by 32 and it seems like the engine doesn't properly scale the tiles accordingly. Does that make sense? When I resize the image to a multiple of 32 then it looks better although the proportions are a bit skewed and there are gaps (e.g. left side of stairs).
Screenshot 2021-08-02 at 03 39 06

from engo.

jan-xyz avatar jan-xyz commented on May 23, 2024

I was now able to get a workaround it by cropping the tile set. I looked closer at how Tiled handles it and they do the cropping automatically, should Engo do it as well? Attached are the view of the tileset in Tiled and the original PNG with a 32x32 grid on top of it(see how there are incomplete tiles on the bottom and right). I now cropped the image and that fixed it, but maybe we can improve the TMX handling here a bit and mimic how Tiled is doing it. If you point me in the direction then I can file a PR for it.
Screenshot 2021-08-02 at 13 14 23
Cliff_tileset_checked

In-game render with the cropped tileset:
Screenshot 2021-08-02 at 16 05 47

from engo.

Related Issues (20)

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.