GDevelop icon indicating copy to clipboard operation
GDevelop copied to clipboard

Pixel Art looks bad when resizing the game in windowed mode

Open younessmt opened this issue 1 year ago • 1 comments

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

https://github.com/user-attachments/assets/4bbb0101-41cf-4d83-889a-f0ec073a2411

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

younessmt avatar Sep 11 '24 17:09 younessmt

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

D8H avatar Oct 08 '24 10:10 D8H

yep i managed to fix it by changing the resolution to 720p and zooming the camera

younessmt avatar Dec 11 '24 09:12 younessmt