-
Notifications
You must be signed in to change notification settings - Fork 1
/
player.tscn
58 lines (45 loc) · 2.27 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
[gd_scene load_steps=9 format=3 uid="uid://u2dpwucgpafo"]
[ext_resource type="Script" path="res://scripts/player.gd" id="1_c27lh"]
[ext_resource type="PackedScene" uid="uid://cvsopaadenei" path="res://assets/models/flash_light_for_games.glb" id="2_ipano"]
[ext_resource type="Script" path="res://assets/models/flash_light_for_games.gd" id="3_eewhn"]
[ext_resource type="Script" path="res://torch.gd" id="4_7e1vy"]
[ext_resource type="Texture2D" uid="uid://c2tswsgih11gv" path="res://assets/hurt.png" id="4_g4q0c"]
[ext_resource type="PackedScene" uid="uid://dj7x8ogugk3io" path="res://UI/pause.tscn" id="5_0ps4g"]
[sub_resource type="CapsuleMesh" id="CapsuleMesh_knuir"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ni0cp"]
[node name="player" type="CharacterBody3D" groups=["player"]]
floor_max_angle = 1.0472
script = ExtResource("1_c27lh")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
mesh = SubResource("CapsuleMesh_knuir")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("CapsuleShape3D_ni0cp")
[node name="head" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0366474, 1.69112, 0)
[node name="Camera3D" type="Camera3D" parent="head"]
unique_name_in_owner = true
[node name="torch" parent="head/Camera3D" instance=ExtResource("2_ipano")]
transform = Transform3D(-0.01, 0, -8.74228e-10, 0, 0.01, 0, 8.74228e-10, 0, -0.01, 0.423225, -0.552791, -0.540902)
script = ExtResource("3_eewhn")
[node name="SpotLight3D" type="SpotLight3D" parent="head/Camera3D/torch"]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
light_color = Color(1, 1, 0.592157, 1)
light_energy = 16.0
light_indirect_energy = 16.0
light_volumetric_fog_energy = 16.0
spot_range = 4096.0
spot_angle = 15.0
script = ExtResource("4_7e1vy")
[node name="hurt" type="TextureRect" parent="."]
modulate = Color(1, 1, 1, 0)
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("4_g4q0c")
expand_mode = 2
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="Pause" parent="CanvasLayer" instance=ExtResource("5_0ps4g")]