76 lines
2.3 KiB
Plaintext
76 lines
2.3 KiB
Plaintext
|
|
[gd_scene load_steps=9 format=3 uid="uid://bte8o05kqyhvc"]
|
||
|
|
|
||
|
|
[ext_resource type="Script" path="res://Scripts/player.gd" id="1_k4l00"]
|
||
|
|
[ext_resource type="Texture2D" uid="uid://besujnvoryjpx" path="res://Assets/TIE_Fighter_Tilesheet.png" id="1_sd6i4"]
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_f6sf8"]
|
||
|
|
atlas = ExtResource("1_sd6i4")
|
||
|
|
region = Rect2(0, 0, 74, 69)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_sjrp2"]
|
||
|
|
atlas = ExtResource("1_sd6i4")
|
||
|
|
region = Rect2(0, 69, 74, 69)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_nsx53"]
|
||
|
|
atlas = ExtResource("1_sd6i4")
|
||
|
|
region = Rect2(74, 69, 74, 69)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fjfji"]
|
||
|
|
atlas = ExtResource("1_sd6i4")
|
||
|
|
region = Rect2(148, 69, 74, 69)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_50ply"]
|
||
|
|
atlas = ExtResource("1_sd6i4")
|
||
|
|
region = Rect2(222, 69, 74, 69)
|
||
|
|
|
||
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_8uxfx"]
|
||
|
|
animations = [{
|
||
|
|
"frames": [{
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_f6sf8")
|
||
|
|
}],
|
||
|
|
"loop": true,
|
||
|
|
"name": &"default",
|
||
|
|
"speed": 5.0
|
||
|
|
}, {
|
||
|
|
"frames": [{
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_sjrp2")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_nsx53")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_fjfji")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_50ply")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_nsx53")
|
||
|
|
}],
|
||
|
|
"loop": false,
|
||
|
|
"name": &"shoot",
|
||
|
|
"speed": 20.0
|
||
|
|
}]
|
||
|
|
|
||
|
|
[node name="player" type="Area2D"]
|
||
|
|
collision_layer = 2
|
||
|
|
collision_mask = 21
|
||
|
|
script = ExtResource("1_k4l00")
|
||
|
|
|
||
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||
|
|
sprite_frames = SubResource("SpriteFrames_8uxfx")
|
||
|
|
animation = &"shoot"
|
||
|
|
frame = 4
|
||
|
|
frame_progress = 1.0
|
||
|
|
|
||
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
||
|
|
visible = false
|
||
|
|
polygon = PackedVector2Array(-34, 30, -27, 30, -27, 6, -26, 6, -25, 4, -16, 4, -16, 6, -13, 6, -12, 9, -7, 14, 2, 14, 6, 10, 12, 6, 14, 3, 19, 3, 22, 6, 24, 9, 24, 30, 31, 30, 31, -31, 24, -31, 23, -30, 23, -5, 22, -5, 21, -3, 19, -2, 13, -2, 12, -5, 9, -6, 8, -9, 5, -11, -9, -11, -13, -9, -13, -5, -16, -5, -17, -2, -24, -2, -26, -4, -28, -5, -28, -31, -34, -31, -35, -30, -35, 0, -35, 27)
|
||
|
|
|
||
|
|
[node name="muzzle" type="Marker2D" parent="."]
|
||
|
|
position = Vector2(-2, -38)
|
||
|
|
|
||
|
|
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|