79 lines
2.1 KiB
Text
79 lines
2.1 KiB
Text
[gd_scene load_steps=3 format=3 uid="uid://player_scene"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/game/player.gd" id="1_player"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_player"]
|
|
size = Vector2(40, 80)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_slide"]
|
|
size = Vector2(60, 30)
|
|
|
|
[node name="Player" type="CharacterBody2D"]
|
|
collision_layer = 1
|
|
collision_mask = 6
|
|
script = ExtResource("1_player")
|
|
|
|
[node name="Sprite" type="ColorRect" parent="."]
|
|
offset_left = -20.0
|
|
offset_top = -80.0
|
|
offset_right = 20.0
|
|
color = Color(0, 1, 1, 1)
|
|
|
|
[node name="GlowEffect" type="ColorRect" parent="Sprite"]
|
|
modulate = Color(1, 1, 1, 0.3)
|
|
offset_left = -5.0
|
|
offset_top = -5.0
|
|
offset_right = 45.0
|
|
offset_bottom = 85.0
|
|
color = Color(0, 1, 1, 1)
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, -40)
|
|
shape = SubResource("RectangleShape2D_player")
|
|
|
|
[node name="SlideCollision" type="CollisionShape2D" parent="."]
|
|
visible = false
|
|
position = Vector2(0, -15)
|
|
disabled = true
|
|
shape = SubResource("RectangleShape2D_slide")
|
|
|
|
[node name="TrailParticles" type="GPUParticles2D" parent="."]
|
|
position = Vector2(-20, 0)
|
|
emitting = false
|
|
amount = 20
|
|
process_material = SubResource("ParticlesMaterial_trail")
|
|
lifetime = 0.5
|
|
|
|
[node name="JumpParticles" type="GPUParticles2D" parent="."]
|
|
emitting = false
|
|
amount = 15
|
|
one_shot = true
|
|
explosiveness = 1.0
|
|
process_material = SubResource("ParticlesMaterial_jump")
|
|
lifetime = 0.3
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticlesMaterial_trail"]
|
|
emission_shape = 1
|
|
emission_sphere_radius = 5.0
|
|
direction = Vector3(-1, 0, 0)
|
|
spread = 15.0
|
|
initial_velocity_min = 50.0
|
|
initial_velocity_max = 100.0
|
|
gravity = Vector3(0, 0, 0)
|
|
scale_min = 0.5
|
|
scale_max = 1.5
|
|
color = Color(0, 1, 1, 0.8)
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticlesMaterial_jump"]
|
|
emission_shape = 1
|
|
emission_sphere_radius = 20.0
|
|
direction = Vector3(0, 1, 0)
|
|
spread = 60.0
|
|
initial_velocity_min = 100.0
|
|
initial_velocity_max = 200.0
|
|
gravity = Vector3(0, 300, 0)
|
|
scale_min = 0.3
|
|
scale_max = 1.0
|
|
color = Color(1, 0.2, 0.6, 1)
|