Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pixel Art looks bad when resizing the game in windowed mode #6947

Open
1 task done
YounesSamatta opened this issue Sep 11, 2024 · 1 comment
Open
1 task done

Pixel Art looks bad when resizing the game in windowed mode #6947

YounesSamatta opened this issue Sep 11, 2024 · 1 comment

Comments

@YounesSamatta
Copy link

Is there an existing issue for this?

Describe the bug

It looks fine when in fullscreen
GDevelop_e7diopszR0
But in windowed mode it gets deformed when moving, it more noticable when looking at the character's face

GDevelop_YETdG7HHbS.mp4

Steps to reproduce

  1. Resize the window
  2. See the pixels get deformed

GDevelop platform

Desktop

GDevelop version

5.4.211

Platform info

OS (e.g. Windows, Linux, macOS, Android, iOS)

Windows

OS Version (e.g. Windows 10, macOS 10.15)

Windows 10

Additional context

The resolution of the game is 464 x 261

@YounesSamatta YounesSamatta changed the title Pixel Art looks bad when resizing the windowed mode Pixel Art looks bad when resizing the game in windowed mode Sep 11, 2024
@D8H
Copy link
Collaborator

D8H commented Oct 8, 2024

This is not really a bug. For pixel art, you need to choose the pixel size by zooming the layers and scale the frame in linear, not nearest neighbors.
Take a look at this example:
https://gdevelop.io/game-example/free/platformer-with-tilemap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants