Comets.gd/scenes/ship.tscn

34 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-05-12 00:14:36 -04:00
[gd_scene load_steps=3 format=3 uid="uid://cbo47ftx0vcro"]
2024-05-09 22:42:55 -04:00
[ext_resource type="Script" path="res://scripts/ship.gd" id="1_japvq"]
[ext_resource type="Texture2D" uid="uid://qcnuvee2jcp0" path="res://assets/img/ship.png" id="1_ymcdl"]
2024-05-12 00:07:06 -04:00
[node name="Ship" type="CharacterBody2D" groups=["ship"]]
2024-05-10 20:42:22 -04:00
collision_mask = 2
2024-05-09 22:42:55 -04:00
script = ExtResource("1_japvq")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_ymcdl")
[node name="CPUParticles2D" type="CPUParticles2D" parent="Sprite2D"]
2024-05-12 00:07:06 -04:00
position = Vector2(0, 18)
2024-05-09 22:42:55 -04:00
emission_shape = 1
emission_sphere_radius = 3.0
spread = 105.9
gravity = Vector2(0, 0)
2024-05-12 00:14:36 -04:00
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
position = Vector2(0, -1)
polygon = PackedVector2Array(-3, -31, 4, -31, 32, 28, 32, 33, 28, 33, 1, 16, -24, 33, -32, 33, -32, 27)
2024-05-10 20:42:22 -04:00
[node name="ShotCooldown" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[node name="Gun" type="Marker2D" parent="."]
2024-05-12 00:07:06 -04:00
position = Vector2(0, -33)
2024-05-10 20:42:22 -04:00
2024-05-12 00:07:06 -04:00
[node name="Projectiles" type="Node" parent="."]
2024-05-10 20:42:22 -04:00
[connection signal="timeout" from="ShotCooldown" to="." method="_on_shot_cooldown_timeout"]