Tuesday, March 26, 2024

Godot with pixel art

 For this entry, I will be using this guide as a base https://youtu.be/mAbG8Oi-SvQ?si=klvy6mSiN_9aVA75 (and some of its resources)

The first thing you need is, set up your project window for pixel art.
Go to project > project settings > (General > Property > window):

- Configure your window game resolution.
- And your window screen resolution
- Then go and scale/stretch the window from game to screen, using 2d.

Example in the image below:

The next step is to set the game, so your images are also imported/preset as 2d pixel.

To do this, select your icon or any other image on your project "res:" directory.

- Press on "Preset" and mark "2d pixel art"
- Go to the "Filter" check box and be sure to leave it unchecked.
- Now click on Reimport.

Example in the image below:

The setup part finish here, but some possible incoming entries (animations, animation tree, state machines, and hit boxes) will use this one as root.

Extra tip: for autotilemap use https://michagamedev.wordpress.com/2018/02/24/181/

No comments:

Post a Comment