53 lines
1.8 KiB
Text
53 lines
1.8 KiB
Text
[gd_scene load_steps=7 format=3 uid="uid://snxpqx0ony7s"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/player_movement.gd" id="1_a6lhy"]
|
|
[ext_resource type="Texture2D" uid="uid://qcx482jc7pqr" path="res://textures/player.png" id="2_sscjv"]
|
|
[ext_resource type="Texture2D" uid="uid://s7wqkcxerals" path="res://textures/Eye Lase.png" id="3_yg3ur"]
|
|
[ext_resource type="AudioStream" uid="uid://donbyet486b4" path="res://sound/Jump5.wav" id="4_jit8y"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_31jvr"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_vxfel"]
|
|
radius = 12.0
|
|
|
|
[node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("sfx", "sfx_large")]
|
|
collision_layer = 4
|
|
collision_mask = 51
|
|
script = ExtResource("1_a6lhy")
|
|
sfx = NodePath("AudioStreamPlayer2D")
|
|
sfx_large = NodePath("AudioStreamPlayer2D2")
|
|
speed = 250
|
|
jump_strength = 600
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("RectangleShape2D_31jvr")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
texture = ExtResource("2_sscjv")
|
|
|
|
[node name="Hurtbox" type="Area2D" parent="."]
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hurtbox"]
|
|
shape = SubResource("CircleShape2D_vxfel")
|
|
|
|
[node name="data_link" type="Line2D" parent="."]
|
|
visible = false
|
|
texture_repeat = 2
|
|
points = PackedVector2Array(0, 0, 0, 0)
|
|
default_color = Color(0.298039, 1, 0.141176, 1)
|
|
texture = ExtResource("3_yg3ur")
|
|
texture_mode = 1
|
|
|
|
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource("4_jit8y")
|
|
volume_db = -12.876
|
|
pitch_scale = 0.92
|
|
|
|
[node name="AudioStreamPlayer2D2" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource("4_jit8y")
|
|
volume_db = -12.876
|
|
pitch_scale = 0.51
|
|
|
|
[connection signal="body_entered" from="Hurtbox" to="." method="_on_hurtbox_body_entered"]
|