Contours des plantes et collisions
* nouveaux sprites avec contours pour les plantes * les sprites de plantes peuvent être aléatoirement flips * ajout de collisions aux portes
This commit is contained in:
@@ -4,12 +4,15 @@
|
||||
[ext_resource type="Texture2D" uid="uid://pltmnkqd5ut2" path="res://entities/plants/assets/sprites/seeds/grille_seeds.png" id="3_j6jm5"]
|
||||
[ext_resource type="Texture2D" uid="uid://do3wxh7k38m7u" path="res://entities/plants/assets/sprites/seed_buried_texture.png" id="3_rbgiq"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_rbgiq"]
|
||||
radius = 22.0
|
||||
height = 50.0
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wyuub"]
|
||||
atlas = ExtResource("3_j6jm5")
|
||||
region = Rect2(76, 75, 124, 135)
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_rbgiq"]
|
||||
viewport_path = NodePath("LifeTimeSprite/SubViewport")
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_rbgiq"]
|
||||
interpolation_mode = 1
|
||||
@@ -75,6 +78,18 @@ tracks/2/keys = {
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1)]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath(".:skew")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [0.0]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_j6jm5"]
|
||||
resource_name = "bump"
|
||||
@@ -120,16 +135,37 @@ tracks/1/keys = {
|
||||
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_8eofq"]
|
||||
resource_name = "player_move"
|
||||
length = 0.36666667
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:skew")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.23333333, 0.36666667),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [0.0, 0.1308996938995747, -0.1308996938995747, 0.0]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_8eofq"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_wyuub"),
|
||||
&"bump": SubResource("Animation_j6jm5"),
|
||||
&"harvest": SubResource("Animation_rbgiq")
|
||||
&"harvest": SubResource("Animation_rbgiq"),
|
||||
&"player_move": SubResource("Animation_8eofq")
|
||||
}
|
||||
|
||||
[node name="PlantSprite" type="Node2D" unique_id=1274989778]
|
||||
[node name="PlantSprite" type="Area2D" unique_id=24510929]
|
||||
script = ExtResource("1_pq8o7")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1893251777]
|
||||
position = Vector2(0, -14)
|
||||
shape = SubResource("CapsuleShape2D_rbgiq")
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="." unique_id=1693882598]
|
||||
unique_name_in_owner = true
|
||||
position = Vector2(0, -100)
|
||||
@@ -175,3 +211,5 @@ texture_progress = SubResource("GradientTexture2D_wyuub")
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1793068152]
|
||||
unique_name_in_owner = true
|
||||
libraries/ = SubResource("AnimationLibrary_8eofq")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
|
||||
Reference in New Issue
Block a user