78 lines
2.7 KiB
Plaintext
78 lines
2.7 KiB
Plaintext
[gd_scene load_steps=9 format=3 uid="uid://36q833dx6dmq"]
|
|
|
|
[ext_resource type="Script" uid="uid://c3i2bhlectmoo" path="res://script/ship.gd" id="1_4cq66"]
|
|
[ext_resource type="Texture2D" uid="uid://b037piy3tkefs" path="res://assets/ship.png" id="1_l3rv8"]
|
|
[ext_resource type="PackedScene" uid="uid://b1jtii12cqye1" path="res://scene/shoot.tscn" id="2_v4325"]
|
|
[ext_resource type="AudioStream" uid="uid://tmrih6eoxo2a" path="res://audio/flopp med underleppa (flanger9).wav" id="4_fbih1"]
|
|
[ext_resource type="AudioStream" uid="uid://c85io0gs75sb8" path="res://audio/lose sound 2 - 1_0.wav" id="5_l7n8u"]
|
|
|
|
[sub_resource type="Animation" id="Animation_fbih1"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Ship:modulate")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 1)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_bf7x5"]
|
|
resource_name = "blink"
|
|
length = 2.0
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Ship:modulate")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.2, 0.4, 0.601246, 0.801246, 1, 1.20781, 1.40781, 1.60781, 1.80906, 2),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_l7n8u"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_fbih1"),
|
|
&"blink": SubResource("Animation_bf7x5")
|
|
}
|
|
|
|
[node name="CharacterBody2D" type="CharacterBody2D" node_paths=PackedStringArray("animation", "target")]
|
|
collision_mask = 0
|
|
collision_priority = 100.0
|
|
script = ExtResource("1_4cq66")
|
|
SHOOT_NODE = ExtResource("2_v4325")
|
|
TIME_INVUL = 2.0
|
|
animation = NodePath("AnimationPlayer")
|
|
target = NodePath("Node2D")
|
|
|
|
[node name="Ship" type="Sprite2D" parent="."]
|
|
texture_filter = 1
|
|
rotation = 1.5708
|
|
texture = ExtResource("1_l3rv8")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_l7n8u")
|
|
}
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
|
polygon = PackedVector2Array(14, 0, -12, -10, -12, 9)
|
|
|
|
[node name="Node2D" type="Node2D" parent="."]
|
|
position = Vector2(15, 0)
|
|
|
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource("4_fbih1")
|
|
volume_db = -10.0
|
|
|
|
[node name="AudioStreamPlayer2" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource("5_l7n8u")
|
|
volume_db = -5.0
|