tangled
alpha
login
or
join now
cass.cityboundforest.com
/
pathdelver
0
fork
atom
A dungeon delver roguelike using Pathfinder 2nd edition rules
0
fork
atom
overview
issues
pulls
pipelines
Starting to work on camera functions
cass.cityboundforest.com
6 months ago
48915bbf
552de248
+39
-21
3 changed files
expand all
collapse all
unified
split
camera
camera.tscn
dungeonRoom
dungeonRoom.tscn
project.godot
+10
camera/camera.tscn
···
1
1
+
[gd_scene format=3 uid="uid://bby3edcc724cg"]
2
2
+
3
3
+
[node name="Camera" type="Node3D"]
4
4
+
5
5
+
[node name="SpringArm3D" type="SpringArm3D" parent="."]
6
6
+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.08832)
7
7
+
spring_length = 1.9
8
8
+
margin = 0.04
9
9
+
10
10
+
[node name="Camera3D" type="Camera3D" parent="SpringArm3D"]
+5
-1
dungeonRoom/dungeonRoom.tscn
···
1
1
-
[gd_scene load_steps=14 format=3 uid="uid://yk65ut0rtska"]
1
1
+
[gd_scene load_steps=15 format=3 uid="uid://yk65ut0rtska"]
2
2
3
3
[ext_resource type="Script" uid="uid://do7carntf751h" path="res://dungeonRoom/dungeonRoom.gd" id="1_emgf8"]
4
4
[ext_resource type="PackedScene" uid="uid://cfsbu6obqjsyu" path="res://dungeonRoom/room-parts/room-base.glb" id="2_4e5fn"]
···
13
13
[ext_resource type="PackedScene" uid="uid://b3xtyeqjwrq71" path="res://dungeonRoom/room-parts/stair-down.glb" id="11_iida7"]
14
14
[ext_resource type="PackedScene" uid="uid://d1i027bj7n610" path="res://dungeonRoom/room-parts/no-stair-down.glb" id="12_cr8g4"]
15
15
[ext_resource type="PackedScene" uid="uid://dcgyxrhcgxymb" path="res://dungeonRoom/room-parts/stair-up.glb" id="13_5dj8f"]
16
16
+
[ext_resource type="PackedScene" uid="uid://bby3edcc724cg" path="res://camera/camera.tscn" id="14_cr8g4"]
16
17
17
18
[node name="DungeonRoom" type="Node3D"]
18
19
script = ExtResource("1_emgf8")
···
48
49
49
50
[node name="stair-up" parent="." instance=ExtResource("13_5dj8f")]
50
51
visible = false
52
52
+
53
53
+
[node name="Camera" parent="." instance=ExtResource("14_cr8g4")]
54
54
+
transform = Transform3D(1, 0, 0, 0, 0.939693, 0.34202, 0, -0.34202, 0.939693, 0, 1.535, 0)
+24
-20
project.godot
···
26
26
27
27
[input]
28
28
29
29
-
Forward={
30
30
-
"deadzone": 0.2,
31
31
-
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":119,"location":0,"echo":false,"script":null)
32
32
-
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194320,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
33
33
-
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":1,"axis_value":-1.0,"script":null)
29
29
+
ui_left={
30
30
+
"deadzone": 0.5,
31
31
+
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194319,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
32
32
+
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":13,"pressure":0.0,"pressed":false,"script":null)
33
33
+
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":-1.0,"script":null)
34
34
+
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":97,"location":0,"echo":false,"script":null)
34
35
]
35
36
}
36
36
-
Backward={
37
37
-
"deadzone": 0.2,
38
38
-
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":115,"location":0,"echo":false,"script":null)
39
39
-
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194322,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
40
40
-
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":1,"axis_value":1.0,"script":null)
37
37
+
ui_right={
38
38
+
"deadzone": 0.5,
39
39
+
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194321,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
40
40
+
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":14,"pressure":0.0,"pressed":false,"script":null)
41
41
+
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":1.0,"script":null)
42
42
+
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":100,"location":0,"echo":false,"script":null)
41
43
]
42
44
}
43
43
-
Left={
44
44
-
"deadzone": 0.2,
45
45
-
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":97,"location":0,"echo":false,"script":null)
46
46
-
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194319,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
47
47
-
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":0,"axis_value":-1.0,"script":null)
45
45
+
ui_up={
46
46
+
"deadzone": 0.5,
47
47
+
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194320,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
48
48
+
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":11,"pressure":0.0,"pressed":false,"script":null)
49
49
+
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":1,"axis_value":-1.0,"script":null)
50
50
+
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":119,"location":0,"echo":false,"script":null)
48
51
]
49
52
}
50
50
-
Right={
51
51
-
"deadzone": 0.2,
52
52
-
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":100,"location":0,"echo":false,"script":null)
53
53
-
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194321,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
54
54
-
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":0,"axis_value":1.0,"script":null)
53
53
+
ui_down={
54
54
+
"deadzone": 0.5,
55
55
+
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194322,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
56
56
+
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":12,"pressure":0.0,"pressed":false,"script":null)
57
57
+
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":1,"axis_value":1.0,"script":null)
58
58
+
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":115,"location":0,"echo":false,"script":null)
55
59
]
56
60
}