93 lines
2.8 KiB
Text
93 lines
2.8 KiB
Text
[gd_scene load_steps=14 format=3 uid="uid://bkuucjejc7p2v"]
|
|
|
|
[ext_resource type="Script" uid="uid://c7fe5pl54gkem" path="res://scenes/player.gd" id="1_qlg0r"]
|
|
[ext_resource type="Texture2D" uid="uid://di2xhcwcdbhxg" path="res://resources/Mini Pixel Pack 3/Player ship/Player_ship (16 x 16).png" id="2_tuyoq"]
|
|
[ext_resource type="Texture2D" uid="uid://ces8fm7lxh574" path="res://resources/Mini Pixel Pack 3/Player ship/Boosters (16 x 16).png" id="3_fjrip"]
|
|
[ext_resource type="Texture2D" uid="uid://bjdhq42ummgky" path="res://resources/Mini Pixel Pack 3/Player ship/Boosters_left (16 x 16).png" id="4_smehm"]
|
|
[ext_resource type="Texture2D" uid="uid://cjv3xbuj65pav" path="res://resources/Mini Pixel Pack 3/Player ship/Boosters_right (16 x 16).png" id="5_ur7pv"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_hbo4f"]
|
|
atlas = ExtResource("3_fjrip")
|
|
region = Rect2(0, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ctvyo"]
|
|
atlas = ExtResource("3_fjrip")
|
|
region = Rect2(16, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qixtg"]
|
|
atlas = ExtResource("4_smehm")
|
|
region = Rect2(0, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_nt65e"]
|
|
atlas = ExtResource("4_smehm")
|
|
region = Rect2(16, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_bhmdk"]
|
|
atlas = ExtResource("5_ur7pv")
|
|
region = Rect2(0, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_s5y6v"]
|
|
atlas = ExtResource("5_ur7pv")
|
|
region = Rect2(16, 0, 16, 16)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_407ns"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_hbo4f")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ctvyo")
|
|
}],
|
|
"loop": true,
|
|
"name": &"forward",
|
|
"speed": 10.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_qixtg")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_nt65e")
|
|
}],
|
|
"loop": true,
|
|
"name": &"left",
|
|
"speed": 10.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_bhmdk")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_s5y6v")
|
|
}],
|
|
"loop": true,
|
|
"name": &"right",
|
|
"speed": 10.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_w3w6i"]
|
|
size = Vector2(14, 14)
|
|
|
|
[node name="Player" type="Area2D"]
|
|
script = ExtResource("1_qlg0r")
|
|
|
|
[node name="Ship" type="Sprite2D" parent="."]
|
|
texture = ExtResource("2_tuyoq")
|
|
hframes = 3
|
|
frame = 1
|
|
|
|
[node name="Boosters" type="AnimatedSprite2D" parent="Ship"]
|
|
position = Vector2(0, 15)
|
|
sprite_frames = SubResource("SpriteFrames_407ns")
|
|
animation = &"right"
|
|
autoplay = "forward"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("RectangleShape2D_w3w6i")
|
|
|
|
[node name="GunCooldown" type="Timer" parent="."]
|
|
wait_time = 0.001
|
|
one_shot = true
|
|
|
|
[connection signal="timeout" from="GunCooldown" to="." method="_on_gun_cooldown_timeout"]
|