OutOfBody/Entities/Lazer.tscn

130 lines
3.2 KiB
Plaintext

[gd_scene load_steps=15 format=3 uid="uid://bisrejbnlhlui"]
[ext_resource type="Texture2D" uid="uid://c38fo4o7uf5c3" path="res://Sprite Sheets/OoB elements.png" id="1_46tey"]
[ext_resource type="Script" path="res://Scripts/lazer.cs" id="1_nwmk1"]
[ext_resource type="Texture2D" uid="uid://s2cmbu5hdci" path="res://Sprite Sheets/RedElements.png" id="3_g3f15"]
[sub_resource type="AtlasTexture" id="AtlasTexture_e38kv"]
atlas = ExtResource("1_46tey")
region = Rect2(0, 40, 20, 20)
[sub_resource type="AtlasTexture" id="AtlasTexture_aqypj"]
atlas = ExtResource("1_46tey")
region = Rect2(20, 40, 20, 20)
[sub_resource type="AtlasTexture" id="AtlasTexture_v1pfp"]
atlas = ExtResource("1_46tey")
region = Rect2(40, 40, 20, 20)
[sub_resource type="AtlasTexture" id="AtlasTexture_5s8na"]
atlas = ExtResource("1_46tey")
region = Rect2(60, 40, 20, 20)
[sub_resource type="AtlasTexture" id="AtlasTexture_hcq4o"]
atlas = ExtResource("3_g3f15")
region = Rect2(0, 40, 20, 20)
[sub_resource type="AtlasTexture" id="AtlasTexture_scn70"]
atlas = ExtResource("3_g3f15")
region = Rect2(20, 40, 20, 20)
[sub_resource type="AtlasTexture" id="AtlasTexture_73s05"]
atlas = ExtResource("3_g3f15")
region = Rect2(40, 40, 20, 20)
[sub_resource type="AtlasTexture" id="AtlasTexture_3p3so"]
atlas = ExtResource("3_g3f15")
region = Rect2(60, 40, 20, 20)
[sub_resource type="SpriteFrames" id="SpriteFrames_h30y6"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_e38kv")
}],
"loop": true,
"name": &"0",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_aqypj")
}],
"loop": true,
"name": &"1",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_v1pfp")
}],
"loop": true,
"name": &"2",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_5s8na")
}],
"loop": true,
"name": &"3",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_hcq4o")
}],
"loop": true,
"name": &"Red0",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_scn70")
}],
"loop": true,
"name": &"Red1",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_73s05")
}],
"loop": true,
"name": &"Red2",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_3p3so")
}],
"loop": true,
"name": &"Red3",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7qsrl"]
[sub_resource type="CircleShape2D" id="CircleShape2D_6ocbt"]
radius = 1.0
[node name="Lazer" type="StaticBody2D" groups=["Lazer", "Obsticals"]]
z_index = 1
script = ExtResource("1_nwmk1")
[node name="LazerSprite" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_h30y6")
animation = &"1"
[node name="LazerCollision" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_7qsrl")
debug_color = Color(0, 0.647059, 0.207843, 0.419608)
[node name="Probe" type="Area2D" parent="."]
[node name="ProbeCollision" type="CollisionShape2D" parent="Probe"]
shape = SubResource("CircleShape2D_6ocbt")
debug_color = Color(1, 1, 1, 0.419608)
[connection signal="body_entered" from="Probe" to="." method="_on_probe_body_entered"]