52 lines
1.7 KiB
Text
52 lines
1.7 KiB
Text
[gd_scene load_steps=8 format=3 uid="uid://qr1h87np4sn1"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/objects/Rocket.gd" id="1_h8tie"]
|
|
[ext_resource type="Texture2D" uid="uid://dvnqx6habw8uc" path="res://sprites/Projectiles/Rocket/rocket mk1 1.png" id="2_g3qcb"]
|
|
[ext_resource type="Texture2D" uid="uid://dgxlnp520q1tp" path="res://sprites/Projectiles/Rocket/rocket mk1 2.png" id="3_q1u7q"]
|
|
[ext_resource type="Texture2D" uid="uid://fqcylid4oa6b" path="res://sprites/Projectiles/Rocket/rocket mk1 3.png" id="4_f2hwy"]
|
|
[ext_resource type="Texture2D" uid="uid://3nxmmp826b1s" path="res://sprites/Projectiles/Rocket/rocket mk1 4.png" id="5_xas58"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_pnkh5"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_g3qcb")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_q1u7q")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_f2hwy")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("5_xas58")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 16.0
|
|
}]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_65eo7"]
|
|
radius = 2.0
|
|
height = 12.0
|
|
|
|
[node name="Rocket" type="Node2D" node_paths=PackedStringArray("collider")]
|
|
script = ExtResource("1_h8tie")
|
|
speed = 400.0
|
|
rotation_speed = 180.0
|
|
damage = 5.0
|
|
collider = NodePath("Collision")
|
|
|
|
[node name="RocketSprite" type="AnimatedSprite2D" parent="."]
|
|
position = Vector2(8, 0)
|
|
sprite_frames = SubResource("SpriteFrames_pnkh5")
|
|
frame_progress = 0.740876
|
|
|
|
[node name="Collision" type="Area2D" parent="."]
|
|
collision_layer = 4
|
|
collision_mask = 3
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Collision"]
|
|
position = Vector2(10, 0)
|
|
rotation = -1.5708
|
|
shape = SubResource("CapsuleShape2D_65eo7")
|