Code Monkey home page Code Monkey logo

Comments (2)

OneLoneCoder avatar OneLoneCoder commented on August 19, 2024

So two things to keep in mind, you can't draw decals to sprites, and you can't scale down text when drawing as a sprite. Given your other constraints, then an option would be to scale your playing field up so the font looks sensible, and then draw the playing field as a decal so you can scale it back down. Keep in mind that the font is about as small as single pixels allow, so perhaps your overall application resolution is too low for what you need.

from olcpixelgameengine.

TuxxuT avatar TuxxuT commented on August 19, 2024

@OneLoneCoder
Thank you very much for the quick help and the useful information.
Now I'll just draw the field larger so that everything fits the font size. Later it will be treated as a decal with a scaling factor of 0.5. The playing field is then the correct size, still looks good and the labeling is easy to read.
Problem solved. Thank you very much!

from olcpixelgameengine.

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.