Adding Animal Animations
This commit is contained in:
parent
e1b43a0de9
commit
40a71daba8
16
Menu.tscn
16
Menu.tscn
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=17 format=3 uid="uid://b56357feudy7x"]
|
[gd_scene load_steps=18 format=3 uid="uid://b56357feudy7x"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scripts/gui/menu.gd" id="1_88exu"]
|
[ext_resource type="Script" path="res://scripts/gui/menu.gd" id="1_88exu"]
|
||||||
[ext_resource type="Texture2D" uid="uid://bkwi6yurko7gm" path="res://assets/texture/sol_gamejam_fleurs.png" id="1_t32ec"]
|
[ext_resource type="Texture2D" uid="uid://bkwi6yurko7gm" path="res://assets/texture/sol_gamejam_fleurs.png" id="1_t32ec"]
|
||||||
@ -9,13 +9,14 @@
|
|||||||
[ext_resource type="Texture2D" uid="uid://be2g1u7d8lwc8" path="res://assets/plants/herbe4.png" id="6_4qsad"]
|
[ext_resource type="Texture2D" uid="uid://be2g1u7d8lwc8" path="res://assets/plants/herbe4.png" id="6_4qsad"]
|
||||||
[ext_resource type="Texture2D" uid="uid://b8rmpitmxeobx" path="res://assets/plants/herbe8.png" id="7_xxlvc"]
|
[ext_resource type="Texture2D" uid="uid://b8rmpitmxeobx" path="res://assets/plants/herbe8.png" id="7_xxlvc"]
|
||||||
[ext_resource type="Theme" uid="uid://dnebunkx13tbr" path="res://assets/gui/Text.tres" id="8_h7a3q"]
|
[ext_resource type="Theme" uid="uid://dnebunkx13tbr" path="res://assets/gui/Text.tres" id="8_h7a3q"]
|
||||||
|
[ext_resource type="SpriteFrames" uid="uid://8ewbadpftqoh" path="res://assets/sprites/robot/walk/Robot.tres" id="9_ri4qo"]
|
||||||
|
|
||||||
[sub_resource type="Gradient" id="Gradient_ybrxb"]
|
[sub_resource type="Gradient" id="Gradient_ytbij"]
|
||||||
offsets = PackedFloat32Array(0, 0.446746, 1)
|
offsets = PackedFloat32Array(0, 0.446746, 1)
|
||||||
colors = PackedColorArray(0.82616, 0.5888, 0.92, 1, 0.6035, 0.784267, 0.85, 0.964706, 0.1472, 0.92, 0.70104, 0)
|
colors = PackedColorArray(0.82616, 0.5888, 0.92, 1, 0.6035, 0.784267, 0.85, 0.964706, 0.1472, 0.92, 0.70104, 0)
|
||||||
|
|
||||||
[sub_resource type="GradientTexture2D" id="GradientTexture2D_h0k83"]
|
[sub_resource type="GradientTexture2D" id="GradientTexture2D_h0k83"]
|
||||||
gradient = SubResource("Gradient_ybrxb")
|
gradient = SubResource("Gradient_ytbij")
|
||||||
fill = 1
|
fill = 1
|
||||||
fill_from = Vector2(0.5, 0.491453)
|
fill_from = Vector2(0.5, 0.491453)
|
||||||
fill_to = Vector2(0.538462, 0.175214)
|
fill_to = Vector2(0.538462, 0.175214)
|
||||||
@ -173,6 +174,13 @@ position = Vector2(766, 286)
|
|||||||
scale = Vector2(0.385833, 0.385833)
|
scale = Vector2(0.385833, 0.385833)
|
||||||
texture = ExtResource("3_xkq6i")
|
texture = ExtResource("3_xkq6i")
|
||||||
|
|
||||||
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||||
|
position = Vector2(616, 312)
|
||||||
|
scale = Vector2(0.0855469, 0.0855469)
|
||||||
|
sprite_frames = ExtResource("9_ri4qo")
|
||||||
|
animation = &"Walk"
|
||||||
|
autoplay = "Walk"
|
||||||
|
|
||||||
[node name="Evolution2_3" type="Sprite2D" parent="."]
|
[node name="Evolution2_3" type="Sprite2D" parent="."]
|
||||||
position = Vector2(570, 485)
|
position = Vector2(570, 485)
|
||||||
scale = Vector2(0.242, 0.242)
|
scale = Vector2(0.242, 0.242)
|
||||||
@ -247,6 +255,6 @@ layout_mode = 2
|
|||||||
size_flags_horizontal = 0
|
size_flags_horizontal = 0
|
||||||
size_flags_vertical = 0
|
size_flags_vertical = 0
|
||||||
theme = ExtResource("8_h7a3q")
|
theme = ExtResource("8_h7a3q")
|
||||||
text = "Art : Lunarde and Mimilefleury
|
text = "Art : Lunarde and Mimillefleury
|
||||||
Development/GD : Zink and Altaezio
|
Development/GD : Zink and Altaezio
|
||||||
Music : Nilou"
|
Music : Nilou"
|
||||||
|
|||||||
202
assets/sprites/robot/walk/Robot.tres
Normal file
202
assets/sprites/robot/walk/Robot.tres
Normal file
@ -0,0 +1,202 @@
|
|||||||
|
[gd_resource type="SpriteFrames" load_steps=49 format=3 uid="uid://8ewbadpftqoh"]
|
||||||
|
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dqogq148ksscp" path="res://assets/sprites/robot/walk/frame_01.png" id="1_jn0lj"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bfa2scq8koxgu" path="res://assets/sprites/robot/walk/frame_02.png" id="2_gi45a"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://br566q4vj4jqn" path="res://assets/sprites/robot/walk/frame_03.png" id="3_fu3sk"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dg5g8ngohpsli" path="res://assets/sprites/robot/walk/frame_04.png" id="4_org62"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dtn1k2gws3p55" path="res://assets/sprites/robot/walk/frame_05.png" id="5_syye3"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://cqd3qsxfuqubq" path="res://assets/sprites/robot/walk/frame_06.png" id="6_q01lr"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bxjpq7l4u87q3" path="res://assets/sprites/robot/walk/frame_07.png" id="7_7u3gb"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://tvsir2eam1uv" path="res://assets/sprites/robot/walk/frame_08.png" id="8_ksrwy"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://oltq7k1efgan" path="res://assets/sprites/robot/walk/frame_09.png" id="9_u2frf"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dqnugd3aydemp" path="res://assets/sprites/robot/walk/frame_10.png" id="10_p2y4u"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://cla6qucn8wkke" path="res://assets/sprites/robot/walk/frame_11.png" id="11_s3rw8"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://r8mb1ja5uuj8" path="res://assets/sprites/robot/walk/frame_12.png" id="12_liuje"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://fnd6thb10qe8" path="res://assets/sprites/robot/walk/frame_13.png" id="13_cdcf5"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://cxy830wne2u1l" path="res://assets/sprites/robot/walk/frame_14.png" id="14_2cxn4"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dbr5hj6lq8boy" path="res://assets/sprites/robot/walk/frame_15.png" id="15_kangd"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://xsletl3a876r" path="res://assets/sprites/robot/walk/frame_16.png" id="16_vd42o"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://4t2oumpsj6bo" path="res://assets/sprites/robot/walk/frame_17.png" id="17_2j4vn"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bgosucg1kxqqj" path="res://assets/sprites/robot/walk/frame_18.png" id="18_bfunp"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://cd6fj10hn5lta" path="res://assets/sprites/robot/walk/frame_19.png" id="19_gilrc"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://oy722ulh0ebr" path="res://assets/sprites/robot/walk/frame_20.png" id="20_ignru"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://c6phh6j5054kv" path="res://assets/sprites/robot/walk/frame_21.png" id="21_prcrl"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://ciqvln088lhf1" path="res://assets/sprites/robot/walk/frame_22.png" id="22_wtgfc"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://b0288h0jqptb4" path="res://assets/sprites/robot/walk/frame_23.png" id="23_lpygw"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://b1cmvpl681jea" path="res://assets/sprites/robot/walk/frame_24.png" id="24_surr1"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://cphch528raebu" path="res://assets/sprites/robot/walk/frame_25.png" id="25_cfhh1"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dlcxuqayktjlk" path="res://assets/sprites/robot/walk/frame_26.png" id="26_5aigw"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dlufxlw7brr14" path="res://assets/sprites/robot/walk/frame_27.png" id="27_suiul"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dlojmfwcurswa" path="res://assets/sprites/robot/walk/frame_28.png" id="28_pgn3a"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://u0sruo8m8vos" path="res://assets/sprites/robot/walk/frame_29.png" id="29_n8nba"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bo410ydt6q4x7" path="res://assets/sprites/robot/walk/frame_30.png" id="30_6mcmx"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dun1fcnsu0pa1" path="res://assets/sprites/robot/walk/frame_31.png" id="31_rybld"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dvu6yjj8depcm" path="res://assets/sprites/robot/walk/frame_32.png" id="32_7dg5o"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://c84w2csenypx6" path="res://assets/sprites/robot/walk/frame_33.png" id="33_gro32"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://vxv67hcqbsac" path="res://assets/sprites/robot/walk/frame_34.png" id="34_8kr5t"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://513e3wjsss7" path="res://assets/sprites/robot/walk/frame_35.png" id="35_uvhwd"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bpwbm4ns81umr" path="res://assets/sprites/robot/walk/frame_36.png" id="36_8q2jv"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://cfbmn1c6q2yfw" path="res://assets/sprites/robot/walk/frame_37.png" id="37_831ux"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bxlkh8l56862e" path="res://assets/sprites/robot/walk/frame_38.png" id="38_laeqy"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://85vh5gi2kaau" path="res://assets/sprites/robot/walk/frame_39.png" id="39_dhurt"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://1ayvjcmeai7a" path="res://assets/sprites/robot/walk/frame_40.png" id="40_pxfly"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://roeoqsjwtg34" path="res://assets/sprites/robot/walk/frame_41.png" id="41_ps4hv"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://ehiqpwpw4k6r" path="res://assets/sprites/robot/walk/frame_42.png" id="42_iyd47"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bthb6inxjxtdm" path="res://assets/sprites/robot/walk/frame_43.png" id="43_a18px"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://ex1p7s6d2wxa" path="res://assets/sprites/robot/walk/frame_44.png" id="44_606af"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://c63d4s3g6yima" path="res://assets/sprites/robot/walk/frame_45.png" id="45_enpmt"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://btfc2tuopxu6s" path="res://assets/sprites/robot/walk/frame_46.png" id="46_564ia"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bhqv1eipx5hv1" path="res://assets/sprites/robot/walk/frame_47.png" id="47_5dl2l"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://do57i0kkqu2pc" path="res://assets/sprites/robot/walk/frame_48.png" id="48_broqa"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
animations = [{
|
||||||
|
"frames": [{
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("1_jn0lj")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("2_gi45a")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("3_fu3sk")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("4_org62")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("5_syye3")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("6_q01lr")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("7_7u3gb")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("8_ksrwy")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("9_u2frf")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("10_p2y4u")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("11_s3rw8")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("12_liuje")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("13_cdcf5")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("14_2cxn4")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("15_kangd")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("16_vd42o")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("17_2j4vn")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("18_bfunp")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("19_gilrc")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("20_ignru")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("21_prcrl")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("22_wtgfc")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("23_lpygw")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("24_surr1")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("25_cfhh1")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("26_5aigw")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("27_suiul")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("28_pgn3a")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("29_n8nba")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("30_6mcmx")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("31_rybld")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("32_7dg5o")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("33_gro32")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("34_8kr5t")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("35_uvhwd")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("36_8q2jv")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("37_831ux")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("38_laeqy")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("39_dhurt")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("40_pxfly")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("41_ps4hv")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("42_iyd47")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("43_a18px")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("44_606af")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("45_enpmt")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("46_564ia")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("47_5dl2l")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": ExtResource("48_broqa")
|
||||||
|
}],
|
||||||
|
"loop": true,
|
||||||
|
"name": &"Walk",
|
||||||
|
"speed": 20.0
|
||||||
|
}]
|
||||||
@ -1,15 +1,317 @@
|
|||||||
[gd_scene load_steps=4 format=3 uid="uid://cj457q2fx5mim"]
|
[gd_scene load_steps=13 format=3 uid="uid://byv2a5d0n1538"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scripts/animal.gd" id="1_bjim0"]
|
[ext_resource type="Script" path="res://scripts/animal.gd" id="1_bjim0"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cxbv1inffa2bq" path="res://assets/plants/abre1.png" id="2_n8edq"]
|
[ext_resource type="Texture2D" uid="uid://cxbv1inffa2bq" path="res://assets/plants/abre1.png" id="2_n8edq"]
|
||||||
|
[ext_resource type="Theme" uid="uid://dnebunkx13tbr" path="res://assets/gui/Text.tres" id="3_lefgl"]
|
||||||
|
|
||||||
[sub_resource type="CircleShape2D" id="CircleShape2D_5dvar"]
|
[sub_resource type="CircleShape2D" id="CircleShape2D_5dvar"]
|
||||||
radius = 599.083
|
radius = 599.083
|
||||||
|
|
||||||
|
[sub_resource type="Animation" id="Animation_6wgo4"]
|
||||||
|
resource_name = "Finished"
|
||||||
|
tracks/0/type = "value"
|
||||||
|
tracks/0/imported = false
|
||||||
|
tracks/0/enabled = true
|
||||||
|
tracks/0/path = NodePath("Fées/Fée:position")
|
||||||
|
tracks/0/interp = 2
|
||||||
|
tracks/0/loop_wrap = true
|
||||||
|
tracks/0/keys = {
|
||||||
|
"times": PackedFloat32Array(0, 0.433333, 0.733333),
|
||||||
|
"transitions": PackedFloat32Array(1, 1, 1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Vector2(-15, -21), Vector2(64, -169), Vector2(-24, -362)]
|
||||||
|
}
|
||||||
|
tracks/1/type = "value"
|
||||||
|
tracks/1/imported = false
|
||||||
|
tracks/1/enabled = true
|
||||||
|
tracks/1/path = NodePath("Fées/Fée2:position")
|
||||||
|
tracks/1/interp = 2
|
||||||
|
tracks/1/loop_wrap = true
|
||||||
|
tracks/1/keys = {
|
||||||
|
"times": PackedFloat32Array(0.0666667, 0.533333, 0.966667),
|
||||||
|
"transitions": PackedFloat32Array(1, 1, 1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Vector2(-15, -23), Vector2(-23, -390), Vector2(126, -635)]
|
||||||
|
}
|
||||||
|
tracks/2/type = "value"
|
||||||
|
tracks/2/imported = false
|
||||||
|
tracks/2/enabled = true
|
||||||
|
tracks/2/path = NodePath("Fées/Fée3:position")
|
||||||
|
tracks/2/interp = 2
|
||||||
|
tracks/2/loop_wrap = true
|
||||||
|
tracks/2/keys = {
|
||||||
|
"times": PackedFloat32Array(0.0333333, 0.433333, 0.866667),
|
||||||
|
"transitions": PackedFloat32Array(1, 1, 1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Vector2(-17, -24), Vector2(201, -146), Vector2(291, -461)]
|
||||||
|
}
|
||||||
|
tracks/3/type = "value"
|
||||||
|
tracks/3/imported = false
|
||||||
|
tracks/3/enabled = true
|
||||||
|
tracks/3/path = NodePath("Fées/Fée4:position")
|
||||||
|
tracks/3/interp = 2
|
||||||
|
tracks/3/loop_wrap = true
|
||||||
|
tracks/3/keys = {
|
||||||
|
"times": PackedFloat32Array(0.1, 0.4, 0.933333),
|
||||||
|
"transitions": PackedFloat32Array(1, 1, 1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Vector2(-18, -20), Vector2(166, -45), Vector2(392.121, -288.879)]
|
||||||
|
}
|
||||||
|
tracks/4/type = "value"
|
||||||
|
tracks/4/imported = false
|
||||||
|
tracks/4/enabled = true
|
||||||
|
tracks/4/path = NodePath("Fées:visible")
|
||||||
|
tracks/4/interp = 1
|
||||||
|
tracks/4/loop_wrap = true
|
||||||
|
tracks/4/keys = {
|
||||||
|
"times": PackedFloat32Array(0),
|
||||||
|
"transitions": PackedFloat32Array(1),
|
||||||
|
"update": 1,
|
||||||
|
"values": [true]
|
||||||
|
}
|
||||||
|
tracks/5/type = "value"
|
||||||
|
tracks/5/imported = false
|
||||||
|
tracks/5/enabled = true
|
||||||
|
tracks/5/path = NodePath("Sprite2D:modulate")
|
||||||
|
tracks/5/interp = 2
|
||||||
|
tracks/5/loop_wrap = true
|
||||||
|
tracks/5/keys = {
|
||||||
|
"times": PackedFloat32Array(0, 1),
|
||||||
|
"transitions": PackedFloat32Array(1, 1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Color(0.529067, 0.529067, 0.529067, 1), Color(1, 1, 1, 1)]
|
||||||
|
}
|
||||||
|
tracks/6/type = "value"
|
||||||
|
tracks/6/imported = false
|
||||||
|
tracks/6/enabled = true
|
||||||
|
tracks/6/path = NodePath("Sprite2D:scale")
|
||||||
|
tracks/6/interp = 2
|
||||||
|
tracks/6/loop_wrap = true
|
||||||
|
tracks/6/keys = {
|
||||||
|
"times": PackedFloat32Array(0, 0.233333, 0.4),
|
||||||
|
"transitions": PackedFloat32Array(1, 1, 1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Vector2(0.7, 0.7), Vector2(0.6, 0.9), Vector2(0.7, 0.7)]
|
||||||
|
}
|
||||||
|
|
||||||
|
[sub_resource type="Animation" id="Animation_had0j"]
|
||||||
|
length = 0.001
|
||||||
|
tracks/0/type = "value"
|
||||||
|
tracks/0/imported = false
|
||||||
|
tracks/0/enabled = true
|
||||||
|
tracks/0/path = NodePath("Fées/Fée:position")
|
||||||
|
tracks/0/interp = 1
|
||||||
|
tracks/0/loop_wrap = true
|
||||||
|
tracks/0/keys = {
|
||||||
|
"times": PackedFloat32Array(0),
|
||||||
|
"transitions": PackedFloat32Array(1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Vector2(-24, -362)]
|
||||||
|
}
|
||||||
|
tracks/1/type = "value"
|
||||||
|
tracks/1/imported = false
|
||||||
|
tracks/1/enabled = true
|
||||||
|
tracks/1/path = NodePath("Fées/Fée2:position")
|
||||||
|
tracks/1/interp = 1
|
||||||
|
tracks/1/loop_wrap = true
|
||||||
|
tracks/1/keys = {
|
||||||
|
"times": PackedFloat32Array(0),
|
||||||
|
"transitions": PackedFloat32Array(1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Vector2(126, -635)]
|
||||||
|
}
|
||||||
|
tracks/2/type = "value"
|
||||||
|
tracks/2/imported = false
|
||||||
|
tracks/2/enabled = true
|
||||||
|
tracks/2/path = NodePath("Fées/Fée3:position")
|
||||||
|
tracks/2/interp = 1
|
||||||
|
tracks/2/loop_wrap = true
|
||||||
|
tracks/2/keys = {
|
||||||
|
"times": PackedFloat32Array(0),
|
||||||
|
"transitions": PackedFloat32Array(1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Vector2(291, -461)]
|
||||||
|
}
|
||||||
|
tracks/3/type = "value"
|
||||||
|
tracks/3/imported = false
|
||||||
|
tracks/3/enabled = true
|
||||||
|
tracks/3/path = NodePath("Fées/Fée4:position")
|
||||||
|
tracks/3/interp = 1
|
||||||
|
tracks/3/loop_wrap = true
|
||||||
|
tracks/3/keys = {
|
||||||
|
"times": PackedFloat32Array(0),
|
||||||
|
"transitions": PackedFloat32Array(1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Vector2(392.121, -288.879)]
|
||||||
|
}
|
||||||
|
tracks/4/type = "value"
|
||||||
|
tracks/4/imported = false
|
||||||
|
tracks/4/enabled = true
|
||||||
|
tracks/4/path = NodePath("Fées:visible")
|
||||||
|
tracks/4/interp = 1
|
||||||
|
tracks/4/loop_wrap = true
|
||||||
|
tracks/4/keys = {
|
||||||
|
"times": PackedFloat32Array(0),
|
||||||
|
"transitions": PackedFloat32Array(1),
|
||||||
|
"update": 1,
|
||||||
|
"values": [true]
|
||||||
|
}
|
||||||
|
tracks/5/type = "value"
|
||||||
|
tracks/5/imported = false
|
||||||
|
tracks/5/enabled = true
|
||||||
|
tracks/5/path = NodePath("Sprite2D:modulate")
|
||||||
|
tracks/5/interp = 1
|
||||||
|
tracks/5/loop_wrap = true
|
||||||
|
tracks/5/keys = {
|
||||||
|
"times": PackedFloat32Array(0),
|
||||||
|
"transitions": PackedFloat32Array(1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Color(0.529067, 0.529067, 0.529067, 1)]
|
||||||
|
}
|
||||||
|
tracks/6/type = "value"
|
||||||
|
tracks/6/imported = false
|
||||||
|
tracks/6/enabled = true
|
||||||
|
tracks/6/path = NodePath("Sprite2D:scale")
|
||||||
|
tracks/6/interp = 1
|
||||||
|
tracks/6/loop_wrap = true
|
||||||
|
tracks/6/keys = {
|
||||||
|
"times": PackedFloat32Array(0),
|
||||||
|
"transitions": PackedFloat32Array(1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Vector2(0.7, 0.7)]
|
||||||
|
}
|
||||||
|
|
||||||
|
[sub_resource type="Animation" id="Animation_qi2vx"]
|
||||||
|
resource_name = "Closed"
|
||||||
|
length = 0.1
|
||||||
|
tracks/0/type = "value"
|
||||||
|
tracks/0/imported = false
|
||||||
|
tracks/0/enabled = true
|
||||||
|
tracks/0/path = NodePath("Fées:visible")
|
||||||
|
tracks/0/interp = 1
|
||||||
|
tracks/0/loop_wrap = true
|
||||||
|
tracks/0/keys = {
|
||||||
|
"times": PackedFloat32Array(0),
|
||||||
|
"transitions": PackedFloat32Array(1),
|
||||||
|
"update": 1,
|
||||||
|
"values": [false]
|
||||||
|
}
|
||||||
|
tracks/1/type = "value"
|
||||||
|
tracks/1/imported = false
|
||||||
|
tracks/1/enabled = true
|
||||||
|
tracks/1/path = NodePath("Sprite2D:modulate")
|
||||||
|
tracks/1/interp = 2
|
||||||
|
tracks/1/loop_wrap = true
|
||||||
|
tracks/1/keys = {
|
||||||
|
"times": PackedFloat32Array(0),
|
||||||
|
"transitions": PackedFloat32Array(1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Color(0.529067, 0.529067, 0.529067, 1)]
|
||||||
|
}
|
||||||
|
|
||||||
|
[sub_resource type="Animation" id="Animation_qxluk"]
|
||||||
|
resource_name = "Open"
|
||||||
|
length = 4.0
|
||||||
|
loop_mode = 1
|
||||||
|
tracks/0/type = "value"
|
||||||
|
tracks/0/imported = false
|
||||||
|
tracks/0/enabled = true
|
||||||
|
tracks/0/path = NodePath("Fées/Fée:position")
|
||||||
|
tracks/0/interp = 2
|
||||||
|
tracks/0/loop_wrap = true
|
||||||
|
tracks/0/keys = {
|
||||||
|
"times": PackedFloat32Array(0, 1.36667, 3.03333),
|
||||||
|
"transitions": PackedFloat32Array(1, 1, 1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Vector2(-24, -362), Vector2(80, -373), Vector2(11, -442)]
|
||||||
|
}
|
||||||
|
tracks/1/type = "value"
|
||||||
|
tracks/1/imported = false
|
||||||
|
tracks/1/enabled = true
|
||||||
|
tracks/1/path = NodePath("Fées/Fée2:position")
|
||||||
|
tracks/1/interp = 2
|
||||||
|
tracks/1/loop_wrap = true
|
||||||
|
tracks/1/keys = {
|
||||||
|
"times": PackedFloat32Array(0, 1.36667, 3.03333),
|
||||||
|
"transitions": PackedFloat32Array(1, 1, 1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Vector2(126, -635), Vector2(190, -618), Vector2(145, -586)]
|
||||||
|
}
|
||||||
|
tracks/2/type = "value"
|
||||||
|
tracks/2/imported = false
|
||||||
|
tracks/2/enabled = true
|
||||||
|
tracks/2/path = NodePath("Fées/Fée3:position")
|
||||||
|
tracks/2/interp = 2
|
||||||
|
tracks/2/loop_wrap = true
|
||||||
|
tracks/2/keys = {
|
||||||
|
"times": PackedFloat32Array(0, 1.36667, 3.03333),
|
||||||
|
"transitions": PackedFloat32Array(1, 1, 1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Vector2(291, -461), Vector2(251, -548), Vector2(337, -500)]
|
||||||
|
}
|
||||||
|
tracks/3/type = "value"
|
||||||
|
tracks/3/imported = false
|
||||||
|
tracks/3/enabled = true
|
||||||
|
tracks/3/path = NodePath("Fées/Fée4:position")
|
||||||
|
tracks/3/interp = 2
|
||||||
|
tracks/3/loop_wrap = true
|
||||||
|
tracks/3/keys = {
|
||||||
|
"times": PackedFloat32Array(0, 1.36667, 3.03333),
|
||||||
|
"transitions": PackedFloat32Array(1, 1, 1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Vector2(392.121, -288.879), Vector2(473, -329), Vector2(377, -354)]
|
||||||
|
}
|
||||||
|
tracks/4/type = "value"
|
||||||
|
tracks/4/imported = false
|
||||||
|
tracks/4/enabled = true
|
||||||
|
tracks/4/path = NodePath("Fées:visible")
|
||||||
|
tracks/4/interp = 1
|
||||||
|
tracks/4/loop_wrap = true
|
||||||
|
tracks/4/keys = {
|
||||||
|
"times": PackedFloat32Array(0),
|
||||||
|
"transitions": PackedFloat32Array(1),
|
||||||
|
"update": 1,
|
||||||
|
"values": [true]
|
||||||
|
}
|
||||||
|
tracks/5/type = "value"
|
||||||
|
tracks/5/imported = false
|
||||||
|
tracks/5/enabled = true
|
||||||
|
tracks/5/path = NodePath("Sprite2D:modulate")
|
||||||
|
tracks/5/interp = 2
|
||||||
|
tracks/5/loop_wrap = true
|
||||||
|
tracks/5/keys = {
|
||||||
|
"times": PackedFloat32Array(0),
|
||||||
|
"transitions": PackedFloat32Array(1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Color(1, 1, 1, 1)]
|
||||||
|
}
|
||||||
|
|
||||||
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_0kfkq"]
|
||||||
|
_data = {
|
||||||
|
"Closed": SubResource("Animation_qi2vx"),
|
||||||
|
"Finished": SubResource("Animation_6wgo4"),
|
||||||
|
"Open": SubResource("Animation_qxluk"),
|
||||||
|
"RESET": SubResource("Animation_had0j")
|
||||||
|
}
|
||||||
|
|
||||||
|
[sub_resource type="Gradient" id="Gradient_ybrxb"]
|
||||||
|
offsets = PackedFloat32Array(0, 0.446746, 1)
|
||||||
|
colors = PackedColorArray(0.82616, 0.5888, 0.92, 1, 0.6035, 0.784267, 0.85, 0.964706, 0.1472, 0.92, 0.70104, 0)
|
||||||
|
|
||||||
|
[sub_resource type="GradientTexture2D" id="GradientTexture2D_7pg56"]
|
||||||
|
gradient = SubResource("Gradient_ybrxb")
|
||||||
|
fill = 1
|
||||||
|
fill_from = Vector2(0.5, 0.491453)
|
||||||
|
fill_to = Vector2(0.538462, 0.175214)
|
||||||
|
|
||||||
|
[sub_resource type="LabelSettings" id="LabelSettings_vg5lt"]
|
||||||
|
font_size = 21
|
||||||
|
|
||||||
[node name="Animal" type="Node2D"]
|
[node name="Animal" type="Node2D"]
|
||||||
script = ExtResource("1_bjim0")
|
script = ExtResource("1_bjim0")
|
||||||
|
|
||||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||||
|
modulate = Color(0.529067, 0.529067, 0.529067, 1)
|
||||||
scale = Vector2(0.7, 0.7)
|
scale = Vector2(0.7, 0.7)
|
||||||
texture = ExtResource("2_n8edq")
|
texture = ExtResource("2_n8edq")
|
||||||
offset = Vector2(170, -550)
|
offset = Vector2(170, -550)
|
||||||
@ -20,4 +322,40 @@ collision_layer = 2
|
|||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||||
shape = SubResource("CircleShape2D_5dvar")
|
shape = SubResource("CircleShape2D_5dvar")
|
||||||
|
|
||||||
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||||
|
libraries = {
|
||||||
|
"": SubResource("AnimationLibrary_0kfkq")
|
||||||
|
}
|
||||||
|
|
||||||
|
[node name="Fées" type="Node2D" parent="."]
|
||||||
|
|
||||||
|
[node name="Fée" type="Sprite2D" parent="Fées"]
|
||||||
|
position = Vector2(-24, -362)
|
||||||
|
scale = Vector2(0.765625, 0.765625)
|
||||||
|
texture = SubResource("GradientTexture2D_7pg56")
|
||||||
|
|
||||||
|
[node name="Fée2" type="Sprite2D" parent="Fées"]
|
||||||
|
position = Vector2(126, -635)
|
||||||
|
scale = Vector2(0.586182, 0.586182)
|
||||||
|
texture = SubResource("GradientTexture2D_7pg56")
|
||||||
|
|
||||||
|
[node name="Fée3" type="Sprite2D" parent="Fées"]
|
||||||
|
position = Vector2(291, -461)
|
||||||
|
scale = Vector2(0.586182, 0.586182)
|
||||||
|
texture = SubResource("GradientTexture2D_7pg56")
|
||||||
|
|
||||||
|
[node name="Fée4" type="Sprite2D" parent="Fées"]
|
||||||
|
position = Vector2(392.121, -288.879)
|
||||||
|
scale = Vector2(0.964966, 0.964966)
|
||||||
|
texture = SubResource("GradientTexture2D_7pg56")
|
||||||
|
|
||||||
|
[node name="PlantsCount" type="Label" parent="."]
|
||||||
|
offset_left = -15.0
|
||||||
|
offset_top = -148.0
|
||||||
|
offset_right = 45.0
|
||||||
|
offset_bottom = -118.0
|
||||||
|
theme = ExtResource("3_lefgl")
|
||||||
|
text = "100%"
|
||||||
|
label_settings = SubResource("LabelSettings_vg5lt")
|
||||||
|
|
||||||
[connection signal="area_entered" from="Area2D" to="." method="_on_area_2d_area_entered"]
|
[connection signal="area_entered" from="Area2D" to="." method="_on_area_2d_area_entered"]
|
||||||
|
|||||||
@ -1,216 +1,17 @@
|
|||||||
[gd_scene load_steps=54 format=3 uid="uid://bp3c63qgkmi6o"]
|
[gd_scene load_steps=6 format=3 uid="uid://bp3c63qgkmi6o"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scripts/robot.gd" id="1_4eix8"]
|
[ext_resource type="Script" path="res://scripts/robot.gd" id="1_4eix8"]
|
||||||
|
[ext_resource type="SpriteFrames" uid="uid://8ewbadpftqoh" path="res://assets/sprites/robot/walk/Robot.tres" id="2_k06te"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dyuqq8v1tckrv" path="res://objects/Wanderer.tscn" id="2_mhqh4"]
|
[ext_resource type="PackedScene" uid="uid://dyuqq8v1tckrv" path="res://objects/Wanderer.tscn" id="2_mhqh4"]
|
||||||
[ext_resource type="Texture2D" uid="uid://dqogq148ksscp" path="res://assets/sprites/robot/walk/frame_01.png" id="2_rv3ka"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://bfa2scq8koxgu" path="res://assets/sprites/robot/walk/frame_02.png" id="3_mlsl2"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://br566q4vj4jqn" path="res://assets/sprites/robot/walk/frame_03.png" id="4_c2buj"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://dg5g8ngohpsli" path="res://assets/sprites/robot/walk/frame_04.png" id="5_cu8uu"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://dtn1k2gws3p55" path="res://assets/sprites/robot/walk/frame_05.png" id="6_l574v"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://cqd3qsxfuqubq" path="res://assets/sprites/robot/walk/frame_06.png" id="7_4gei6"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://bxjpq7l4u87q3" path="res://assets/sprites/robot/walk/frame_07.png" id="8_fk2hc"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://tvsir2eam1uv" path="res://assets/sprites/robot/walk/frame_08.png" id="9_hws6k"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://oltq7k1efgan" path="res://assets/sprites/robot/walk/frame_09.png" id="10_dr5xk"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://dqnugd3aydemp" path="res://assets/sprites/robot/walk/frame_10.png" id="11_btr00"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://cla6qucn8wkke" path="res://assets/sprites/robot/walk/frame_11.png" id="12_l0ryk"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://r8mb1ja5uuj8" path="res://assets/sprites/robot/walk/frame_12.png" id="13_11cio"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://fnd6thb10qe8" path="res://assets/sprites/robot/walk/frame_13.png" id="14_qyarh"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://cxy830wne2u1l" path="res://assets/sprites/robot/walk/frame_14.png" id="15_aauwx"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://dbr5hj6lq8boy" path="res://assets/sprites/robot/walk/frame_15.png" id="16_l7aj2"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://xsletl3a876r" path="res://assets/sprites/robot/walk/frame_16.png" id="17_2qqid"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://4t2oumpsj6bo" path="res://assets/sprites/robot/walk/frame_17.png" id="18_1v67n"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://bgosucg1kxqqj" path="res://assets/sprites/robot/walk/frame_18.png" id="19_fj1h5"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://cd6fj10hn5lta" path="res://assets/sprites/robot/walk/frame_19.png" id="20_fp8gp"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://oy722ulh0ebr" path="res://assets/sprites/robot/walk/frame_20.png" id="21_e38p7"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://c6phh6j5054kv" path="res://assets/sprites/robot/walk/frame_21.png" id="22_0t6pl"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://ciqvln088lhf1" path="res://assets/sprites/robot/walk/frame_22.png" id="23_1qfil"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://b0288h0jqptb4" path="res://assets/sprites/robot/walk/frame_23.png" id="24_6k3vj"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://b1cmvpl681jea" path="res://assets/sprites/robot/walk/frame_24.png" id="25_fut2d"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://cphch528raebu" path="res://assets/sprites/robot/walk/frame_25.png" id="26_5hba5"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://dlcxuqayktjlk" path="res://assets/sprites/robot/walk/frame_26.png" id="27_w2hl4"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://dlufxlw7brr14" path="res://assets/sprites/robot/walk/frame_27.png" id="28_fvf6h"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://dlojmfwcurswa" path="res://assets/sprites/robot/walk/frame_28.png" id="29_822yc"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://u0sruo8m8vos" path="res://assets/sprites/robot/walk/frame_29.png" id="30_mvtt0"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://bo410ydt6q4x7" path="res://assets/sprites/robot/walk/frame_30.png" id="31_6cqxa"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://dun1fcnsu0pa1" path="res://assets/sprites/robot/walk/frame_31.png" id="32_4toba"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://dvu6yjj8depcm" path="res://assets/sprites/robot/walk/frame_32.png" id="33_4p8f3"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://c84w2csenypx6" path="res://assets/sprites/robot/walk/frame_33.png" id="34_bgwwl"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://vxv67hcqbsac" path="res://assets/sprites/robot/walk/frame_34.png" id="35_kx777"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://513e3wjsss7" path="res://assets/sprites/robot/walk/frame_35.png" id="36_fhnkg"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://bpwbm4ns81umr" path="res://assets/sprites/robot/walk/frame_36.png" id="37_s66ja"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://cfbmn1c6q2yfw" path="res://assets/sprites/robot/walk/frame_37.png" id="38_cw83a"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://bxlkh8l56862e" path="res://assets/sprites/robot/walk/frame_38.png" id="39_3hqgg"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://85vh5gi2kaau" path="res://assets/sprites/robot/walk/frame_39.png" id="40_wpolh"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://1ayvjcmeai7a" path="res://assets/sprites/robot/walk/frame_40.png" id="41_fiu5x"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://roeoqsjwtg34" path="res://assets/sprites/robot/walk/frame_41.png" id="42_ouf3a"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://ehiqpwpw4k6r" path="res://assets/sprites/robot/walk/frame_42.png" id="43_a6oc6"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://bthb6inxjxtdm" path="res://assets/sprites/robot/walk/frame_43.png" id="44_a4ewu"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://ex1p7s6d2wxa" path="res://assets/sprites/robot/walk/frame_44.png" id="45_vve5j"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://c63d4s3g6yima" path="res://assets/sprites/robot/walk/frame_45.png" id="46_gomhg"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://btfc2tuopxu6s" path="res://assets/sprites/robot/walk/frame_46.png" id="47_wvwh5"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://bhqv1eipx5hv1" path="res://assets/sprites/robot/walk/frame_47.png" id="48_772t7"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://do57i0kkqu2pc" path="res://assets/sprites/robot/walk/frame_48.png" id="49_5u1cp"]
|
|
||||||
[ext_resource type="AudioStream" uid="uid://cb4ouq4awiyri" path="res://assets/sounds/Actions/Planter.mp3" id="51_f30v0"]
|
[ext_resource type="AudioStream" uid="uid://cb4ouq4awiyri" path="res://assets/sounds/Actions/Planter.mp3" id="51_f30v0"]
|
||||||
[ext_resource type="AudioStream" uid="uid://c1jt77fyb2lx4" path="res://assets/sounds/Actions/Déplacement.mp3" id="52_xvi3g"]
|
[ext_resource type="AudioStream" uid="uid://c1jt77fyb2lx4" path="res://assets/sounds/Actions/Déplacement.mp3" id="52_xvi3g"]
|
||||||
|
|
||||||
[sub_resource type="SpriteFrames" id="SpriteFrames_jlahh"]
|
|
||||||
animations = [{
|
|
||||||
"frames": [{
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("2_rv3ka")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("3_mlsl2")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("4_c2buj")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("5_cu8uu")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("6_l574v")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("7_4gei6")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("8_fk2hc")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("9_hws6k")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("10_dr5xk")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("11_btr00")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("12_l0ryk")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("13_11cio")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("14_qyarh")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("15_aauwx")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("16_l7aj2")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("17_2qqid")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("18_1v67n")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("19_fj1h5")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("20_fp8gp")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("21_e38p7")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("22_0t6pl")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("23_1qfil")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("24_6k3vj")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("25_fut2d")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("26_5hba5")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("27_w2hl4")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("28_fvf6h")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("29_822yc")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("30_mvtt0")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("31_6cqxa")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("32_4toba")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("33_4p8f3")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("34_bgwwl")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("35_kx777")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("36_fhnkg")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("37_s66ja")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("38_cw83a")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("39_3hqgg")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("40_wpolh")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("41_fiu5x")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("42_ouf3a")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("43_a6oc6")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("44_a4ewu")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("45_vve5j")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("46_gomhg")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("47_wvwh5")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("48_772t7")
|
|
||||||
}, {
|
|
||||||
"duration": 1.0,
|
|
||||||
"texture": ExtResource("49_5u1cp")
|
|
||||||
}],
|
|
||||||
"loop": true,
|
|
||||||
"name": &"Walk",
|
|
||||||
"speed": 20.0
|
|
||||||
}]
|
|
||||||
|
|
||||||
[node name="Robot" type="Node2D"]
|
[node name="Robot" type="Node2D"]
|
||||||
script = ExtResource("1_4eix8")
|
script = ExtResource("1_4eix8")
|
||||||
|
|
||||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||||
scale = Vector2(0.0890625, 0.0890625)
|
scale = Vector2(0.0890625, 0.0890625)
|
||||||
sprite_frames = SubResource("SpriteFrames_jlahh")
|
sprite_frames = ExtResource("2_k06te")
|
||||||
animation = &"Walk"
|
animation = &"Walk"
|
||||||
autoplay = "Walk"
|
autoplay = "Walk"
|
||||||
frame_progress = 0.127315
|
frame_progress = 0.127315
|
||||||
|
|||||||
@ -11,7 +11,7 @@ config_version=5
|
|||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="MiniJam166"
|
config/name="MiniJam166"
|
||||||
run/main_scene="res://Game.tscn"
|
run/main_scene="res://Menu.tscn"
|
||||||
config/features=PackedStringArray("4.3", "Forward Plus")
|
config/features=PackedStringArray("4.3", "Forward Plus")
|
||||||
config/icon="res://icon.svg"
|
config/icon="res://icon.svg"
|
||||||
|
|
||||||
|
|||||||
@ -7,6 +7,10 @@ signal liberated
|
|||||||
var is_liberated := false
|
var is_liberated := false
|
||||||
var current_plants := 0
|
var current_plants := 0
|
||||||
|
|
||||||
|
func _ready():
|
||||||
|
$AnimationPlayer.play("Closed")
|
||||||
|
update_count()
|
||||||
|
|
||||||
func _on_area_2d_area_entered(area: Area2D) -> void:
|
func _on_area_2d_area_entered(area: Area2D) -> void:
|
||||||
var plant = area.get_parent()
|
var plant = area.get_parent()
|
||||||
if plant is Plant and not liberated:
|
if plant is Plant and not liberated:
|
||||||
@ -19,13 +23,21 @@ func tracked_plant_grew():
|
|||||||
current_plants += 1
|
current_plants += 1
|
||||||
if current_plants == n_plant_needed:
|
if current_plants == n_plant_needed:
|
||||||
liberate()
|
liberate()
|
||||||
|
update_count()
|
||||||
|
|
||||||
func tracked_plant_died():
|
func tracked_plant_died():
|
||||||
if liberated:
|
if liberated:
|
||||||
return
|
return
|
||||||
current_plants -= 1
|
current_plants -= 1
|
||||||
|
update_count()
|
||||||
|
|
||||||
|
func update_count():
|
||||||
|
$PlantsCount.text = str(roundf((float(current_plants)/n_plant_needed)*100)) + "%"
|
||||||
|
|
||||||
func liberate():
|
func liberate():
|
||||||
is_liberated = true
|
is_liberated = true
|
||||||
print("Liberated !!")
|
|
||||||
liberated.emit()
|
liberated.emit()
|
||||||
|
$PlantsCount.visible = false
|
||||||
|
$AnimationPlayer.play("Finished")
|
||||||
|
await $AnimationPlayer.animation_finished
|
||||||
|
$AnimationPlayer.play("Open")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user