You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
166 lines
4.7 KiB
166 lines
4.7 KiB
[gd_scene load_steps=14 format=3 uid="uid://cqa6qtn1lj53m"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/pDasher.gd" id="1_str71"]
|
|
[ext_resource type="AudioStream" uid="uid://cuyel4kvgrcov" path="res://audio/jump.wav" id="2_w5kyr"]
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_3db0b"]
|
|
|
|
[sub_resource type="Animation" id="Animation_qv6th"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("CollisionShape2D:scale")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(1, 1)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("CollisionShape2D:position")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_37igj"]
|
|
resource_name = "jump"
|
|
length = 0.5
|
|
step = 0.05
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("CollisionShape2D:scale")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.05, 0.15),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(1, 1), Vector2(1.5, 0.5), Vector2(0.6, 1.4)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("CollisionShape2D:position")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.05, 0.15),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0), Vector2(0, 4), Vector2(0, -4)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_caret"]
|
|
resource_name = "land"
|
|
length = 0.5
|
|
step = 0.05
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("CollisionShape2D:scale")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.15),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(0.6, 1.4), Vector2(1.5, 0.5), Vector2(1, 1)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("CollisionShape2D:position")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.15),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(0, -4), Vector2(0, 4), Vector2(0, 0)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_x6ekt"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_qv6th"),
|
|
"jump": SubResource("Animation_37igj"),
|
|
"land": SubResource("Animation_caret")
|
|
}
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_pnajy"]
|
|
radius = 4.0
|
|
height = 16.0
|
|
|
|
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_oeovl"]
|
|
|
|
[sub_resource type="Curve" id="Curve_v0kkc"]
|
|
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.14486, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
|
point_count = 3
|
|
|
|
[sub_resource type="CurveTexture" id="CurveTexture_k65h6"]
|
|
curve = SubResource("Curve_v0kkc")
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_fswit"]
|
|
particle_flag_disable_z = true
|
|
gravity = Vector3(0, 98, 0)
|
|
scale_min = 4.0
|
|
scale_max = 4.0
|
|
alpha_curve = SubResource("CurveTexture_k65h6")
|
|
turbulence_noise_strength = 10.49
|
|
turbulence_noise_scale = 50.0
|
|
sub_emitter_keep_velocity = true
|
|
|
|
[sub_resource type="PrismMesh" id="PrismMesh_43iim"]
|
|
lightmap_size_hint = Vector2i(14, 21)
|
|
size = Vector3(2, 2, 0)
|
|
|
|
[node name="pDasher" type="CharacterBody2D"]
|
|
material = SubResource("ShaderMaterial_3db0b")
|
|
collision_layer = 3
|
|
collision_mask = 3
|
|
script = ExtResource("1_str71")
|
|
metadata/_edit_group_ = true
|
|
metadata/_edit_horizontal_guides_ = [8.0]
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
deterministic = true
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_x6ekt")
|
|
}
|
|
|
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource("2_w5kyr")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CapsuleShape2D_pnajy")
|
|
|
|
[node name="GPUParticles2D" type="GPUParticles2D" parent="CollisionShape2D"]
|
|
material = SubResource("CanvasItemMaterial_oeovl")
|
|
position = Vector2(0, -4)
|
|
process_material = SubResource("ParticleProcessMaterial_fswit")
|
|
lifetime = 0.5
|
|
trail_lifetime = 3.78
|
|
trail_sections = 48
|
|
trail_section_subdivisions = 1
|
|
|
|
[node name="MeshInstance2D" type="MeshInstance2D" parent="CollisionShape2D"]
|
|
rotation = -3.14159
|
|
scale = Vector2(8, 8)
|
|
mesh = SubResource("PrismMesh_43iim")
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
limit_top = -700
|
|
limit_bottom = 700
|
|
limit_smoothed = true
|
|
position_smoothing_enabled = true
|