fixed pixel bleeding for player sprites atlas
This commit is contained in:
@@ -24,6 +24,7 @@ Essential="*res://src/essential.cs"
|
||||
window/size/viewport_width=1537
|
||||
window/size/viewport_height=864
|
||||
window/stretch/mode="canvas_items"
|
||||
window/snap/snap_2d_transforms_to_pixel=false
|
||||
|
||||
[dotnet]
|
||||
|
||||
@@ -89,3 +90,7 @@ hotkey_fullscreen={
|
||||
|
||||
2d_physics/layer_1="World"
|
||||
2d_physics/layer_2="Interactable"
|
||||
|
||||
[rendering]
|
||||
|
||||
2d/snap/snap_2d_transforms_to_pixel=true
|
||||
|
@@ -3,18 +3,18 @@
|
||||
[ext_resource type="Script" path="res://src/scene-scripts/player.cs" id="1_qehox"]
|
||||
[ext_resource type="Texture2D" uid="uid://olceowuycu8c" path="res://assets/textures/debug/dummy-player-atlas.png" id="2_yu1q5"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tirvd"]
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tokqm"]
|
||||
atlas = ExtResource("2_yu1q5")
|
||||
region = Rect2(0, 0, 84, 128)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0qv2m"]
|
||||
atlas = ExtResource("2_yu1q5")
|
||||
region = Rect2(84, 0, 84, 128)
|
||||
region = Rect2(0, 0, 83, 127)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qomfj"]
|
||||
atlas = ExtResource("2_yu1q5")
|
||||
region = Rect2(168, 0, 84, 128)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bsfbd"]
|
||||
atlas = ExtResource("2_yu1q5")
|
||||
region = Rect2(84, 0, 83, 127)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ulejc"]
|
||||
atlas = ExtResource("2_yu1q5")
|
||||
region = Rect2(252, 0, 84, 128)
|
||||
@@ -37,7 +37,7 @@ region = Rect2(168, 128, 84, 128)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_2x1cy"]
|
||||
animations = [{
|
||||
"frames": [SubResource("AtlasTexture_tirvd"), SubResource("AtlasTexture_0qv2m"), SubResource("AtlasTexture_tirvd"), SubResource("AtlasTexture_qomfj")],
|
||||
"frames": [SubResource("AtlasTexture_tokqm"), SubResource("AtlasTexture_qomfj"), SubResource("AtlasTexture_tokqm"), SubResource("AtlasTexture_bsfbd")],
|
||||
"loop": true,
|
||||
"name": &"move_down",
|
||||
"speed": 5.0
|
||||
@@ -70,6 +70,7 @@ collision_mask = 2
|
||||
collide_with_areas = true
|
||||
|
||||
[node name="animated_sprite_2d" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
position = Vector2(-0.0625, -17.0625)
|
||||
scale = Vector2(0.733398, 0.733398)
|
||||
frames = SubResource("SpriteFrames_2x1cy")
|
||||
|
Reference in New Issue
Block a user