53 lines
1.8 KiB
Text
53 lines
1.8 KiB
Text
[gd_scene load_steps=6 format=3 uid="uid://bmc2exqutt6vu"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://csacin2gx2tum" path="res://scenes/spaceShip/spaceShip.tscn" id="1_nnn47"]
|
|
[ext_resource type="Script" uid="uid://0i8gdbb8f6ic" path="res://scenes/spaceShip/player/player.gd" id="2_acneu"]
|
|
[ext_resource type="Texture2D" uid="uid://cfwyw1sr6x2np" path="res://icon.svg" id="3_0gv45"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_0gv45"]
|
|
radius = 56.5685
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0gv45"]
|
|
size = Vector2(112, 112)
|
|
|
|
[node name="Player" groups=["player"] instance=ExtResource("1_nnn47")]
|
|
collision_layer = 12
|
|
collision_mask = 3
|
|
motion_mode = 1
|
|
script = ExtResource("2_acneu")
|
|
spawnDistance = 1000
|
|
|
|
[node name="CollisionShape2D" parent="." index="0"]
|
|
shape = SubResource("CircleShape2D_0gv45")
|
|
|
|
[node name="CollisionShape2D" parent="hurtArea" index="0"]
|
|
shape = SubResource("RectangleShape2D_0gv45")
|
|
|
|
[node name="Sprite2D" parent="." index="2"]
|
|
texture = ExtResource("3_0gv45")
|
|
|
|
[node name="dashCooldown" type="Timer" parent="." index="5"]
|
|
wait_time = 10.0
|
|
one_shot = true
|
|
autostart = true
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="." index="6"]
|
|
|
|
[node name="spawnPointPool" type="Node2D" parent="." index="7"]
|
|
|
|
[node name="spawnPoint" type="Marker2D" parent="spawnPointPool" index="0"]
|
|
position = Vector2(360, -176)
|
|
|
|
[node name="spawnPoint2" type="Marker2D" parent="spawnPointPool" index="1"]
|
|
position = Vector2(392, 256)
|
|
|
|
[node name="spawnPoint3" type="Marker2D" parent="spawnPointPool" index="2"]
|
|
position = Vector2(-416, 224)
|
|
|
|
[node name="spawnPoint4" type="Marker2D" parent="spawnPointPool" index="3"]
|
|
position = Vector2(-408, -168)
|
|
|
|
[connection signal="hurt" from="hurtArea" to="." method="_on_hurt_area_hurt"]
|
|
[connection signal="timeout" from="dashCooldown" to="." method="_on_dash_cooldown_timeout"]
|
|
|
|
[editable path="hurtArea"]
|