gmtk-2024/components/Viruling.tscn

216 lines
5.7 KiB
Text
Raw Normal View History

[gd_scene load_steps=27 format=3 uid="uid://bxbpvgteyfh02"]
[ext_resource type="Script" path="res://scripts/viruling.gd" id="1_eevnl"]
[ext_resource type="Texture2D" uid="uid://djjun1p0rx1ap" path="res://assets/export/viruling-.png" id="1_i45rj"]
[sub_resource type="CircleShape2D" id="CircleShape2D_gi7h4"]
radius = 17.0294
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_ey3ug"]
atlas = ExtResource("1_i45rj")
region = Rect2(0, 0, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_yg44u"]
atlas = ExtResource("1_i45rj")
region = Rect2(32, 96, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_10kxp"]
atlas = ExtResource("1_i45rj")
region = Rect2(64, 96, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_asgry"]
atlas = ExtResource("1_i45rj")
region = Rect2(96, 96, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_shkjk"]
atlas = ExtResource("1_i45rj")
region = Rect2(128, 96, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_n7xsd"]
atlas = ExtResource("1_i45rj")
region = Rect2(0, 128, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_b78uq"]
atlas = ExtResource("1_i45rj")
region = Rect2(32, 0, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_yk2as"]
atlas = ExtResource("1_i45rj")
region = Rect2(64, 0, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_bp4sa"]
atlas = ExtResource("1_i45rj")
region = Rect2(96, 0, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_qe65k"]
atlas = ExtResource("1_i45rj")
region = Rect2(128, 0, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_ii7ue"]
atlas = ExtResource("1_i45rj")
region = Rect2(0, 32, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_2mb0r"]
atlas = ExtResource("1_i45rj")
region = Rect2(32, 32, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_rwb2y"]
atlas = ExtResource("1_i45rj")
region = Rect2(64, 32, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_muc0u"]
atlas = ExtResource("1_i45rj")
region = Rect2(96, 32, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_lh2dq"]
atlas = ExtResource("1_i45rj")
region = Rect2(128, 32, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_ynt0w"]
atlas = ExtResource("1_i45rj")
region = Rect2(0, 64, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_gys0u"]
atlas = ExtResource("1_i45rj")
region = Rect2(32, 64, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_tspca"]
atlas = ExtResource("1_i45rj")
region = Rect2(64, 64, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_e81jk"]
atlas = ExtResource("1_i45rj")
region = Rect2(96, 64, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_4h8vk"]
atlas = ExtResource("1_i45rj")
region = Rect2(128, 64, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_4j73j"]
atlas = ExtResource("1_i45rj")
region = Rect2(0, 96, 32, 32)
2024-08-17 21:39:51 +00:00
[sub_resource type="SpriteFrames" id="SpriteFrames_paa88"]
animations = [{
"frames": [{
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_ey3ug")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_yg44u")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_10kxp")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_asgry")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_shkjk")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_n7xsd")
}],
"loop": true,
"name": &"death",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_ey3ug")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_b78uq")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_yk2as")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_bp4sa")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_qe65k")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_ii7ue")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_2mb0r")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_rwb2y")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_ey3ug")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_muc0u")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_lh2dq")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_ynt0w")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_gys0u")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_tspca")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_e81jk")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_4h8vk")
}, {
"duration": 1.0,
2024-08-17 21:39:51 +00:00
"texture": SubResource("AtlasTexture_4j73j")
}],
"loop": true,
"name": &"spin",
"speed": 10.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_kpyhc"]
radius = 16.0
[node name="Viruling" type="CharacterBody2D"]
collision_layer = 3
collision_mask = 2
script = ExtResource("1_eevnl")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_gi7h4")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
2024-08-17 21:39:51 +00:00
sprite_frames = SubResource("SpriteFrames_paa88")
animation = &"spin"
metadata/_aseprite_wizard_config_ = {
"layer": "",
"o_ex_p": "",
"o_folder": "res://assets/export",
"o_name": "viruling-",
"only_visible": true,
"slice": "",
2024-08-17 21:39:51 +00:00
"source": "res://assets/Viruling.aseprite"
}
metadata/_aseprite_wizard_source_file_hash_ = "e9452ba317bc3563d2373e8b9d673cef"
metadata/_aseprite_wizard_interface_config_ = {
"output_section": true
}
[node name="ContactHitbox" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="ContactHitbox"]
shape = SubResource("CircleShape2D_kpyhc")
debug_color = Color(0.972226, 0, 0.442516, 0.42)
2024-08-17 21:39:51 +00:00
[node name="AttackTimer" type="Timer" parent="."]
one_shot = true
[node name="DeathTimer" type="Timer" parent="."]
wait_time = 0.55
one_shot = true