48 lines
1.6 KiB
Text
48 lines
1.6 KiB
Text
[gd_scene load_steps=4 format=3 uid="uid://yu50iyftoyaj"]
|
|
|
|
[ext_resource type="SpriteFrames" uid="uid://dt3chppm3qub7" path="res://riangle.gif" id="1_5ndal"]
|
|
[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"]
|
|
|
|
[node name="Riangle" type="StaticBody2D" groups=["destructible"]]
|
|
scale = Vector2(0.25, 0.25)
|
|
|
|
[node name="Sprite2D" type="AnimatedSprite2D" parent="."]
|
|
texture_filter = 1
|
|
position = Vector2(-21.5874, 1.58741)
|
|
rotation = 1.5708
|
|
scale = Vector2(5.50033, 5.50033)
|
|
sprite_frames = ExtResource("1_5ndal")
|
|
animation = &"gif"
|
|
autoplay = "gif"
|
|
frame_progress = 0.383366
|
|
speed_scale = 2.0
|
|
|
|
[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)
|
|
|
|
[connection signal="timeout" from="Timer" to="." method="queue_free"]
|
|
[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"]
|