Overhauled camera
This commit is contained in:
parent
5fe8f22ccb
commit
da78e7f287
21 changed files with 385 additions and 71 deletions
24
Game.tscn
24
Game.tscn
|
|
@ -1,7 +1,7 @@
|
|||
[gd_scene load_steps=22 format=3 uid="uid://bx0bbrwdr0h40"]
|
||||
|
||||
[ext_resource type="Script" path="res://Game.gd" id="1_dgt1j"]
|
||||
[ext_resource type="Script" path="res://Misc/RTSCamera3D.gd" id="1_dtmfo"]
|
||||
[ext_resource type="Script" path="res://CameraPivot.gd" id="2_71xp1"]
|
||||
[ext_resource type="Script" path="res://HexGrid3D/HexGrid3D.gd" id="2_suxca"]
|
||||
[ext_resource type="Script" path="res://GameEndChecker.gd" id="2_ufkw3"]
|
||||
[ext_resource type="Material" uid="uid://dv2oo7hlc5nyy" path="res://Testbed/Table.tres" id="5_u4p4p"]
|
||||
|
|
@ -11,8 +11,8 @@
|
|||
[ext_resource type="Texture2D" uid="uid://d2i5vboeyq8qx" path="res://UI/hex_white.svg" id="11_cl0he"]
|
||||
[ext_resource type="Script" path="res://GameOverMenu.gd" id="11_ffmss"]
|
||||
[ext_resource type="Script" path="res://MenuButtons.gd" id="11_urihv"]
|
||||
[ext_resource type="PackedScene" uid="uid://8ffmln680deh" path="res://UI/Rules/Rules.tscn" id="12_g7rxm"]
|
||||
[ext_resource type="Script" path="res://TurnTexture.gd" id="12_kjwp8"]
|
||||
[ext_resource type="PackedScene" uid="uid://8ffmln680deh" path="res://Testbed/Rules.tscn" id="12_xhim1"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_cu5ir"]
|
||||
material = ExtResource("5_u4p4p")
|
||||
|
|
@ -36,10 +36,8 @@ fog_light_color = Color(0, 0, 0, 1)
|
|||
fog_density = 0.3
|
||||
|
||||
[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_41x5h"]
|
||||
dof_blur_far_enabled = true
|
||||
dof_blur_far_distance = 15.0
|
||||
dof_blur_far_transition = 10.0
|
||||
dof_blur_near_enabled = true
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_pctcs"]
|
||||
interpolation_mode = 2
|
||||
|
|
@ -61,10 +59,18 @@ modulate_color = Color(1, 1, 1, 0.639216)
|
|||
[node name="Game" type="Node3D"]
|
||||
script = ExtResource("1_dgt1j")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.5, 0.866025, 0, -0.866025, 0.5, 0, 6, 5)
|
||||
script = ExtResource("1_dtmfo")
|
||||
edge_panning_enabled = false
|
||||
[node name="CameraPivot" type="Node3D" parent="."]
|
||||
script = ExtResource("2_71xp1")
|
||||
|
||||
[node name="AzimuthPivot" type="Node3D" parent="CameraPivot"]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.374607, 0.927184, 0, -0.927184, 0.374607, 0, 0, 0)
|
||||
|
||||
[node name="SpringArm3D" type="SpringArm3D" parent="CameraPivot/AzimuthPivot"]
|
||||
collision_mask = 0
|
||||
spring_length = 7.0
|
||||
|
||||
[node name="Camera" type="Camera3D" parent="CameraPivot/AzimuthPivot/SpringArm3D"]
|
||||
current = true
|
||||
|
||||
[node name="GameEndChecker" type="Node" parent="."]
|
||||
script = ExtResource("2_ufkw3")
|
||||
|
|
@ -253,7 +259,7 @@ text = "Menu"
|
|||
layout_mode = 2
|
||||
text = "Rules"
|
||||
|
||||
[node name="Rules" parent="." instance=ExtResource("12_xhim1")]
|
||||
[node name="Rules" parent="." instance=ExtResource("12_g7rxm")]
|
||||
visible = false
|
||||
|
||||
[node name="GameOverMenu" type="CanvasLayer" parent="."]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue