-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayer.tscn
160 lines (133 loc) · 4.41 KB
/
Player.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[gd_scene load_steps=16 format=2]
[ext_resource path="res://Player.gd" type="Script" id=1]
[ext_resource path="res://Characters/venus.tres" type="SpriteFrames" id=2]
[ext_resource path="res://sprites/light_01.png" type="Texture" id=3]
[ext_resource path="res://Fonts/statusplz.ttf" type="DynamicFontData" id=4]
[ext_resource path="res://sound/possess.wav" type="AudioStream" id=5]
[ext_resource path="res://sound/sfx_movement_footstepsloop4_fast.wav" type="AudioStream" id=6]
[sub_resource type="CanvasItemMaterial" id=1]
render_priority = 1
[sub_resource type="Gradient" id=2]
offsets = PoolRealArray( 0, 0.0957447, 0.193617, 0.297872, 0.391489, 0.478723, 1 )
colors = PoolColorArray( 1, 0, 0, 1, 0.945313, 1, 0, 1, 0.110533, 1, 0.103529, 1, 0.257573, 0.233624, 1, 1, 0.900719, 0.331163, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.482353 )
[sub_resource type="GradientTexture" id=3]
gradient = SubResource( 2 )
[sub_resource type="ParticlesMaterial" id=4]
emission_shape = 1
emission_sphere_radius = 8.0
flag_disable_z = true
gravity = Vector3( 0, 0, 0 )
orbit_velocity = 0.0
orbit_velocity_random = 0.0
scale = 3.0
scale_random = 0.2
color_ramp = SubResource( 3 )
[sub_resource type="DynamicFont" id=5]
outline_size = 1
outline_color = Color( 0, 0, 0, 1 )
use_mipmaps = true
font_data = ExtResource( 4 )
[sub_resource type="CanvasItemMaterial" id=6]
[sub_resource type="CapsuleShape2D" id=7]
radius = 2.75
height = 0.0
[sub_resource type="CircleShape2D" id=8]
radius = 61.2973
[sub_resource type="CircleShape2D" id=9]
radius = 46.5772
[node name="Player" type="KinematicBody2D"]
scale = Vector2( 0.5, 0.5 )
collision_layer = 2
collision_mask = 5
collision/safe_margin = 0.2
script = ExtResource( 1 )
[node name="SeekerTrail" type="Particles2D" parent="."]
visible = false
material = SubResource( 1 )
position = Vector2( 0, 21.1893 )
z_as_relative = false
amount = 160
lifetime = 15.0
explosiveness = 0.01
visibility_rect = Rect2( -99999, -99999, 999999, 999999 )
local_coords = false
draw_order = 1
process_material = SubResource( 4 )
[node name="PlayerName" type="Label" parent="."]
visible = false
light_mask = 2
margin_left = -48.9672
margin_top = -48.26
margin_right = 51.0329
margin_bottom = -34.26
custom_fonts/font = SubResource( 5 )
text = "noname"
align = 1
valign = 1
clip_text = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Camera2D" type="Camera2D" parent="."]
zoom = Vector2( 0.25, 0.25 )
smoothing_enabled = true
smoothing_speed = 4.0
[node name="Sprite" type="AnimatedSprite" parent="."]
material = SubResource( 6 )
frames = ExtResource( 2 )
animation = "back"
playing = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( -1.157, 16 )
rotation = 1.5708
scale = Vector2( 2.78133, 2.80522 )
shape = SubResource( 7 )
[node name="Flashlight" type="Light2D" parent="."]
position = Vector2( 0.525024, 0 )
texture = ExtResource( 3 )
texture_scale = 0.5
energy = 1.05
range_item_cull_mask = -2147483647
shadow_enabled = true
shadow_filter = 4
shadow_filter_smooth = 15.1
[node name="StaminaCooldown" type="Timer" parent="."]
wait_time = 3.0
one_shot = true
[node name="HeldItem" type="TextureRect" parent="."]
margin_left = -12.0
margin_top = -44.0
margin_right = 12.0
margin_bottom = -20.0
expand = true
stretch_mode = 6
__meta__ = {
"_edit_use_anchors_": false
}
[node name="RayCast2D" type="RayCast2D" parent="."]
enabled = true
[node name="KillRadius" type="Area2D" parent="."]
visible = false
collision_layer = 0
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="KillRadius"]
shape = SubResource( 8 )
[node name="ZombieRadius" type="Area2D" parent="."]
monitoring = false
collision_layer = 2147483648
collision_mask = 2
[node name="Slowdown" type="CollisionShape2D" parent="ZombieRadius"]
shape = SubResource( 9 )
[node name="SlowTimer" type="Timer" parent="."]
wait_time = 2.5
one_shot = true
[node name="PlayerDeathSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 5 )
[node name="Footsteps" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 6 )
max_distance = 256.0
attenuation = 0.420447
[connection signal="timeout" from="StaminaCooldown" to="." method="_on_StaminaCooldown_timeout"]
[connection signal="body_entered" from="KillRadius" to="." method="_on_KillRadius_body_entered"]
[connection signal="body_entered" from="ZombieRadius" to="." method="_on_ZombieRadius_body_entered"]
[connection signal="timeout" from="SlowTimer" to="." method="_on_SlowTimer_timeout"]