diff options
author | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-09-17 22:02:33 +0100 |
---|---|---|
committer | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-09-17 22:02:33 +0100 |
commit | 0abec8156bd944aa883d544850ee1187219ba943 (patch) | |
tree | 55e222da361d176b0ba79611704b56e2d942a831 /test.tscn |
Initial commit
Diffstat (limited to 'test.tscn')
-rw-r--r-- | test.tscn | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/test.tscn b/test.tscn new file mode 100644 index 0000000..a8eb607 --- /dev/null +++ b/test.tscn @@ -0,0 +1,46 @@ +[gd_scene load_steps=6 format=3 uid="uid://cuyu3mwm6sp3c"] + +[ext_resource type="PackedScene" uid="uid://cc1m2a1obsyn4" path="res://addons/fpc/character.tscn" id="1_00nvw"] +[ext_resource type="Script" path="res://scripts/player.gd" id="1_cfdah"] +[ext_resource type="PackedScene" uid="uid://cuad3khwmhnsa" path="res://prefabs/enemy.tscn" id="3_1yqys"] +[ext_resource type="PackedScene" uid="uid://dcu5otkh0t1pg" path="res://prefabs/level_generator.tscn" id="3_ykfds"] + +[sub_resource type="Environment" id="Environment_2poci"] +background_color = Color(0.130548, 0.170599, 0.433834, 1) +ambient_light_source = 2 +ambient_light_color = Color(0.244776, 0.244776, 0.244776, 1) +ambient_light_energy = 2.27 + +[node name="Node3D" type="WorldEnvironment"] +environment = SubResource("Environment_2poci") + +[node name="OmniLight3D" type="DirectionalLight3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 0, -0.0795405) + +[node name="Player" parent="." node_paths=PackedStringArray("HEAD") instance=ExtResource("1_00nvw")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.97532, -1.28752, 0.602886) +motion_mode = 1 +HEAD = NodePath("PlayerCam") +LEFT = "left" +RIGHT = "right" +FORWARD = "forward" +BACKWARD = "backward" +jumping_enabled = false +sprint_enabled = false +crouch_enabled = false +gravity_enabled = false + +[node name="PlayerCam" type="Node3D" parent="Player"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0) +script = ExtResource("1_cfdah") +grapple_distance = 50.0 + +[node name="Camera3D" type="Camera3D" parent="Player/PlayerCam"] +current = true + +[node name="Enemy" parent="." node_paths=PackedStringArray("target") instance=ExtResource("3_1yqys")] +target = NodePath("../Player") + +[node name="LevelGenerator" parent="." instance=ExtResource("3_ykfds")] + +[connection signal="astar_created" from="LevelGenerator" to="Enemy" method="_on_level_generator_astar_created"] |