2024-05-07 14:29:47 -04:00
|
|
|
[gd_scene load_steps=14 format=3 uid="uid://yu50iyftoyaj"]
|
2024-04-16 20:29:45 -04:00
|
|
|
|
2024-04-24 14:57:29 -04:00
|
|
|
[ext_resource type="Script" path="res://riangle.gd" id="1_0404b"]
|
2024-05-07 14:29:47 -04:00
|
|
|
[ext_resource type="Texture2D" uid="uid://dm8o6cwq2jtaq" path="res://riangle.png" id="2_rgnr7"]
|
2024-04-16 20:29:45 -04:00
|
|
|
[ext_resource type="Script" path="res://Gun.gd" id="3_kffl0"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://c6ybtahxwpukd" path="res://bullet.tscn" id="4_tfncc"]
|
|
|
|
|
2024-05-07 14:29:47 -04:00
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fb5mh"]
|
|
|
|
atlas = ExtResource("2_rgnr7")
|
|
|
|
region = Rect2(0, 0, 40, 40)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_4gcy0"]
|
|
|
|
atlas = ExtResource("2_rgnr7")
|
|
|
|
region = Rect2(40, 0, 40, 40)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_mhrqf"]
|
|
|
|
atlas = ExtResource("2_rgnr7")
|
|
|
|
region = Rect2(80, 0, 40, 40)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_6cbkq"]
|
|
|
|
atlas = ExtResource("2_rgnr7")
|
|
|
|
region = Rect2(120, 0, 40, 40)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_yud03"]
|
|
|
|
atlas = ExtResource("2_rgnr7")
|
|
|
|
region = Rect2(160, 0, 40, 40)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_kn3w7"]
|
|
|
|
atlas = ExtResource("2_rgnr7")
|
|
|
|
region = Rect2(0, 40, 40, 40)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_sn7s2"]
|
|
|
|
atlas = ExtResource("2_rgnr7")
|
|
|
|
region = Rect2(80, 40, 40, 40)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_pssaw"]
|
|
|
|
atlas = ExtResource("2_rgnr7")
|
|
|
|
region = Rect2(40, 40, 40, 40)
|
|
|
|
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_p5dvv"]
|
|
|
|
animations = [{
|
|
|
|
"frames": [{
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_fb5mh")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_4gcy0")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_mhrqf")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_6cbkq")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_yud03")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_kn3w7")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_sn7s2")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_pssaw")
|
|
|
|
}],
|
|
|
|
"loop": true,
|
|
|
|
"name": &"default",
|
|
|
|
"speed": 10.0
|
|
|
|
}]
|
|
|
|
|
2024-04-25 15:27:00 -04:00
|
|
|
[node name="Riangle" type="StaticBody2D" groups=["destructible", "enemy"]]
|
2024-04-16 20:29:45 -04:00
|
|
|
scale = Vector2(0.25, 0.25)
|
2024-04-24 14:57:29 -04:00
|
|
|
script = ExtResource("1_0404b")
|
2024-04-16 20:29:45 -04:00
|
|
|
|
2024-04-18 19:45:52 -04:00
|
|
|
[node name="Sprite2D" type="AnimatedSprite2D" parent="."]
|
|
|
|
texture_filter = 1
|
|
|
|
position = Vector2(-21.5874, 1.58741)
|
2024-04-16 20:29:45 -04:00
|
|
|
rotation = 1.5708
|
2024-04-18 19:45:52 -04:00
|
|
|
scale = Vector2(5.50033, 5.50033)
|
2024-05-07 14:29:47 -04:00
|
|
|
sprite_frames = SubResource("SpriteFrames_p5dvv")
|
|
|
|
autoplay = "default"
|
2024-04-16 20:29:45 -04:00
|
|
|
|
|
|
|
[node name="Gun2" type="Marker2D" parent="."]
|
|
|
|
position = Vector2(-224, 284)
|
|
|
|
rotation = 2.0944
|
|
|
|
script = ExtResource("3_kffl0")
|
|
|
|
bullet = ExtResource("4_tfncc")
|
|
|
|
|
|
|
|
[node name="Gun3" type="Marker2D" parent="."]
|
|
|
|
position = Vector2(-224, -284)
|
|
|
|
rotation = 4.18879
|
|
|
|
script = ExtResource("3_kffl0")
|
|
|
|
bullet = ExtResource("4_tfncc")
|
|
|
|
|
|
|
|
[node name="Gun" type="Marker2D" parent="."]
|
|
|
|
position = Vector2(272, 0)
|
|
|
|
script = ExtResource("3_kffl0")
|
|
|
|
bullet = ExtResource("4_tfncc")
|
|
|
|
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
|
|
autostart = true
|
|
|
|
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
|
|
|
position = Vector2(-8, 0)
|
|
|
|
polygon = PackedVector2Array(-80, -104, 100, 0, -80, 104)
|
|
|
|
|
2024-04-24 14:57:29 -04:00
|
|
|
[connection signal="timeout" from="Timer" to="." method="destroy"]
|
2024-04-16 20:29:45 -04:00
|
|
|
[connection signal="timeout" from="Timer" to="Gun2" method="shoot"]
|
|
|
|
[connection signal="timeout" from="Timer" to="Gun3" method="shoot"]
|
|
|
|
[connection signal="timeout" from="Timer" to="Gun" method="shoot"]
|