Files
Princesse-Lactose-Godot/princesse.tscn
Thomas Lavocat 79d664d0d4 jus: rajout de juyce commes ils disent
Une petit trainée de particules suit la princesse, quand elle marche et
change de direction, quand elle saute, quand elle wall kick. C'est fou
mais rien que ce petit truc rend le jeu plus agréable à jouer!!
2023-10-15 14:36:12 +02:00

615 lines
17 KiB
Plaintext

[gd_scene load_steps=73 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://bl4eehh16yo0r" path="res://masks/smoke_particle_16.png" id="2_jyxmd"]
[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://cx58dasu8epvx" path="res://sprite/princess_idle.png" id="4_uydsc"]
[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"]
[ext_resource type="Texture2D" uid="uid://dgsn3ixn46anc" path="res://sprite/light.png" id="8_8c83t"]
[ext_resource type="Texture2D" uid="uid://cfptwn1c03k1b" path="res://masks/smoke_particle_6.png" id="11_4uqsf"]
[sub_resource type="Gradient" id="Gradient_anx4x"]
offsets = PackedFloat32Array(0, 0.99893)
colors = PackedColorArray(0.453232, 0.453232, 0.453232, 1, 1, 1, 1, 0.776471)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_7kmv1"]
gradient = SubResource("Gradient_anx4x")
[sub_resource type="Curve" id="Curve_iu7sd"]
min_value = -1.0
_data = [Vector2(0, -1), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_jwai0"]
curve = SubResource("Curve_iu7sd")
[sub_resource type="Curve" id="Curve_igy3q"]
_data = [Vector2(0.0365535, 0), 0.0, 0.0, 0, 0, Vector2(0.503916, 1), 0.0, 0.0, 0, 0, Vector2(1, 0.852761), 0.0, 0.0, 0, 0]
point_count = 3
[sub_resource type="CurveTexture" id="CurveTexture_b7sj0"]
curve = SubResource("Curve_igy3q")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_n8y3m"]
emission_shape = 1
emission_sphere_radius = 4.82
particle_flag_disable_z = true
gravity = Vector3(0, 0, 0)
orbit_velocity_min = 0.0
orbit_velocity_max = 0.0
radial_accel_min = 15.0
radial_accel_max = 15.0
angle_max = 360.0
scale_curve = SubResource("CurveTexture_b7sj0")
color = Color(0.721569, 0.8, 0.462745, 1)
color_ramp = SubResource("GradientTexture1D_7kmv1")
hue_variation_curve = SubResource("CurveTexture_jwai0")
collision_mode = 1
collision_friction = 0.0
collision_bounce = 0.0
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_3nyab"]
particle_flag_disable_z = true
direction = Vector3(0, 0, 0)
gravity = Vector3(0, 0, 0)
orbit_velocity_min = 0.0
orbit_velocity_max = 0.0
[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_501l0"]
atlas = ExtResource("2_hholp")
region = Rect2(0, 0, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_oobtw"]
atlas = ExtResource("2_hholp")
region = Rect2(0, 50, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_etom6"]
atlas = ExtResource("2_hholp")
region = Rect2(0, 100, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_psvxe"]
atlas = ExtResource("2_hholp")
region = Rect2(0, 150, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_2mvwc"]
atlas = ExtResource("2_hholp")
region = Rect2(0, 200, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_wfvda"]
atlas = ExtResource("2_hholp")
region = Rect2(0, 250, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_07km1"]
atlas = ExtResource("3_kbaya")
region = Rect2(0, 0, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_xj4lb"]
atlas = ExtResource("3_kbaya")
region = Rect2(0, 50, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_5rs5h"]
atlas = ExtResource("3_kbaya")
region = Rect2(0, 100, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_wvl3e"]
atlas = ExtResource("3_kbaya")
region = Rect2(0, 150, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_kdxf0"]
atlas = ExtResource("3_kbaya")
region = Rect2(0, 200, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_f42nq"]
atlas = ExtResource("3_kbaya")
region = Rect2(0, 250, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_w81fh"]
atlas = ExtResource("4_uydsc")
region = Rect2(0, 0, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_ew2xl"]
atlas = ExtResource("4_uydsc")
region = Rect2(0, 50, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_8ywhi"]
atlas = ExtResource("4_uydsc")
region = Rect2(0, 100, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_0f1fb"]
atlas = ExtResource("4_uydsc")
region = Rect2(0, 150, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_5cr2j"]
atlas = ExtResource("4_uydsc")
region = Rect2(0, 200, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_1m2pr"]
atlas = ExtResource("4_uydsc")
region = Rect2(0, 250, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_s68q8"]
atlas = ExtResource("4_uydsc")
region = Rect2(0, 300, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_d4mkb"]
atlas = ExtResource("4_uydsc")
region = Rect2(0, 350, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_8eckg"]
atlas = ExtResource("4_uydsc")
region = Rect2(0, 400, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_jrvhm"]
atlas = ExtResource("4_uydsc")
region = Rect2(0, 450, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_xiqys"]
atlas = ExtResource("4_uydsc")
region = Rect2(0, 500, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_h3ewj"]
atlas = ExtResource("4_uydsc")
region = Rect2(0, 550, 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_5aadj"]
atlas = ExtResource("6_srvje")
region = Rect2(0, 0, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_ltvav"]
atlas = ExtResource("6_srvje")
region = Rect2(0, 50, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_v8l2b"]
atlas = ExtResource("6_srvje")
region = Rect2(0, 100, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_1a5fd"]
atlas = ExtResource("6_srvje")
region = Rect2(0, 150, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_ijaps"]
atlas = ExtResource("6_srvje")
region = Rect2(0, 200, 24, 50)
[sub_resource type="AtlasTexture" id="AtlasTexture_gik46"]
atlas = ExtResource("6_srvje")
region = Rect2(0, 250, 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_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")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_501l0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_oobtw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_etom6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_psvxe")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2mvwc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wfvda")
}],
"loop": true,
"name": &"falling_diagonals",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_07km1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xj4lb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5rs5h")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wvl3e")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kdxf0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_f42nq")
}],
"loop": true,
"name": &"falling_straight",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_w81fh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ew2xl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8ywhi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0f1fb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5cr2j")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1m2pr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_s68q8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_d4mkb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8eckg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jrvhm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xiqys")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_h3ewj")
}],
"loop": true,
"name": &"idle",
"speed": 10.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_5aadj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ltvav")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_v8l2b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1a5fd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ijaps")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gik46")
}],
"loop": true,
"name": &"jumping",
"speed": 10.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": 10.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_6r7th"]
radius = 4.33333
height = 42.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:scale")
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": [Vector2(1, 1), Vector2(0, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("AnimatedSprite2D:rotation")
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": [0.0, 31.4159]
}
[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)
[node name="Princesse" type="CharacterBody2D"]
scale = Vector2(0.6, 0.6)
collision_mask = 241
slide_on_ceiling = false
floor_constant_speed = true
script = ExtResource("1_dkp7s")
JUMPING_SPEED = 230
COYOTE_LENGTH = 7
COYOTE_GRAB_LENGTH = 20
WALK_INCR_AIR = 4
[node name="GPUParticles2D" type="GPUParticles2D" parent="."]
texture_filter = 4
position = Vector2(-3.33334, 10)
scale = Vector2(0.5, 0.5)
emitting = false
amount = 100
process_material = SubResource("ParticleProcessMaterial_n8y3m")
texture = ExtResource("2_jyxmd")
lifetime = 2.0
preprocess = 2.0
speed_scale = 4.0
[node name="GPUParticles2DJump" type="GPUParticles2D" parent="."]
position = Vector2(-1.66667, 25)
emitting = false
amount = 11
process_material = SubResource("ParticleProcessMaterial_3nyab")
texture = ExtResource("11_4uqsf")
one_shot = true
speed_scale = 5.73
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
modulate = Color(0.823529, 0.823529, 0.823529, 1)
sprite_frames = SubResource("SpriteFrames_q52wx")
animation = &"walk"
[node name="Camera2D" type="Camera2D" parent="."]
zoom = Vector2(2, 2)
position_smoothing_enabled = true
position_smoothing_speed = 10.0
drag_horizontal_enabled = true
drag_vertical_enabled = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 4)
shape = SubResource("CapsuleShape2D_6r7th")
[node name="ground_far_detect" type="RayCast2D" parent="."]
position = Vector2(4, 0)
target_position = Vector2(0, 48)
collision_mask = 16
[node name="ground_far_detect2" type="RayCast2D" parent="."]
position = Vector2(-4, 0)
target_position = Vector2(0, 48)
collision_mask = 16
[node name="Death player" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_hxxp0")
}
[node name="vignetting" type="PointLight2D" parent="."]
visible = false
energy = 1.8
blend_mode = 1
texture = SubResource("GradientTexture2D_t1uxd")
texture_scale = 1.85
[node name="light" type="PointLight2D" parent="."]
position = Vector2(-1.66667, -1.66667)
color = Color(1, 0.964706, 0.643137, 0.6)
energy = 0.32
shadow_enabled = true
texture = ExtResource("8_8c83t")
offset = Vector2(0, -13)
texture_scale = 0.34
[node name="wall_detect_right" type="RayCast2D" parent="."]
position = Vector2(0, 5)
target_position = Vector2(8, 0)
collision_mask = 16
[node name="wall_detect_right2" type="RayCast2D" parent="."]
position = Vector2(0, -6.66667)
target_position = Vector2(8, 0)
collision_mask = 16
[node name="wall_detect_right3" type="RayCast2D" parent="."]
position = Vector2(0, 16.6667)
target_position = Vector2(8, 0)
collision_mask = 16
[node name="wall_detect_left" type="RayCast2D" parent="."]
position = Vector2(0, 5)
target_position = Vector2(-8, 0)
collision_mask = 16
[node name="wall_detect_left2" type="RayCast2D" parent="."]
position = Vector2(0, -6.66667)
target_position = Vector2(-8, 0)
collision_mask = 16
[node name="wall_detect_left3" type="RayCast2D" parent="."]
position = Vector2(0, 16.6667)
target_position = Vector2(-8, 0)
collision_mask = 16
[node name="wall_far_detect_left" type="RayCast2D" parent="."]
target_position = Vector2(-30, 0)
collision_mask = 16
[node name="wall_far_detect_left2" type="RayCast2D" parent="."]
position = Vector2(0, -15)
target_position = Vector2(-30, 0)
collision_mask = 16
[node name="wall_far_detect_left3" type="RayCast2D" parent="."]
position = Vector2(0, 24)
target_position = Vector2(-30, 0)
collision_mask = 16
[node name="wall_far_detect_right" type="RayCast2D" parent="."]
target_position = Vector2(30, 0)
collision_mask = 16
[node name="wall_far_detect_right2" type="RayCast2D" parent="."]
position = Vector2(0, -16)
target_position = Vector2(30, 0)
collision_mask = 16
[node name="wall_far_detect_right3" type="RayCast2D" parent="."]
position = Vector2(0, 24)
target_position = Vector2(30, 0)
collision_mask = 16
[connection signal="animation_finished" from="Death player" to="." method="_on_death_player_animation_finished"]