150 lines
4.3 KiB
Text
150 lines
4.3 KiB
Text
[gd_scene load_steps=20 format=3 uid="uid://mlb0a8hdbtqw"]
|
|
|
|
[ext_resource type="Script" path="res://riangle-tar.gd" id="1_81oja"]
|
|
[ext_resource type="Texture2D" uid="uid://c562ut0sxn6we" path="res://riangle-tar.png" id="2_1actw"]
|
|
[ext_resource type="Script" path="res://LockedRotation.gd" id="4_eemlr"]
|
|
[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
|
|
|
|
[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,
|
|
"texture": SubResource("AtlasTexture_fr0hq")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_fr0hq")
|
|
}, {
|
|
"duration": 1.0,
|
|
"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")
|
|
}],
|
|
"loop": false,
|
|
"name": &"default",
|
|
"speed": 10.0
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_cq436"]
|
|
radius = 254.0
|
|
|
|
[node name="Riangle" type="RigidBody2D" groups=["destructible", "enemy"]]
|
|
physics_material_override = SubResource("PhysicsMaterial_btknm")
|
|
gravity_scale = 1.66533e-16
|
|
freeze = true
|
|
linear_damp = 0.2
|
|
script = ExtResource("1_81oja")
|
|
|
|
[node name="Sprite2D" type="AnimatedSprite2D" parent="."]
|
|
texture_filter = 1
|
|
position = Vector2(-7, 8.84254e-14)
|
|
rotation = 1.5708
|
|
scale = Vector2(0.903, 0.903)
|
|
sprite_frames = SubResource("SpriteFrames_xlxob")
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
|
position = Vector2(2.08165e-12, 2.08165e-12)
|
|
scale = Vector2(0.25, 0.25)
|
|
polygon = PackedVector2Array(-80, -104, 100, 0, -80, 104)
|
|
|
|
[node name="ExplosionRadius" type="Sprite2D" parent="."]
|
|
visible = false
|
|
modulate = Color(0.768627, 0.254902, 0.254902, 1)
|
|
texture_filter = 1
|
|
scale = Vector2(4, 4)
|
|
texture = ExtResource("5_e5pjh")
|
|
script = ExtResource("4_eemlr")
|
|
|
|
[node name="Explosion" type="Area2D" parent="."]
|
|
rotation = -1.5708
|
|
collision_layer = 3
|
|
collision_mask = 3
|
|
monitorable = false
|
|
|
|
[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"]
|