Skip to content

Commit bf9fa02

Browse files
authored
fix(client): fixed #153 (#154)
* chore(client): added settings to prevent more sprite bleeding * fix(client): fixed #153
1 parent 44eab3c commit bf9fa02

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

client/levels/game.tscn

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,6 @@ metadata/_edit_use_custom_anchors = false
454454
disable_3d = true
455455
transparent_bg = true
456456
handle_input_locally = false
457-
snap_2d_transforms_to_pixel = true
458457
snap_2d_vertices_to_pixel = true
459458
canvas_item_default_texture_filter = 0
460459
audio_listener_enable_2d = true

client/logic/ui/map_editor.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ static func get_texture_with_atlas_coords(atlas_coords: Vector2i) -> Texture2D:
4242
var source: TileSetAtlasSource = TILES.get_source(0)
4343
var rect: Rect2i = source.get_tile_texture_region(atlas_coords, 0)
4444
var atlas: AtlasTexture = AtlasTexture.new()
45+
atlas.filter_clip = true
4546
atlas.set_atlas(source.texture)
4647
atlas.region = rect
4748
return atlas

client/project.godot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ gdscript/warnings/confusable_local_declaration=0
4949
window/size/viewport_width=1600
5050
window/size/viewport_height=900
5151
window/size/mode=3
52+
window/stretch/scale_mode="integer"
5253
mouse_cursor/custom_image="res://assets/images/theme/cursor.png"
5354
mouse_cursor/custom_image_hotspot=Vector2(10, 0)
5455
window/size/mode.debug=0
@@ -194,5 +195,4 @@ locale/translations_pot_files=PackedStringArray("res://levels/game.tscn", "res:/
194195
textures/canvas_textures/default_texture_filter=0
195196
renderer/rendering_method="mobile"
196197
textures/vram_compression/import_etc2_astc=true
197-
2d/snap/snap_2d_transforms_to_pixel=true
198198
2d/snap/snap_2d_vertices_to_pixel=true

0 commit comments

Comments
 (0)