316 lines
8.7 KiB
Plaintext
316 lines
8.7 KiB
Plaintext
[gd_scene load_steps=37 format=3 uid="uid://dv0mokf4eogm7"]
|
|
|
|
[ext_resource type="Script" path="res://princesse.gd" id="1_dkp7s"]
|
|
[ext_resource type="Texture2D" uid="uid://dr7fyh2rufsyj" path="res://sprite/princess_falling_direction.png" id="2_hholp"]
|
|
[ext_resource type="Texture2D" uid="uid://cc2vjgg2dw27g" path="res://sprite/princess_falling.png" id="3_kbaya"]
|
|
[ext_resource type="Texture2D" uid="uid://bwod37xemy88x" path="res://sprite/princess.png" id="4_iiu2b"]
|
|
[ext_resource type="Texture2D" uid="uid://b1624w7katr05" path="res://sprite/princess_jumping_impulsion.png" id="5_njcte"]
|
|
[ext_resource type="Texture2D" uid="uid://c2xtcu5ysgi7o" path="res://sprite/princess_jumping.png" id="6_srvje"]
|
|
[ext_resource type="Texture2D" uid="uid://d23lmsjrjw1mk" path="res://sprite/princess_wall_stick.png" id="7_8dix4"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_i248f"]
|
|
atlas = ExtResource("2_hholp")
|
|
region = Rect2(0, 0, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_e23c2"]
|
|
atlas = ExtResource("2_hholp")
|
|
region = Rect2(0, 50, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fyqwp"]
|
|
atlas = ExtResource("3_kbaya")
|
|
region = Rect2(0, 0, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_mxdjd"]
|
|
atlas = ExtResource("3_kbaya")
|
|
region = Rect2(0, 50, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_yxjwj"]
|
|
atlas = ExtResource("4_iiu2b")
|
|
region = Rect2(0, 0, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_yqpcg"]
|
|
atlas = ExtResource("5_njcte")
|
|
region = Rect2(0, 0, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_8yyph"]
|
|
atlas = ExtResource("5_njcte")
|
|
region = Rect2(0, 50, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ftqux"]
|
|
atlas = ExtResource("5_njcte")
|
|
region = Rect2(0, 100, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_du0hw"]
|
|
atlas = ExtResource("6_srvje")
|
|
region = Rect2(0, 0, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_gu3eg"]
|
|
atlas = ExtResource("6_srvje")
|
|
region = Rect2(0, 50, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_0nfn2"]
|
|
atlas = ExtResource("4_iiu2b")
|
|
region = Rect2(0, 50, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wo2be"]
|
|
atlas = ExtResource("4_iiu2b")
|
|
region = Rect2(0, 100, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_4j10n"]
|
|
atlas = ExtResource("4_iiu2b")
|
|
region = Rect2(0, 150, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_kwlld"]
|
|
atlas = ExtResource("4_iiu2b")
|
|
region = Rect2(0, 200, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_57mjl"]
|
|
atlas = ExtResource("4_iiu2b")
|
|
region = Rect2(0, 250, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_34pfo"]
|
|
atlas = ExtResource("7_8dix4")
|
|
region = Rect2(0, 0, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_xck10"]
|
|
atlas = ExtResource("7_8dix4")
|
|
region = Rect2(0, 50, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1qhca"]
|
|
atlas = ExtResource("7_8dix4")
|
|
region = Rect2(0, 100, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_bljfu"]
|
|
atlas = ExtResource("7_8dix4")
|
|
region = Rect2(0, 150, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fvex7"]
|
|
atlas = ExtResource("7_8dix4")
|
|
region = Rect2(0, 200, 24, 50)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qw8g6"]
|
|
atlas = ExtResource("7_8dix4")
|
|
region = Rect2(0, 250, 24, 50)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_q52wx"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_i248f")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_e23c2")
|
|
}],
|
|
"loop": true,
|
|
"name": &"falling_diagonals",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_fyqwp")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_mxdjd")
|
|
}],
|
|
"loop": true,
|
|
"name": &"falling_straight",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_yxjwj")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_yqpcg")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_8yyph")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ftqux")
|
|
}],
|
|
"loop": true,
|
|
"name": &"jump_impulsion",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_du0hw")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_gu3eg")
|
|
}],
|
|
"loop": true,
|
|
"name": &"jumping",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_yxjwj")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_0nfn2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_wo2be")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_4j10n")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_kwlld")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_57mjl")
|
|
}],
|
|
"loop": true,
|
|
"name": &"walk",
|
|
"speed": 10.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_34pfo")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_xck10")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_1qhca")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_bljfu")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_fvex7")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_qw8g6")
|
|
}],
|
|
"loop": true,
|
|
"name": &"wall_stick",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_6r7th"]
|
|
radius = 5.0
|
|
height = 50.0
|
|
|
|
[sub_resource type="Animation" id="Animation_uo4aj"]
|
|
resource_name = "death"
|
|
length = 0.5
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("AnimatedSprite2D:rotation")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0.1, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [0.0, 31.4159]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("AnimatedSprite2D:scale")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0.1, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(1, 1), Vector2(0, 0)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_hxxp0"]
|
|
_data = {
|
|
"death": SubResource("Animation_uo4aj")
|
|
}
|
|
|
|
[sub_resource type="Gradient" id="Gradient_wf4ie"]
|
|
offsets = PackedFloat32Array(0, 0.313609, 0.994083, 1)
|
|
colors = PackedColorArray(0.411765, 0.6, 0.956863, 0.105882, 0.741176, 0.839216, 0.984314, 0.219608, 0.980392, 1, 0.803922, 1, 1, 0.592157, 0.282353, 0)
|
|
|
|
[sub_resource type="GradientTexture2D" id="GradientTexture2D_t1uxd"]
|
|
gradient = SubResource("Gradient_wf4ie")
|
|
width = 1024
|
|
height = 1024
|
|
fill = 1
|
|
fill_from = Vector2(0.482759, 0.508621)
|
|
|
|
[sub_resource type="Gradient" id="Gradient_srny4"]
|
|
interpolation_mode = 2
|
|
offsets = PackedFloat32Array(0, 0.0828402, 0.698225)
|
|
colors = PackedColorArray(0.61339, 0.61339, 0.61339, 1, 0.47788, 0.47788, 0.47788, 1, 0, 0, 0, 1)
|
|
|
|
[sub_resource type="GradientTexture2D" id="GradientTexture2D_irtut"]
|
|
gradient = SubResource("Gradient_srny4")
|
|
width = 512
|
|
height = 512
|
|
fill = 1
|
|
fill_from = Vector2(0.5, 0.5)
|
|
|
|
[node name="Princesse" type="CharacterBody2D"]
|
|
collision_mask = 113
|
|
slide_on_ceiling = false
|
|
floor_constant_speed = true
|
|
script = ExtResource("1_dkp7s")
|
|
KICK_JUMP_LIMITER = 0.7
|
|
COYOTE_LENGTH = 5
|
|
WALK_INCR_AIR = 4
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = SubResource("SpriteFrames_q52wx")
|
|
animation = &"jump_impulsion"
|
|
|
|
[node name="wall_detect_left" type="RayCast2D" parent="."]
|
|
target_position = Vector2(-10, 0)
|
|
collision_mask = 16
|
|
|
|
[node name="wall_detect_right" type="RayCast2D" parent="."]
|
|
target_position = Vector2(14, 0)
|
|
collision_mask = 16
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
zoom = Vector2(2, 2)
|
|
drag_horizontal_enabled = true
|
|
drag_vertical_enabled = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(1, 0)
|
|
shape = SubResource("CapsuleShape2D_6r7th")
|
|
|
|
[node name="ground_far_detect" type="RayCast2D" parent="."]
|
|
target_position = Vector2(0, 38)
|
|
collision_mask = 16
|
|
|
|
[node name="Death player" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_hxxp0")
|
|
}
|
|
|
|
[node name="vignetting" type="PointLight2D" parent="."]
|
|
position = Vector2(0, -12)
|
|
scale = Vector2(0.79275, 0.765625)
|
|
energy = 1.8
|
|
blend_mode = 1
|
|
texture = SubResource("GradientTexture2D_t1uxd")
|
|
texture_scale = 2.5
|
|
|
|
[node name="light" type="PointLight2D" parent="."]
|
|
position = Vector2(3, -0.187502)
|
|
scale = Vector2(0.628453, 0.586182)
|
|
color = Color(1, 0.85098, 0.862745, 1)
|
|
energy = 0.4
|
|
texture = SubResource("GradientTexture2D_irtut")
|
|
texture_scale = 1.2
|
|
|
|
[connection signal="cheese_collected" from="." to="." method="reload_fart"]
|
|
[connection signal="animation_finished" from="Death player" to="." method="_on_death_player_animation_finished"]
|