ape-ame/riangle-tar.tscn

154 lines
4.4 KiB
Text
Raw Normal View History

2024-04-29 16:27:25 -04:00
[gd_scene load_steps=20 format=3 uid="uid://mlb0a8hdbtqw"]
2024-04-26 16:32:56 -04:00
2024-04-29 16:27:25 -04:00
[ext_resource type="Script" path="res://riangle-tar.gd" id="1_81oja"]
2024-04-26 16:32:56 -04:00
[ext_resource type="Texture2D" uid="uid://c562ut0sxn6we" path="res://riangle-tar.png" id="2_1actw"]
2024-05-06 10:05:42 -04:00
[ext_resource type="Script" path="res://Blink.gd" id="4_dm5t8"]
2024-04-29 16:27:25 -04:00
[ext_resource type="Texture2D" uid="uid://yq2flqkxnw7u" path="res://dotted circle.png" id="5_e5pjh"]
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_btknm"]
friction = 0.0
bounce = 1.0
2024-04-26 16:32:56 -04:00
[sub_resource type="AtlasTexture" id="AtlasTexture_fr0hq"]
atlas = ExtResource("2_1actw")
region = Rect2(0, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_ndbtj"]
atlas = ExtResource("2_1actw")
region = Rect2(64, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_46les"]
atlas = ExtResource("2_1actw")
region = Rect2(128, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_8g8fq"]
atlas = ExtResource("2_1actw")
region = Rect2(192, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_u4hko"]
atlas = ExtResource("2_1actw")
region = Rect2(256, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_6m3wq"]
atlas = ExtResource("2_1actw")
region = Rect2(320, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_n2fc5"]
atlas = ExtResource("2_1actw")
region = Rect2(384, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_jeriy"]
atlas = ExtResource("2_1actw")
region = Rect2(448, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_phsui"]
atlas = ExtResource("2_1actw")
region = Rect2(512, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_n314x"]
atlas = ExtResource("2_1actw")
region = Rect2(576, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_xm4pv"]
atlas = ExtResource("2_1actw")
region = Rect2(640, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_cojx6"]
atlas = ExtResource("2_1actw")
region = Rect2(704, 0, 64, 64)
[sub_resource type="SpriteFrames" id="SpriteFrames_xlxob"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_fr0hq")
}, {
"duration": 1.0,
2024-04-29 16:27:25 -04:00
"texture": SubResource("AtlasTexture_fr0hq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fr0hq")
}, {
"duration": 1.0,
2024-04-26 16:32:56 -04:00
"texture": SubResource("AtlasTexture_ndbtj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_46les")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8g8fq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_u4hko")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6m3wq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_n2fc5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jeriy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_phsui")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_n314x")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xm4pv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cojx6")
}],
2024-04-29 16:27:25 -04:00
"loop": false,
2024-04-26 16:32:56 -04:00
"name": &"default",
2024-04-29 16:27:25 -04:00
"speed": 10.0
2024-04-26 16:32:56 -04:00
}]
2024-04-29 16:27:25 -04:00
[sub_resource type="CircleShape2D" id="CircleShape2D_cq436"]
2024-05-06 10:05:42 -04:00
radius = 193.023
2024-04-29 16:27:25 -04:00
[node name="Riangle" type="RigidBody2D" groups=["destructible", "enemy"]]
physics_material_override = SubResource("PhysicsMaterial_btknm")
gravity_scale = 1.66533e-16
2024-04-30 15:37:00 -04:00
freeze = true
2024-04-29 16:27:25 -04:00
linear_damp = 0.2
script = ExtResource("1_81oja")
2024-04-26 16:32:56 -04:00
[node name="Sprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
2024-04-29 16:27:25 -04:00
position = Vector2(-7, 8.84254e-14)
2024-04-26 16:32:56 -04:00
rotation = 1.5708
2024-05-06 10:05:42 -04:00
scale = Vector2(1.2, 1.2)
2024-04-26 16:32:56 -04:00
sprite_frames = SubResource("SpriteFrames_xlxob")
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
2024-04-29 16:27:25 -04:00
position = Vector2(2.08165e-12, 2.08165e-12)
2024-05-06 10:05:42 -04:00
scale = Vector2(1.2, 1.2)
polygon = PackedVector2Array(-20.8333, -31.6667, 25.8333, 0, -20.8333, 32.5)
2024-04-26 16:32:56 -04:00
2024-04-29 16:27:25 -04:00
[node name="ExplosionRadius" type="Sprite2D" parent="."]
modulate = Color(0.768627, 0.254902, 0.254902, 1)
texture_filter = 1
2024-05-06 10:05:42 -04:00
scale = Vector2(3, 3)
2024-04-29 16:27:25 -04:00
texture = ExtResource("5_e5pjh")
2024-05-06 10:05:42 -04:00
script = ExtResource("4_dm5t8")
off_color = Color(1, 1, 1, 0.596078)
[node name="Timer" type="Timer" parent="ExplosionRadius"]
wait_time = 0.5
autostart = true
2024-04-29 16:27:25 -04:00
[node name="Explosion" type="Area2D" parent="."]
rotation = -1.5708
collision_layer = 3
collision_mask = 3
[node name="CollisionShape2D" type="CollisionShape2D" parent="Explosion"]
shape = SubResource("CircleShape2D_cq436")
[connection signal="animation_finished" from="Sprite2D" to="." method="explode"]
[connection signal="body_entered" from="Explosion" to="." method="_on_explosion_body_entered"]