-
Notifications
You must be signed in to change notification settings - Fork 0
/
zombie.tscn
52 lines (39 loc) · 1.46 KB
/
zombie.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
49
50
51
52
[gd_scene load_steps=6 format=2]
[ext_resource path="res://textura.jpg" type="Texture" id=1]
[ext_resource path="res://zombie.gd" type="Script" id=2]
[ext_resource path="res://zvuki/pulya-vonzaetsya-v-telo-myaso-6898.wav" type="AudioStream" id=3]
[sub_resource type="RectangleShape2D" id=1]
[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 18, 5 )
[node name="zombie" type="KinematicBody2D"]
collision_layer = 0
collision_mask = 10
script = ExtResource( 2 )
[node name="zombie" type="Sprite" parent="."]
modulate = Color( 0.309804, 0.482353, 0.223529, 1 )
scale = Vector2( 4, 4 )
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
shape = SubResource( 1 )
[node name="damag po igroku" type="Area2D" parent="."]
collision_layer = 16
collision_mask = 16
[node name="CollisionShape2D" type="CollisionShape2D" parent="damag po igroku"]
visible = false
position = Vector2( 0, 5 )
shape = SubResource( 4 )
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 4
collision_mask = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
visible = false
shape = SubResource( 1 )
[node name="prizhok" type="RayCast2D" parent="."]
enabled = true
cast_to = Vector2( 0, 20 )
collision_mask = 8
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 3 )
max_distance = 550.0
[connection signal="body_entered" from="Area2D" to="." method="_food_is_here"]