75 lines
2.3 KiB
Text
75 lines
2.3 KiB
Text
[gd_scene load_steps=10 format=3 uid="uid://c87easb8570vd"]
|
|
|
|
[ext_resource type="PhysicsMaterial" uid="uid://c5tm7od8mwjjb" path="res://elastic.tres" id="1_1oplx"]
|
|
[ext_resource type="Script" path="res://Shield.gd" id="2_q7qjq"]
|
|
[ext_resource type="Texture2D" uid="uid://ciwpkhcp4pvqt" path="res://exagon.png" id="3_445cx"]
|
|
[ext_resource type="AudioStream" uid="uid://b73ik24u615jc" path="res://phaserDown1.ogg" id="5_8ceda"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_cymp8"]
|
|
atlas = ExtResource("3_445cx")
|
|
region = Rect2(0, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_xha3n"]
|
|
atlas = ExtResource("3_445cx")
|
|
region = Rect2(32, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fhmnk"]
|
|
atlas = ExtResource("3_445cx")
|
|
region = Rect2(64, 0, 32, 32)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_vytjk"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_cymp8")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_xha3n")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_fhmnk")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_evq3y"]
|
|
radius = 25.0
|
|
|
|
[node name="Exagon" type="Node2D"]
|
|
|
|
[node name="Shield" type="StaticBody2D" parent="." groups=["destructible"]]
|
|
collision_layer = 2
|
|
collision_mask = 2
|
|
physics_material_override = ExtResource("1_1oplx")
|
|
script = ExtResource("2_q7qjq")
|
|
|
|
[node name="Sprite" type="AnimatedSprite2D" parent="Shield"]
|
|
z_index = 2
|
|
rotation = 1.5708
|
|
scale = Vector2(1.65653, 1.66727)
|
|
sprite_frames = SubResource("SpriteFrames_vytjk")
|
|
frame_progress = 0.838782
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shield"]
|
|
position = Vector2(13, 194)
|
|
polygon = PackedVector2Array(-13, -443, 209, -330, 206, -69, -12, 57, -231, -38, -231, -343)
|
|
|
|
[node name="PowerDownFX" type="AudioStreamPlayer2D" parent="Shield"]
|
|
stream = ExtResource("5_8ceda")
|
|
pitch_scale = 0.95
|
|
bus = &"SFX"
|
|
|
|
[node name="Generator" type="StaticBody2D" parent="."]
|
|
|
|
[node name="Sprite" type="AnimatedSprite2D" parent="Generator"]
|
|
texture_filter = 1
|
|
position = Vector2(-0.500002, 0.500002)
|
|
scale = Vector2(1.59375, 1.59375)
|
|
animation = &""
|
|
autoplay = "gif"
|
|
frame_progress = 0.425841
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Generator"]
|
|
shape = SubResource("CircleShape2D_evq3y")
|