-
Notifications
You must be signed in to change notification settings - Fork 0
/
Lamp.tscn
48 lines (39 loc) · 1.43 KB
/
Lamp.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Lamp.gd" type="Script" id=1]
[ext_resource path="res://Sprites/Lamp/lamp 1.png" type="Texture" id=2]
[ext_resource path="res://Sprites/lamp fire/1.png" type="Texture" id=3]
[ext_resource path="res://Sprites/lamp fire/2.png" type="Texture" id=4]
[ext_resource path="res://Sprites/lamp fire/3.png" type="Texture" id=5]
[ext_resource path="res://Sprites/lamp fire/4.png" type="Texture" id=6]
[sub_resource type="CapsuleShape2D" id=1]
radius = 41.5462
height = 36.6339
[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]
[node name="Enemy" type="KinematicBody2D"]
collision_layer = 18
collision_mask = 18
script = ExtResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
rotation = 1.5708
shape = SubResource( 1 )
[node name="ShotTimer" type="Timer" parent="."]
wait_time = 3.0
autostart = true
[node name="VisibilityEnabler2D" type="VisibilityEnabler2D" parent="."]
physics_process_parent = true
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
scale = Vector2( 0.4, 0.4 )
z_index = -1
frames = SubResource( 2 )
frame = 3
playing = true
[connection signal="timeout" from="ShotTimer" to="." method="_on_ShotTimer_timeout"]