Skip to content

Commit

Permalink
Enable pixel snapping
Browse files Browse the repository at this point in the history
In @theshaggydev's "Configuring your Godot project for pixel art"
[video][1] and [article][2], pixel snapping is enabled. The exact
setting used there isn't available in Godot 4, but I believe these
settings - or at least the vertices one - are at least roughly
equivalent. I may revert these settings if I notice weird behaviour
when building the game

[1]: https://www.youtube.com/watch?v=Nsj5SGEUZhU&t=155s
[2]: https://shaggydev.com/2021/09/21/project-setup-for-pixel-art/#pixel-snap
  • Loading branch information
yndajas committed Sep 28, 2023
1 parent b2f52a7 commit 42d4022
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ window/stretch/mode="viewport"
textures/canvas_textures/default_texture_filter=0
renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"
2d/snap/snap_2d_transforms_to_pixel=true
2d/snap/snap_2d_vertices_to_pixel=true

0 comments on commit 42d4022

Please sign in to comment.