mirror of
https://codeberg.org/Melon-Bread/Comets.gd.git
synced 2025-07-06 22:54:36 -04:00
Ship & Projectile moves properly
This commit is contained in:
@ -4,10 +4,10 @@
|
||||
[ext_resource type="Script" path="res://scripts/bullet.gd" id="1_jyq7a"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5nukh"]
|
||||
size = Vector2(16, 4)
|
||||
size = Vector2(4, 16)
|
||||
|
||||
[node name="Bullet" type="Area2D" groups=["projectile"]]
|
||||
position = Vector2(7, 1)
|
||||
position = Vector2(0, -8)
|
||||
collision_mask = 2
|
||||
script = ExtResource("1_jyq7a")
|
||||
|
||||
@ -16,10 +16,10 @@ position = Vector2(1, 0)
|
||||
texture = ExtResource("1_6rsjj")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(1, -1)
|
||||
shape = SubResource("RectangleShape2D_5nukh")
|
||||
|
||||
[node name="LifeTimer" type="Timer" parent="."]
|
||||
wait_time = 0.5
|
||||
one_shot = true
|
||||
autostart = true
|
||||
|
||||
|
@ -19,5 +19,3 @@ color = Color(0, 0, 0, 1)
|
||||
[node name="Ship" parent="." instance=ExtResource("1_esyqo")]
|
||||
z_index = 1
|
||||
position = Vector2(622, 309)
|
||||
max_speed = null
|
||||
steering_factor = null
|
||||
|
@ -6,20 +6,15 @@
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_115lu"]
|
||||
size = Vector2(35, 35)
|
||||
|
||||
[node name="Ship" type="RigidBody2D" groups=["ship"]]
|
||||
[node name="Ship" type="CharacterBody2D" groups=["ship"]]
|
||||
collision_mask = 2
|
||||
gravity_scale = 0.0
|
||||
linear_damp = 1.0
|
||||
angular_damp = 2.0
|
||||
script = ExtResource("1_japvq")
|
||||
engine_power = null
|
||||
spin_power = null
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_ymcdl")
|
||||
|
||||
[node name="CPUParticles2D" type="CPUParticles2D" parent="Sprite2D"]
|
||||
position = Vector2(-16, 0)
|
||||
position = Vector2(0, 18)
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 3.0
|
||||
spread = 105.9
|
||||
@ -34,8 +29,8 @@ wait_time = 2.0
|
||||
one_shot = true
|
||||
|
||||
[node name="Gun" type="Marker2D" parent="."]
|
||||
position = Vector2(0, -33)
|
||||
|
||||
[node name="Projectiles" type="Node2D" parent="."]
|
||||
position = Vector2(-33, 0)
|
||||
[node name="Projectiles" type="Node" parent="."]
|
||||
|
||||
[connection signal="timeout" from="ShotCooldown" to="." method="_on_shot_cooldown_timeout"]
|
||||
|
Reference in New Issue
Block a user