54 lines
1.7 KiB
Text
54 lines
1.7 KiB
Text
[gd_scene load_steps=9 format=3 uid="uid://ufu0fyp248bh"]
|
|
|
|
[ext_resource type="Script" uid="uid://cpxx4ekyjncfp" path="res://comet/comet.gd" id="1_hmwee"]
|
|
[ext_resource type="Texture2D" uid="uid://g7rcca0n4xpv" path="res://assets/obstacle-Sheet.png" id="3_o6e77"]
|
|
[ext_resource type="Texture2D" uid="uid://vn8hx6amejdh" path="res://assets/light-texture.png" id="3_t8vxv"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_1lw4w"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_o6e77"]
|
|
atlas = ExtResource("3_o6e77")
|
|
region = Rect2(0, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_t8vxv"]
|
|
atlas = ExtResource("3_o6e77")
|
|
region = Rect2(32, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_vml31"]
|
|
atlas = ExtResource("3_o6e77")
|
|
region = Rect2(64, 0, 32, 32)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_wuyh1"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_o6e77")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_t8vxv")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_vml31")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[node name="comet" type="Area2D"]
|
|
texture_filter = 1
|
|
scale = Vector2(4, 4)
|
|
script = ExtResource("1_hmwee")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_1lw4w")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = SubResource("SpriteFrames_wuyh1")
|
|
|
|
[node name="PointLight2D" type="PointLight2D" parent="."]
|
|
color = Color(0.999993, 0.272993, 0.222369, 1)
|
|
energy = 1.62
|
|
texture = ExtResource("3_t8vxv")
|
|
|
|
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|