this post was submitted on 30 Sep 2023
10 points (85.7% liked)

Godot

5885 readers
52 users here now

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

!roguelikedev@programming.dev

Credits

founded 1 year ago
MODERATORS
 

How would I go about creating a pixel art theme for a game? I don't want to lower the resolution of the game, as it is supposed to render the game in the native resolution and I want crisp effects and text. Currently Godot makes a single pixel of the ui a single pixel on the screen. How would one go about fixing that? UI looks like this currently:

Do I really have to scale every control, or can I set it up for controls to automatically display its textures bigger?

EDIT: Here is a zoomed in version of the picture above. This should clarify of what I want to achieve (without having to zoom in)

you are viewing a single comment's thread
view the rest of the comments
[โ€“] simple@lemm.ee 2 points 1 year ago (1 children)

You can try going to project settings > display and setting the stretch mode to canvas_items. This will keep the aspect ratio but scale the resolution of the game. Unless you're going full retro it should be fine to have a higher resolution with pixel art.

[โ€“] Smorty@lemmy.blahaj.zone 2 points 1 year ago

I already have it set to this setting. So unfortunately this doesn't fix my issue. I'm trying to display the pixel art background with "chunkier" pixels, not the font. The font shall stay the same, but the other textured elements should grow.