|
| 1 | +[gd_scene load_steps=13 format=3 uid="uid://bfh812sfnsg66"] |
| 2 | + |
| 3 | +[ext_resource type="Script" path="res://Scripts/Objects/Ring.gd" id="1_6ff7w"] |
| 4 | +[ext_resource type="Texture2D" uid="uid://dd5w4k780vuop" path="res://Graphics/Items/big_ring.png" id="2_hoyhl"] |
| 5 | + |
| 6 | +[sub_resource type="AtlasTexture" id="AtlasTexture_sknf7"] |
| 7 | +atlas = ExtResource("2_hoyhl") |
| 8 | +region = Rect2(0, 0, 32, 32) |
| 9 | + |
| 10 | +[sub_resource type="AtlasTexture" id="AtlasTexture_0pr6h"] |
| 11 | +atlas = ExtResource("2_hoyhl") |
| 12 | +region = Rect2(32, 0, 32, 32) |
| 13 | + |
| 14 | +[sub_resource type="AtlasTexture" id="AtlasTexture_4do3f"] |
| 15 | +atlas = ExtResource("2_hoyhl") |
| 16 | +region = Rect2(64, 0, 32, 32) |
| 17 | + |
| 18 | +[sub_resource type="AtlasTexture" id="AtlasTexture_dn0vu"] |
| 19 | +atlas = ExtResource("2_hoyhl") |
| 20 | +region = Rect2(96, 0, 32, 32) |
| 21 | + |
| 22 | +[sub_resource type="AtlasTexture" id="AtlasTexture_v2sjc"] |
| 23 | +atlas = ExtResource("2_hoyhl") |
| 24 | +region = Rect2(128, 0, 32, 32) |
| 25 | + |
| 26 | +[sub_resource type="AtlasTexture" id="AtlasTexture_jmjrx"] |
| 27 | +atlas = ExtResource("2_hoyhl") |
| 28 | +region = Rect2(160, 0, 32, 32) |
| 29 | + |
| 30 | +[sub_resource type="AtlasTexture" id="AtlasTexture_knc7v"] |
| 31 | +atlas = ExtResource("2_hoyhl") |
| 32 | +region = Rect2(192, 0, 32, 32) |
| 33 | + |
| 34 | +[sub_resource type="AtlasTexture" id="AtlasTexture_7qygs"] |
| 35 | +atlas = ExtResource("2_hoyhl") |
| 36 | +region = Rect2(224, 0, 32, 32) |
| 37 | + |
| 38 | +[sub_resource type="SpriteFrames" id="2"] |
| 39 | +animations = [{ |
| 40 | +"frames": [{ |
| 41 | +"duration": 1.0, |
| 42 | +"texture": SubResource("AtlasTexture_sknf7") |
| 43 | +}, { |
| 44 | +"duration": 1.0, |
| 45 | +"texture": SubResource("AtlasTexture_0pr6h") |
| 46 | +}, { |
| 47 | +"duration": 1.0, |
| 48 | +"texture": SubResource("AtlasTexture_4do3f") |
| 49 | +}, { |
| 50 | +"duration": 1.0, |
| 51 | +"texture": SubResource("AtlasTexture_dn0vu") |
| 52 | +}, { |
| 53 | +"duration": 1.0, |
| 54 | +"texture": SubResource("AtlasTexture_v2sjc") |
| 55 | +}, { |
| 56 | +"duration": 1.0, |
| 57 | +"texture": SubResource("AtlasTexture_jmjrx") |
| 58 | +}, { |
| 59 | +"duration": 1.0, |
| 60 | +"texture": SubResource("AtlasTexture_knc7v") |
| 61 | +}, { |
| 62 | +"duration": 1.0, |
| 63 | +"texture": SubResource("AtlasTexture_7qygs") |
| 64 | +}], |
| 65 | +"loop": true, |
| 66 | +"name": &"default", |
| 67 | +"speed": 10.0 |
| 68 | +}] |
| 69 | + |
| 70 | +[sub_resource type="RectangleShape2D" id="1"] |
| 71 | +size = Vector2(29, 29) |
| 72 | + |
| 73 | +[node name="HyperRing" type="Node2D"] |
| 74 | +z_index = 1 |
| 75 | +script = ExtResource("1_6ff7w") |
| 76 | + |
| 77 | +[node name="RingSprite" type="AnimatedSprite2D" parent="."] |
| 78 | +process_mode = 1 |
| 79 | +z_index = 4 |
| 80 | +sprite_frames = SubResource("2") |
| 81 | +autoplay = "default" |
| 82 | + |
| 83 | +[node name="Hitbox" type="Area2D" parent="."] |
| 84 | +collision_layer = 0 |
| 85 | +collision_mask = 4096 |
| 86 | + |
| 87 | +[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"] |
| 88 | +modulate = Color(1, 0, 0.819608, 1) |
| 89 | +shape = SubResource("1") |
| 90 | + |
| 91 | +[node name="FloorCheck" type="RayCast2D" parent="."] |
| 92 | +target_position = Vector2(0, 16) |
| 93 | + |
| 94 | +[connection signal="area_shape_entered" from="Hitbox" to="." method="_on_Hitbox_area_shape_entered"] |
| 95 | +[connection signal="body_entered" from="Hitbox" to="." method="_on_Hitbox_body_entered"] |
| 96 | +[connection signal="body_exited" from="Hitbox" to="." method="_on_Hitbox_body_exited"] |
0 commit comments