ape-ame/eptagon.tscn
Ultrablob 88c05bbd8c
All checks were successful
CI / build (push) Successful in 2m52s
new input system, add pausing
2025-02-07 13:37:10 -05:00

91 lines
2.8 KiB
Text

[gd_scene load_steps=15 format=3 uid="uid://bda763f0fxh5k"]
[ext_resource type="Script" path="res://eptagon.gd" id="1_d0pdl"]
[ext_resource type="Script" path="res://Turret.gd" id="2_6tkha"]
[ext_resource type="Texture2D" uid="uid://ccbd4o2iasbun" path="res://eptagon base.png" id="2_ook2g"]
[ext_resource type="Script" path="res://Gun.gd" id="2_sea5o"]
[ext_resource type="PackedScene" uid="uid://c6ybtahxwpukd" path="res://bullet.tscn" id="4_cyd7j"]
[ext_resource type="Texture2D" uid="uid://da478jrss0ira" path="res://eptagon shoot.png" id="4_unb6p"]
[sub_resource type="AtlasTexture" id="AtlasTexture_ynjjr"]
atlas = ExtResource("4_unb6p")
region = Rect2(0, 0, 128, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_7lu72"]
atlas = ExtResource("4_unb6p")
region = Rect2(128, 0, 128, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_i6mfs"]
atlas = ExtResource("4_unb6p")
region = Rect2(256, 0, 128, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_g3rpy"]
atlas = ExtResource("4_unb6p")
region = Rect2(384, 0, 128, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_4lb8x"]
atlas = ExtResource("4_unb6p")
region = Rect2(512, 0, 128, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_bkh2l"]
atlas = ExtResource("4_unb6p")
region = Rect2(640, 0, 128, 128)
[sub_resource type="SpriteFrames" id="SpriteFrames_1fj5a"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ynjjr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7lu72")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_i6mfs")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g3rpy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4lb8x")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bkh2l")
}],
"loop": true,
"name": &"default",
"speed": 7.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_03ifk"]
radius = 36.0139
[node name="Eptagon" type="StaticBody2D" groups=["destructible", "enemy"]]
script = ExtResource("1_d0pdl")
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(1, 5)
texture = ExtResource("2_ook2g")
[node name="Turret" type="Node2D" parent="."]
script = ExtResource("2_6tkha")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Turret"]
position = Vector2(5, 0)
rotation = -1.5708
sprite_frames = SubResource("SpriteFrames_1fj5a")
autoplay = "default"
frame_progress = 0.726849
[node name="Gun" type="Marker2D" parent="Turret"]
position = Vector2(56, 0)
script = ExtResource("2_sea5o")
bullet = ExtResource("4_cyd7j")
[node name="Collider" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_03ifk")
[node name="ShieldMarker" type="Marker2D" parent="."]
scale = Vector2(2, 2)
[connection signal="animation_looped" from="Turret/AnimatedSprite2D" to="Turret/Gun" method="shoot"]