changed sprite
This commit is contained in:
21
scenes/healers/healers.gdshader
Normal file
21
scenes/healers/healers.gdshader
Normal file
@@ -0,0 +1,21 @@
|
||||
shader_type canvas_item;
|
||||
|
||||
uniform float sway_speed : hint_range(0.1, 10.0) = 1.0;
|
||||
uniform float sway_magnitude : hint_range(0.0, 50.0) = 10.0;
|
||||
uniform float randomness_factor : hint_range(0.0, 1.0) = 0.5;
|
||||
uniform sampler2D noise_texture ;
|
||||
|
||||
|
||||
void vertex() {
|
||||
float time = TIME * sway_speed;
|
||||
|
||||
// Sample the noise texture using the vertex position
|
||||
vec2 noise_uv = VERTEX.xy * 0.1;
|
||||
float noise_value = texture(noise_texture, noise_uv).r;
|
||||
float randomness = noise_value * randomness_factor;
|
||||
|
||||
// Calculate the sway offset
|
||||
float sway_offset = sin(time + VERTEX.y * 0.1) * sway_magnitude + randomness * sway_magnitude;
|
||||
|
||||
VERTEX.x += sway_offset;
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=40 format=3 uid="uid://dpsa6s5erb0ws"]
|
||||
[gd_scene load_steps=49 format=3 uid="uid://dpsa6s5erb0ws"]
|
||||
|
||||
[ext_resource type="Script" path="res://SetPiece_.gd" id="2_j681b"]
|
||||
[ext_resource type="Script" path="res://ScalePoint_.gd" id="3_eyrgf"]
|
||||
@@ -32,6 +32,8 @@
|
||||
[ext_resource type="Texture2D" uid="uid://bh7hdoy313ecr" path="res://scenes/healers/trimmed-anim/frame_00023_.png" id="26_p23od"]
|
||||
[ext_resource type="Texture2D" uid="uid://b4enxgmyjsl5p" path="res://scenes/healers/trimmed-anim/frame_00024_.png" id="27_xfls2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dqx80t435ndyv" path="res://scenes/healers/trimmed-anim/frame_00025_.png" id="29_jyvw8"]
|
||||
[ext_resource type="Shader" path="res://scenes/healers/healers.gdshader" id="33_rb4p1"]
|
||||
[ext_resource type="Texture2D" uid="uid://cuom3fk05vw8b" path="res://scenes/healers/leaves.png" id="34_8dv44"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_bel53"]
|
||||
script/source = "extends Scene
|
||||
@@ -48,7 +50,6 @@ var target: Vector2
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
super()
|
||||
|
||||
pass # Replace with function body.
|
||||
|
||||
func _process(delta):
|
||||
@@ -211,6 +212,62 @@ animations = [{
|
||||
offsets = PackedFloat32Array(0, 0.262724, 0.47868, 0.69326, 1)
|
||||
colors = PackedColorArray(1, 1, 1, 0, 1, 1, 0.645601, 0.149953, 1, 1, 1, 0.290196, 1, 1, 0.333333, 0.211765, 1, 1, 0.333333, 0)
|
||||
|
||||
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_j435v"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_0gqaa"]
|
||||
shader = ExtResource("33_rb4p1")
|
||||
shader_parameter/sway_speed = 3.647
|
||||
shader_parameter/sway_magnitude = 2.706
|
||||
shader_parameter/randomness_factor = 0.22
|
||||
shader_parameter/noise_texture = SubResource("NoiseTexture2D_j435v")
|
||||
|
||||
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_78p3d"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_3pjdn"]
|
||||
shader = ExtResource("33_rb4p1")
|
||||
shader_parameter/sway_speed = 4.467
|
||||
shader_parameter/sway_magnitude = 1.27
|
||||
shader_parameter/randomness_factor = 0.374
|
||||
shader_parameter/noise_texture = SubResource("NoiseTexture2D_78p3d")
|
||||
|
||||
[sub_resource type="Animation" id="Animation_sywk5"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:material:shader_parameter/sway_magnitude")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [1.27]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_cc7xh"]
|
||||
resource_name = "sway"
|
||||
length = 5.0
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:material:shader_parameter/sway_magnitude")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 1.7, 3, 4.2, 4.9),
|
||||
"transitions": PackedFloat32Array(1, 1, 2.73208, 1.7411, 1),
|
||||
"update": 0,
|
||||
"values": [1.27, 1.27, 8.126, 3.526, 1.27]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_62768"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_sywk5"),
|
||||
"sway": SubResource("Animation_cc7xh")
|
||||
}
|
||||
|
||||
[node name="background" type="Node2D"]
|
||||
y_sort_enabled = true
|
||||
script = SubResource("GDScript_bel53")
|
||||
@@ -257,7 +314,7 @@ libraries = {
|
||||
}
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(1061, 606)
|
||||
position = Vector2(998, 600)
|
||||
scale = Vector2(1.58, 1.58)
|
||||
sprite_frames = SubResource("SpriteFrames_7un2n")
|
||||
autoplay = "default"
|
||||
@@ -339,6 +396,39 @@ position = Vector2(550, 862)
|
||||
[node name="exit" parent="healer_interior" index="1"]
|
||||
position = Vector2(497, 818)
|
||||
|
||||
[node name="Node2D" type="Node2D" parent="."]
|
||||
scale = Vector2(0.79, 0.79)
|
||||
|
||||
[node name="Polygon2D" type="Polygon2D" parent="Node2D"]
|
||||
z_index = 2
|
||||
material = SubResource("ShaderMaterial_0gqaa")
|
||||
position = Vector2(1497.47, -11.3924)
|
||||
scale = Vector2(0.82, 0.82)
|
||||
texture = ExtResource("34_8dv44")
|
||||
texture_scale = Vector2(0.79, 0.79)
|
||||
polygon = PackedVector2Array(96.6714, 6.12245, 71.5013, 41.4966, 106.195, 66.6667, 124.563, 88.4354, 75.583, 131.973, 28.6442, 155.782, -9.45105, 189.116, -15.5735, 229.252, 65.3789, 247.619, 168.1, 248.299, 192.59, 210.204, 257.896, 212.245, 289.869, 191.837, 307.556, 167.347, 327.964, 184.354, 343.61, 214.286, 330.005, 231.292, 283.746, 240.816, 237.488, 261.224, 234.086, 287.755, 210.277, 295.918, 169.46, 312.925, 117.08, 354.422, 73.5421, 371.429, 53.8143, 392.517, 93.2701, 409.524, 144.29, 424.49, 183.746, 430.612, 236.807, 427.211, 262.658, 425.17, 283.066, 447.619, 305.515, 437.415, 324.563, 422.449, 347.012, 438.775, 393.95, 431.292, 411.637, 410.204, 425.243, 400.68, 465.379, 400.68, 466.739, 371.429, 465.379, 355.782, 500.073, 361.905, 483.066, 388.435, 474.222, 410.884, 524.562, 408.844, 568.1, 427.211, 615.719, 446.939, 663.338, 438.775, 666.739, 397.959, 643.61, 389.116, 695.991, 392.517, 718.44, 371.429, 721.841, 340.136, 739.528, 335.374, 797.352, 325.85, 803.474, 285.034, 793.27, 240.816, 786.467, 228.571, 670.821, 231.292, 593.27, 251.701, 555.855, 251.02, 553.134, 277.551, 527.964, 257.823, 572.862, 210.204, 621.161, 202.721, 659.937, 194.558, 693.27, 170.068, 721.161, 170.748, 762.658, 189.796, 827.964, 214.966, 887.147, 226.531, 936.127, 200.68, 963.338, 181.633, 1015.04, 170.068, 1052.45, 157.143, 1069.46, 219.728, 1155.85, 213.605, 1174.9, 215.646, 1206.88, 255.102, 1252.45, 273.469, 1410.96, 285.034, 1476.94, 311.565, 1523.2, 242.177, 1533.41, 173.469, 1484.43, 127.891, 1420.48, 125.17, 1376.26, 110.204, 1370.82, 83.6735, 1410.96, 67.3469, 1473.54, 83.6735, 1502.79, 53.0612, 1536.81, 6.80272, 1506.2, -13.6054, 1290.55, -22.449, 191.91, -32.6531, 232.779, 349.505, 215.948, 379.208, 344.66, 374.257, 417.928, 341.584, 370.403, 307.921, 301.096, 302.97, 421.888, 272.277, 539.71, 297.03, 632.779, 308.911, 697.136, 286.139, 690.205, 314.852, 590.205, 375.248, 387.235, 130.693, 532.779, 104.951, 818.918, 46.5347, 998.126, 82.1782, 1221.89, 113.861, 1291.2, 181.188, 1417.93, 219.802, 1226.84, 87.1287, 1310.01, 36.6337, 1441.69, 32.6733, 309.017, 104.951, 182.284, 138.614, 130.799, 173.267, 56.5416, 179.208)
|
||||
uv = PackedVector2Array(96.6714, 6.12245, 71.5013, 41.4966, 106.195, 66.6667, 124.563, 88.4354, 75.583, 131.973, 28.6442, 155.782, -9.45105, 189.116, -15.5735, 229.252, 65.3789, 247.619, 168.1, 248.299, 192.59, 210.204, 257.896, 212.245, 289.869, 191.837, 307.556, 167.347, 327.964, 184.354, 343.61, 214.286, 330.005, 231.292, 283.746, 240.816, 237.488, 261.224, 234.086, 287.755, 210.277, 295.918, 169.46, 312.925, 117.08, 354.422, 73.5421, 371.429, 53.8143, 392.517, 93.2701, 409.524, 144.29, 424.49, 183.746, 430.612, 236.807, 427.211, 262.658, 425.17, 283.066, 447.619, 305.515, 437.415, 324.563, 422.449, 347.012, 438.775, 393.95, 431.292, 411.637, 410.204, 425.243, 400.68, 465.379, 400.68, 466.739, 371.429, 465.379, 355.782, 500.073, 361.905, 483.066, 388.435, 474.222, 410.884, 524.562, 408.844, 568.1, 427.211, 615.719, 446.939, 663.338, 438.775, 666.739, 397.959, 643.61, 389.116, 695.991, 392.517, 718.44, 371.429, 721.841, 340.136, 739.528, 335.374, 797.352, 325.85, 803.474, 285.034, 793.27, 240.816, 786.467, 228.571, 670.821, 231.292, 593.27, 251.701, 555.855, 251.02, 553.134, 277.551, 527.964, 257.823, 572.862, 210.204, 621.161, 202.721, 659.937, 194.558, 693.27, 170.068, 721.161, 170.748, 762.658, 189.796, 827.964, 214.966, 887.147, 226.531, 936.127, 200.68, 963.338, 181.633, 1015.04, 170.068, 1052.45, 157.143, 1069.46, 219.728, 1155.85, 213.605, 1174.9, 215.646, 1206.88, 255.102, 1252.45, 273.469, 1410.96, 285.034, 1476.94, 311.565, 1523.2, 242.177, 1533.41, 173.469, 1484.43, 127.891, 1420.48, 125.17, 1376.26, 110.204, 1370.82, 83.6735, 1410.96, 67.3469, 1473.54, 83.6735, 1502.79, 53.0612, 1536.81, 6.80272, 1506.2, -13.6054, 1290.55, -22.449, 191.91, -32.6531, 232.779, 349.505, 215.948, 379.208, 344.66, 374.257, 417.928, 341.584, 370.403, 307.921, 301.096, 302.97, 421.888, 272.277, 539.71, 297.03, 632.779, 308.911, 697.136, 286.139, 690.205, 314.852, 590.205, 375.248, 387.235, 130.693, 532.779, 104.951, 818.918, 46.5347, 998.126, 82.1782, 1221.89, 113.861, 1291.2, 181.188, 1417.93, 219.802, 1226.84, 87.1287, 1310.01, 36.6337, 1441.69, 32.6733, 309.017, 104.951, 182.284, 138.614, 130.799, 173.267, 56.5416, 179.208)
|
||||
internal_vertex_count = 26
|
||||
|
||||
[node name="Polygon2D2" type="Polygon2D" parent="Node2D"]
|
||||
z_index = 2
|
||||
material = SubResource("ShaderMaterial_3pjdn")
|
||||
position = Vector2(1472.15, -5.06329)
|
||||
scale = Vector2(0.82, 0.82)
|
||||
texture = ExtResource("34_8dv44")
|
||||
texture_scale = Vector2(0.79, 0.79)
|
||||
polygon = PackedVector2Array(96.6714, 6.12245, 71.5013, 41.4966, 106.195, 66.6667, 124.563, 88.4354, 75.583, 131.973, 28.6442, 155.782, -9.45105, 189.116, -15.5735, 229.252, 65.3789, 247.619, 168.1, 248.299, 192.59, 210.204, 257.896, 212.245, 289.869, 191.837, 307.556, 167.347, 327.964, 184.354, 343.61, 214.286, 330.005, 231.292, 283.746, 240.816, 237.488, 261.224, 234.086, 287.755, 210.277, 295.918, 169.46, 312.925, 117.08, 354.422, 73.5421, 371.429, 53.8143, 392.517, 93.2701, 409.524, 144.29, 424.49, 183.746, 430.612, 236.807, 427.211, 262.658, 425.17, 283.066, 447.619, 305.515, 437.415, 324.563, 422.449, 347.012, 438.775, 393.95, 431.292, 411.637, 410.204, 425.243, 400.68, 465.379, 400.68, 466.739, 371.429, 465.379, 355.782, 500.073, 361.905, 483.066, 388.435, 474.222, 410.884, 524.562, 408.844, 568.1, 427.211, 615.719, 446.939, 663.338, 438.775, 666.739, 397.959, 643.61, 389.116, 695.991, 392.517, 718.44, 371.429, 721.841, 340.136, 739.528, 335.374, 797.352, 325.85, 803.474, 285.034, 793.27, 240.816, 786.467, 228.571, 670.821, 231.292, 593.27, 251.701, 555.855, 251.02, 553.134, 277.551, 527.964, 257.823, 572.862, 210.204, 621.161, 202.721, 659.937, 194.558, 693.27, 170.068, 721.161, 170.748, 762.658, 189.796, 827.964, 214.966, 887.147, 226.531, 936.127, 200.68, 963.338, 181.633, 1015.04, 170.068, 1052.45, 157.143, 1069.46, 219.728, 1155.85, 213.605, 1174.9, 215.646, 1206.88, 255.102, 1252.45, 273.469, 1410.96, 285.034, 1476.94, 311.565, 1523.2, 242.177, 1533.41, 173.469, 1484.43, 127.891, 1420.48, 125.17, 1376.26, 110.204, 1370.82, 83.6735, 1410.96, 67.3469, 1473.54, 83.6735, 1502.79, 53.0612, 1536.81, 6.80272, 1506.2, -13.6054, 1290.55, -22.449, 191.91, -32.6531, 232.779, 349.505, 215.948, 379.208, 344.66, 374.257, 417.928, 341.584, 370.403, 307.921, 301.096, 302.97, 421.888, 272.277, 539.71, 297.03, 632.779, 308.911, 697.136, 286.139, 690.205, 314.852, 590.205, 375.248, 387.235, 130.693, 532.779, 104.951, 818.918, 46.5347, 998.126, 82.1782, 1221.89, 113.861, 1291.2, 181.188, 1417.93, 219.802, 1226.84, 87.1287, 1310.01, 36.6337, 1441.69, 32.6733, 309.017, 104.951, 182.284, 138.614, 130.799, 173.267, 56.5416, 179.208)
|
||||
uv = PackedVector2Array(96.6714, 6.12245, 71.5013, 41.4966, 106.195, 66.6667, 124.563, 88.4354, 75.583, 131.973, 28.6442, 155.782, -9.45105, 189.116, -15.5735, 229.252, 65.3789, 247.619, 168.1, 248.299, 192.59, 210.204, 257.896, 212.245, 289.869, 191.837, 307.556, 167.347, 327.964, 184.354, 343.61, 214.286, 330.005, 231.292, 283.746, 240.816, 237.488, 261.224, 234.086, 287.755, 210.277, 295.918, 169.46, 312.925, 117.08, 354.422, 73.5421, 371.429, 53.8143, 392.517, 93.2701, 409.524, 144.29, 424.49, 183.746, 430.612, 236.807, 427.211, 262.658, 425.17, 283.066, 447.619, 305.515, 437.415, 324.563, 422.449, 347.012, 438.775, 393.95, 431.292, 411.637, 410.204, 425.243, 400.68, 465.379, 400.68, 466.739, 371.429, 465.379, 355.782, 500.073, 361.905, 483.066, 388.435, 474.222, 410.884, 524.562, 408.844, 568.1, 427.211, 615.719, 446.939, 663.338, 438.775, 666.739, 397.959, 643.61, 389.116, 695.991, 392.517, 718.44, 371.429, 721.841, 340.136, 739.528, 335.374, 797.352, 325.85, 803.474, 285.034, 793.27, 240.816, 786.467, 228.571, 670.821, 231.292, 593.27, 251.701, 555.855, 251.02, 553.134, 277.551, 527.964, 257.823, 572.862, 210.204, 621.161, 202.721, 659.937, 194.558, 693.27, 170.068, 721.161, 170.748, 762.658, 189.796, 827.964, 214.966, 887.147, 226.531, 936.127, 200.68, 963.338, 181.633, 1015.04, 170.068, 1052.45, 157.143, 1069.46, 219.728, 1155.85, 213.605, 1174.9, 215.646, 1206.88, 255.102, 1252.45, 273.469, 1410.96, 285.034, 1476.94, 311.565, 1523.2, 242.177, 1533.41, 173.469, 1484.43, 127.891, 1420.48, 125.17, 1376.26, 110.204, 1370.82, 83.6735, 1410.96, 67.3469, 1473.54, 83.6735, 1502.79, 53.0612, 1536.81, 6.80272, 1506.2, -13.6054, 1290.55, -22.449, 191.91, -32.6531, 232.779, 349.505, 215.948, 379.208, 344.66, 374.257, 417.928, 341.584, 370.403, 307.921, 301.096, 302.97, 421.888, 272.277, 539.71, 297.03, 632.779, 308.911, 697.136, 286.139, 690.205, 314.852, 590.205, 375.248, 387.235, 130.693, 532.779, 104.951, 818.918, 46.5347, 998.126, 82.1782, 1221.89, 113.861, 1291.2, 181.188, 1417.93, 219.802, 1226.84, 87.1287, 1310.01, 36.6337, 1441.69, 32.6733, 309.017, 104.951, 182.284, 138.614, 130.799, 173.267, 56.5416, 179.208)
|
||||
internal_vertex_count = 26
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Node2D/Polygon2D2"]
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="Node2D/Polygon2D2"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_62768")
|
||||
}
|
||||
autoplay = "sway"
|
||||
|
||||
[connection signal="entered_from_pasture" from="." to="." method="_on_entered_from_pasture"]
|
||||
[connection signal="interacted" from="SetPiece" to="." method="_on_set_piece_interacted"]
|
||||
[connection signal="interacted" from="pasture" to="." method="_on_pasture_interacted"]
|
||||
|
||||
BIN
scenes/healers/leaves.png
LFS
Normal file
BIN
scenes/healers/leaves.png
LFS
Normal file
Binary file not shown.
34
scenes/healers/leaves.png.import
Normal file
34
scenes/healers/leaves.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cuom3fk05vw8b"
|
||||
path="res://.godot/imported/leaves.png-c5c2f66b5392e44594620b4fac9a5985.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/healers/leaves.png"
|
||||
dest_files=["res://.godot/imported/leaves.png-c5c2f66b5392e44594620b4fac9a5985.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
Reference in New Issue
Block a user