105 lines
3.6 KiB
Text
105 lines
3.6 KiB
Text
[gd_scene load_steps=13 format=3 uid="uid://c714s5d7d5765"]
|
|
|
|
[ext_resource type="Script" uid="uid://bpo15kuxdmulu" path="res://objects/player/player.gd" id="1_cqmt1"]
|
|
[ext_resource type="Texture2D" uid="uid://cre6i8tsdlt7j" path="res://graphics/player/player_1.png" id="2_jnjyq"]
|
|
[ext_resource type="Texture2D" uid="uid://cr8jegbgl0wxn" path="res://graphics/player/player_3.png" id="3_gnkmh"]
|
|
[ext_resource type="PackedScene" uid="uid://bs0tv5ubqdjp0" path="res://objects/player/bullet_emitter/player_bullet_emitter.tscn" id="3_ssrue"]
|
|
[ext_resource type="AudioStream" uid="uid://b3byh6su1b11r" path="res://audio/sounds/se_boom.wav" id="5_gnkmh"]
|
|
[ext_resource type="PackedScene" uid="uid://ykg8dydq006a" path="res://objects/graze/graze_particles.tscn" id="6_xkryw"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_xkryw"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_jnjyq")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_gnkmh")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 9.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ssrue"]
|
|
size = Vector2(20, 19)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ow0dq"]
|
|
size = Vector2(4, 4)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jnjyq"]
|
|
size = Vector2(22, 22)
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_gnkmh"]
|
|
radius = 13.038404
|
|
|
|
[sub_resource type="Gradient" id="Gradient_aeam7"]
|
|
offsets = PackedFloat32Array(0, 0.513333, 1)
|
|
colors = PackedColorArray(0, 0.647059, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1)
|
|
|
|
[node name="Player" type="CharacterBody2D"]
|
|
collision_layer = 2
|
|
script = ExtResource("1_cqmt1")
|
|
move_normal_speed = 200.0
|
|
move_focused_speed = 100.0
|
|
|
|
[node name="Sprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = SubResource("SpriteFrames_xkryw")
|
|
autoplay = "default"
|
|
frame_progress = 0.64341116
|
|
|
|
[node name="Collision" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, -0.5)
|
|
shape = SubResource("RectangleShape2D_ssrue")
|
|
debug_color = Color(0.48012203, 0.5821042, 0.20594019, 0.41960785)
|
|
|
|
[node name="PlayerBulletEmitter" parent="." instance=ExtResource("3_ssrue")]
|
|
|
|
[node name="Hurtbox" type="Area2D" parent="."]
|
|
position = Vector2(0, -1)
|
|
collision_layer = 2
|
|
collision_mask = 8
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hurtbox"]
|
|
shape = SubResource("RectangleShape2D_ow0dq")
|
|
debug_color = Color(1, 0, 0, 0.44313726)
|
|
|
|
[node name="CollectionBox" type="Area2D" parent="."]
|
|
collision_layer = 2
|
|
collision_mask = 32
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="CollectionBox"]
|
|
position = Vector2(0, -0.5)
|
|
shape = SubResource("RectangleShape2D_jnjyq")
|
|
|
|
[node name="GrazeBox" type="Area2D" parent="."]
|
|
position = Vector2(0, -1)
|
|
collision_mask = 8
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="GrazeBox"]
|
|
shape = SubResource("CircleShape2D_gnkmh")
|
|
debug_color = Color(0.7740294, 0.14773864, 0.99999994, 0.41960785)
|
|
|
|
[node name="DeathSound" type="AudioStreamPlayer" parent="."]
|
|
unique_name_in_owner = true
|
|
stream = ExtResource("5_gnkmh")
|
|
|
|
[node name="GrazeParticles" type="CPUParticles2D" parent="." instance=ExtResource("6_xkryw")]
|
|
unique_name_in_owner = true
|
|
emitting = false
|
|
amount = 10
|
|
lifetime = 0.15
|
|
one_shot = true
|
|
speed_scale = 0.5
|
|
explosiveness = 0.6
|
|
randomness = 1.0
|
|
lifetime_randomness = 1.0
|
|
spread = 154.09
|
|
gravity = Vector2(0, 630)
|
|
initial_velocity_min = 251.99
|
|
initial_velocity_max = 484.86
|
|
color_ramp = SubResource("Gradient_aeam7")
|
|
|
|
[connection signal="area_entered" from="Hurtbox" to="." method="_on_hurtbox_area_entered"]
|
|
[connection signal="area_entered" from="GrazeBox" to="." method="_on_graze_box_area_entered"]
|
|
[connection signal="finished" from="GrazeParticles" to="." method="_on_cpu_particles_2d_finished"]
|