add DirectionalLight and setup input methods

This commit is contained in:
Tristan Šneider
2024-03-11 16:12:35 +01:00
parent 2c69bca82f
commit 6e210c2a5f
2 changed files with 39 additions and 0 deletions

View File

@@ -18,3 +18,38 @@ config/icon="res://icon.svg"
[filesystem] [filesystem]
import/fbx/enabled=false import/fbx/enabled=false
[input]
Forward={
"deadzone": 0.5,
"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":5,"axis_value":1.0,"script":null)
, 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":0,"physical_keycode":87,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}
Backward={
"deadzone": 0.5,
"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":4,"axis_value":1.0,"script":null)
, 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,"echo":false,"script":null)
]
}
"Turn Left"={
"deadzone": 0.5,
"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":-1.0,"script":null)
]
}
"Turn Right"={
"deadzone": 0.5,
"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":1.0,"script":null)
]
}
"Move Left"={
"deadzone": 0.5,
"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,"echo":false,"script":null)
]
}
"Move Right"={
"deadzone": 0.5,
"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,"echo":false,"script":null)
]
}

View File

@@ -27,6 +27,7 @@ points = PackedVector3Array(-66.5774, -8.87646, 19.4626, -36.735, 0.304567, 7.99
script = ExtResource("1_lrw8a") script = ExtResource("1_lrw8a")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Plane"] [node name="MeshInstance3D" type="MeshInstance3D" parent="Plane"]
gi_mode = 2
mesh = ExtResource("1_s05fj") mesh = ExtResource("1_s05fj")
skeleton = NodePath("../..") skeleton = NodePath("../..")
@@ -50,3 +51,6 @@ shape = SubResource("ConvexPolygonShape3D_tmnsn")
[node name="HUD" type="Camera3D" parent="Plane"] [node name="HUD" type="Camera3D" parent="Plane"]
transform = Transform3D(1, -3.18388e-16, 3.4746e-16, 3.4746e-16, 0.996195, -0.0871557, -3.18388e-16, 0.0871557, 0.996195, 2.08165e-12, 50, 80) transform = Transform3D(1, -3.18388e-16, 3.4746e-16, 3.4746e-16, 0.996195, -0.0871557, -3.18388e-16, 0.0871557, 0.996195, 2.08165e-12, 50, 80)
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2814.34, 0, 0)