97 lines
2.9 KiB
Text
97 lines
2.9 KiB
Text
[gd_scene load_steps=16 format=3 uid="uid://dwvw8qerrwuu0"]
|
|
|
|
[ext_resource type="Script" uid="uid://p443pc5fxxg0" path="res://Scripts/ship.gd" id="1_6ejuo"]
|
|
[ext_resource type="PackedScene" uid="uid://nf2xr7ufei5a" path="res://Scenes/laser.tscn" id="2_8aq7e"]
|
|
[ext_resource type="Texture2D" uid="uid://bdwr76wwjquob" path="res://Sprites/fly_spaceship.png" id="3_cmder"]
|
|
[ext_resource type="AudioStream" uid="uid://docuh1bqh2uba" path="res://Sounds/laser4.wav" id="3_fwcnm"]
|
|
[ext_resource type="Texture2D" uid="uid://cvfsmhdbgh8vh" path="res://Sprites/idle_spaceship.png" id="4_fwcnm"]
|
|
[ext_resource type="Texture2D" uid="uid://dtcdw0p6jcw00" path="res://Sprites/left_spaceship.png" id="5_cmder"]
|
|
[ext_resource type="Texture2D" uid="uid://c0quqc1en7jo" path="res://Sprites/right_spaceship.png" id="6_fwcnm"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_272bh"]
|
|
atlas = ExtResource("3_cmder")
|
|
region = Rect2(15, 0, 15, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_5vw27"]
|
|
atlas = ExtResource("3_cmder")
|
|
region = Rect2(0, 0, 15, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_kxdp2"]
|
|
atlas = ExtResource("5_cmder")
|
|
region = Rect2(15, 0, 15, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_v2j2m"]
|
|
atlas = ExtResource("5_cmder")
|
|
region = Rect2(0, 0, 15, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1m05r"]
|
|
atlas = ExtResource("6_fwcnm")
|
|
region = Rect2(15, 0, 15, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ssryt"]
|
|
atlas = ExtResource("6_fwcnm")
|
|
region = Rect2(0, 0, 15, 24)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_1bvp3"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_272bh")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_5vw27")
|
|
}],
|
|
"loop": true,
|
|
"name": &"fly",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_fwcnm")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle",
|
|
"speed": 0.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_kxdp2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_v2j2m")
|
|
}],
|
|
"loop": true,
|
|
"name": &"left",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_1m05r")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ssryt")
|
|
}],
|
|
"loop": true,
|
|
"name": &"right",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="ConvexPolygonShape2D" id="ConvexPolygonShape2D_kek77"]
|
|
points = PackedVector2Array(-6, 0, -7, 7, 8, 7, 7, 0, 0, -8)
|
|
|
|
[node name="Ship" type="CharacterBody2D"]
|
|
script = ExtResource("1_6ejuo")
|
|
Laser = ExtResource("2_8aq7e")
|
|
pew = ExtResource("3_fwcnm")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = SubResource("SpriteFrames_1bvp3")
|
|
animation = &"right"
|
|
autoplay = "idle"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, -4)
|
|
shape = SubResource("ConvexPolygonShape2D_kek77")
|
|
|
|
[node name="Muzzle" type="Marker2D" parent="."]
|
|
position = Vector2(0, -15)
|