feat: experimenting with desired mood

main
Sara 2024-11-27 00:41:39 +01:00
parent ceba03ec36
commit 4940f67c21
58 changed files with 4826 additions and 28 deletions

View File

@ -11,7 +11,7 @@ def validate_parent_dir(key, val, env):
raise UserError("'%s' is not a directory: %s" % (key, os.path.dirname(val)))
libname = "EXAMPLE"
libname = "trenches"
projectdir = "godot"
localEnv = Environment(tools=["default"], PLATFORM="")

160
design/opdd-1.svg Normal file
View File

@ -0,0 +1,160 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="420mm"
height="297mm"
viewBox="0 0 420 297"
version="1.1"
id="svg1"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
sodipodi:docname="opdd-1.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1"
pagecolor="#000000"
bordercolor="#999999"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
inkscape:zoom="1.0986144"
inkscape:cx="612.58981"
inkscape:cy="435.0935"
inkscape:current-layer="layer1"
inkscape:export-bgcolor="#000000ff"
showgrid="false" />
<defs
id="defs1" />
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<text
xml:space="preserve"
style="font-weight:600;font-size:25.4px;line-height:1.5;font-family:'Noto Serif';-inkscape-font-specification:'Noto Serif, Semi-Bold';text-align:start;text-decoration-color:#000000;writing-mode:lr-tb;direction:ltr;text-anchor:start;white-space:pre;fill:#ffffff;fill-opacity:0.80000001;stroke:#7f7070;stroke-width:0.899999"
x="14.948718"
y="29.333328"
id="text1"><tspan
sodipodi:role="line"
id="tspan1"
style="font-size:25.4px;fill:#ffffff;fill-opacity:0.80000001;stroke:none;stroke-width:0.9;stroke-opacity:1"
x="14.948718"
y="29.333328">Claustrophilia</tspan></text>
<text
xml:space="preserve"
style="font-weight:600;font-size:7.05556px;line-height:1.5;font-family:'Noto Serif';-inkscape-font-specification:'Noto Serif, Semi-Bold';text-align:start;text-decoration-color:#000000;writing-mode:lr-tb;direction:ltr;text-anchor:start;white-space:pre;fill:#ffffff;fill-opacity:0.80000001;stroke:none;stroke-width:0.899999;stroke-opacity:1"
x="198.28204"
y="28.76923"
id="text2"><tspan
sodipodi:role="line"
id="tspan2"
style="font-size:7.05556px;stroke-width:0.9;fill:#ffffff;fill-opacity:0.80000001"
x="198.28204"
y="28.76923">(working title)</tspan></text>
<text
xml:space="preserve"
style="font-weight:600;font-size:6.35px;line-height:1.5;font-family:'Noto Serif';-inkscape-font-specification:'Noto Serif, Semi-Bold';text-align:start;text-decoration-color:#000000;writing-mode:lr-tb;direction:ltr;text-anchor:start;white-space:pre;fill:#ffffff;fill-opacity:0.8;stroke:none;stroke-width:0.899999;stroke-opacity:1"
x="20.871794"
y="41.46154"
id="text3"><tspan
sodipodi:role="line"
id="tspan3"
style="font-size:6.35px;fill:#ffffff;fill-opacity:0.8;stroke-width:0.9"
x="20.871794"
y="41.46154">Core Goals: Cause the player to feel a fear of open space.</tspan></text>
<text
xml:space="preserve"
style="font-weight:600;font-size:4.23333px;line-height:1.5;font-family:'Noto Serif';-inkscape-font-specification:'Noto Serif, Semi-Bold';text-align:start;text-decoration-color:#000000;writing-mode:lr-tb;direction:ltr;text-anchor:start;white-space:pre;fill:#ffffff;fill-opacity:0.8;stroke:none;stroke-width:0.899999;stroke-opacity:1"
x="26.23077"
y="48.794876"
id="text4"><tspan
sodipodi:role="line"
style="font-size:4.23333px;fill:#ffffff;fill-opacity:0.8;stroke-width:0.9"
x="26.23077"
y="48.794876"
id="tspan11">Induce a combination of agoraphobia and claustrophilia.</tspan><tspan
sodipodi:role="line"
style="font-size:4.23333px;fill:#ffffff;fill-opacity:0.8;stroke-width:0.9"
x="26.23077"
y="55.144875"
id="tspan12">Induce a feeling of dread combined with near-boredom only interupted by combat.</tspan><tspan
sodipodi:role="line"
style="font-size:4.23333px;fill:#ffffff;fill-opacity:0.8;stroke-width:0.9"
x="26.23077"
y="61.494877"
id="tspan10">Get the player to follow senseless, dangerous, and yet unquestionable objectives.</tspan></text>
<text
xml:space="preserve"
style="font-weight:600;font-size:5.64444px;line-height:1.5;font-family:'Noto Serif';-inkscape-font-specification:'Noto Serif, Semi-Bold';text-align:start;text-decoration-color:#000000;writing-mode:lr-tb;direction:ltr;text-anchor:start;white-space:pre;fill:#ffffff;fill-opacity:0.80000001;stroke:none;stroke-width:0.899999;stroke-opacity:1"
x="25.666666"
y="55.282051"
id="text8"><tspan
sodipodi:role="line"
id="tspan8"
style="stroke-width:0.9;fill:#ffffff;fill-opacity:0.80000001"
x="25.666666"
y="61.123341" /></text>
<path
style="fill:none;fill-opacity:0.8;stroke:#6c1c1c;stroke-width:5.60001;stroke-dasharray:none;stroke-opacity:1"
d="m 64.090022,254.62595 c 0,0 16.63847,-12.3719 27.5841,-19.15124 10.945638,-6.77935 28.889998,-9.95027 28.889998,-9.95027"
id="path6"
sodipodi:nodetypes="csc" />
<path
style="fill:none;fill-opacity:0.8;stroke:#745d5d;stroke-width:5.6;stroke-dasharray:none;stroke-opacity:1"
d="m 35.556907,272.99784 c 0,0 17.417401,-16.74381 25.788034,-18.30377 8.37064,-1.55998 14.286641,16.31628 23.979461,18.65349 9.69283,2.33723 28.805178,-10.81445 28.736638,-16.98242 -0.0686,-6.16797 3.68988,-33.51766 13.82274,-35.58619 10.13285,-2.06854 33.29532,-12.93314 41.20796,-18.47511 7.91263,-5.54199 32.53647,16.94099 32.53647,16.94099"
id="path1" />
<text
xml:space="preserve"
style="font-weight:600;font-size:6.35px;line-height:1.5;font-family:'Noto Serif';-inkscape-font-specification:'Noto Serif, Semi-Bold';text-align:start;text-decoration-color:#000000;writing-mode:lr-tb;direction:ltr;text-anchor:start;white-space:pre;fill:none;fill-opacity:0.8;stroke:#745d5d;stroke-width:5.60001;stroke-dasharray:none;stroke-opacity:1"
x="131.49518"
y="274.30954"
id="text5"><tspan
sodipodi:role="line"
id="tspan4"
style="stroke-width:5.6"
x="131.49518"
y="280.88101" /></text>
<text
xml:space="preserve"
style="font-weight:600;font-size:6.35px;line-height:1;font-family:'Noto Serif';-inkscape-font-specification:'Noto Serif, Semi-Bold';text-align:start;text-decoration-color:#000000;writing-mode:lr-tb;direction:ltr;text-anchor:start;white-space:pre;fill:none;fill-opacity:0.8;stroke:#745d5d;stroke-width:5.60001;stroke-dasharray:none;stroke-opacity:1"
x="102.45406"
y="278.66754"
id="text6"><tspan
sodipodi:role="line"
style="line-height:1;fill:#ffffff;fill-opacity:0.8;stroke:none;stroke-width:5.6"
x="102.45406"
y="278.66754"
id="tspan5">Use corners and curves to create uncertainty.</tspan></text>
<text
xml:space="preserve"
style="font-weight:600;font-size:6.35px;line-height:0.9;font-family:'Noto Serif';-inkscape-font-specification:'Noto Serif, Semi-Bold';text-align:start;text-decoration-color:#000000;writing-mode:lr-tb;direction:ltr;text-anchor:start;white-space:pre;fill:none;fill-opacity:0.8;stroke:#6c1c1c;stroke-width:5.60001;stroke-dasharray:none;stroke-opacity:1"
x="7.4929862"
y="218.99951"
id="text7"><tspan
sodipodi:role="line"
style="line-height:0.9;fill:#ffffff;fill-opacity:0.8;stroke:none;stroke-width:5.6"
x="7.4929862"
y="218.99951"
id="tspan18">The &quot;obvious&quot; route should go</tspan><tspan
sodipodi:role="line"
style="line-height:0.9;fill:#ffffff;fill-opacity:0.8;stroke:none;stroke-width:5.6"
x="7.4929862"
y="224.71451"
id="tspan19">outside the trench, requiring</tspan><tspan
sodipodi:role="line"
style="line-height:0.9;fill:#ffffff;fill-opacity:0.8;stroke:none;stroke-width:5.6"
x="7.4929862"
y="230.4295"
id="tspan20">a choice to not go there.</tspan></text>
<path
style="fill:#ffffff;fill-opacity:0.8;stroke:#745d5d;stroke-width:5.60001;stroke-dasharray:none;stroke-opacity:1"
d="m 145.00516,220.7099 16.53406,-8.02991"
id="path13" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

@ -1,23 +0,0 @@
[configuration]
entry_symbol = "EXAMPLE_library_init"
compatibility_minimum = "4.1"
[libraries]
macos.debug = "res://bin/macos/libEXAMPLE.macos.template_debug.framework"
macos.release = "res://bin/macos/libEXAMPLE.macos.template_release.framework"
windows.debug.x86_32 = "res://bin/windows/libEXAMPLE.windows.template_debug.x86_32.dll"
windows.release.x86_32 = "res://bin/windows/libEXAMPLE.windows.template_release.x86_32.dll"
windows.debug.x86_64 = "res://bin/windows/libEXAMPLE.windows.template_debug.x86_64.dll"
windows.release.x86_64 = "res://bin/windows/libEXAMPLE.windows.template_release.x86_64.dll"
linux.debug.x86_64 = "res://bin/linux/libEXAMPLE.linux.template_debug.x86_64.so"
linux.release.x86_64 = "res://bin/linux/libEXAMPLE.linux.template_release.x86_64.so"
linux.debug.arm64 = "res://bin/linux/libEXAMPLE.linux.template_debug.arm64.so"
linux.release.arm64 = "res://bin/linux/libEXAMPLE.linux.template_release.arm64.so"
linux.debug.rv64 = "res://bin/linux/libEXAMPLE.linux.template_debug.rv64.so"
linux.release.rv64 = "res://bin/linux/libEXAMPLE.linux.template_release.rv64.so"
android.debug.x86_64 = "res://bin/linux/libEXAMPLE.android.template_debug.x86_64.so"
android.release.x86_64 = "res://bin/linux/libEXAMPLE.android.template_release.x86_64.so"
android.debug.arm64 = "res://bin/linux/libEXAMPLE.android.template_debug.arm64.so"
android.release.arm64 = "res://bin/linux/libEXAMPLE.android.template_release.arm64.so"

View File

@ -0,0 +1,23 @@
[configuration]
entry_symbol = "trenches_library_init"
compatibility_minimum = "4.1"
[libraries]
macos.debug = "res://bin/macos/libtrenches.macos.template_debug.framework"
macos.release = "res://bin/macos/libtrenches.macos.template_release.framework"
windows.debug.x86_32 = "res://bin/windows/libtrenches.windows.template_debug.x86_32.dll"
windows.release.x86_32 = "res://bin/windows/libtrenches.windows.template_release.x86_32.dll"
windows.debug.x86_64 = "res://bin/windows/libtrenches.windows.template_debug.x86_64.dll"
windows.release.x86_64 = "res://bin/windows/libtrenches.windows.template_release.x86_64.dll"
linux.debug.x86_64 = "res://bin/linux/libtrenches.linux.template_debug.x86_64.so"
linux.release.x86_64 = "res://bin/linux/libtrenches.linux.template_release.x86_64.so"
linux.debug.arm64 = "res://bin/linux/libtrenches.linux.template_debug.arm64.so"
linux.release.arm64 = "res://bin/linux/libtrenches.linux.template_release.arm64.so"
linux.debug.rv64 = "res://bin/linux/libtrenches.linux.template_debug.rv64.so"
linux.release.rv64 = "res://bin/linux/libtrenches.linux.template_release.rv64.so"
android.debug.x86_64 = "res://bin/linux/libtrenches.android.template_debug.x86_64.so"
android.release.x86_64 = "res://bin/linux/libtrenches.android.template_release.x86_64.so"
android.debug.arm64 = "res://bin/linux/libtrenches.android.template_debug.arm64.so"
android.release.arm64 = "res://bin/linux/libtrenches.android.template_release.arm64.so"

179
godot/boot.tscn Normal file
View File

@ -0,0 +1,179 @@
[gd_scene load_steps=8 format=3 uid="uid://c2kiuk2yxdlfr"]
[ext_resource type="PackedScene" uid="uid://1kr3qqan3trk" path="res://objects/player.tscn" id="1_7kr4i"]
[ext_resource type="Environment" uid="uid://c1vy5rxxddw78" path="res://lighting/foggy_morning.tres" id="2_kx8fd"]
[ext_resource type="PackedScene" uid="uid://b5inibbfdco0d" path="res://models/props/trenchwall_2m.glb" id="3_0aqqw"]
[ext_resource type="PackedScene" uid="uid://c71yj2qpupn33" path="res://models/props/dirtpile_large.glb" id="4_vf68b"]
[ext_resource type="PackedScene" uid="uid://brdhoy3efmba" path="res://models/props/trenchfloor.glb" id="5_styg7"]
[ext_resource type="PackedScene" uid="uid://cesooq708ot6t" path="res://models/props/dirtpile_wall.glb" id="5_ww7ac"]
[ext_resource type="VoxelGIData" uid="uid://c3vqmnn5wr100" path="res://lighting/boot_voxelgi.tres" id="7_fekdf"]
[node name="Boot" type="Node3D"]
[node name="Player" parent="." instance=ExtResource("1_7kr4i")]
physics_interpolation_mode = 1
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 0, 0, 0)
slide_on_ceiling = false
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = ExtResource("2_kx8fd")
[node name="VoxelGI2" type="VoxelGI" parent="WorldEnvironment"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.659275, 1.01049, -11.0996)
size = Vector3(15.1357, 3.38489, 23.498)
data = ExtResource("7_fekdf")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="WorldEnvironment"]
transform = Transform3D(-0.911711, 0.169136, -0.374401, -0.0262562, 0.885472, 0.46395, 0.409993, 0.432819, -0.802854, -0.467237, 0.314178, -2.4707)
light_color = Color(1, 0.776887, 0.559189, 1)
light_energy = 0.3
light_bake_mode = 1
shadow_enabled = true
shadow_blur = 0.0
[node name="trenchwall_2m" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, -0.367768, 0, -0.546675)
[node name="trenchwall_2m2" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, -0.367768, 0, -2.55193)
[node name="trenchwall_2m3" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, -0.367767, 0, -4.4575)
[node name="trenchwall_2m4" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, -0.367767, 0, -6.36306)
[node name="trenchwall_2m5" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, -0.367767, 0, -8.32269)
[node name="trenchwall_2m6" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(1, 0, -1.74846e-07, 0, 1, 0, 1.74846e-07, 0, 1, 0.962451, 0, -0.546675)
[node name="trenchwall_2m7" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(1, 0, -1.74846e-07, 0, 1, 0, 1.74846e-07, 0, 1, 0.962451, 0, -2.55193)
[node name="trenchwall_2m8" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(1, 0, -1.74846e-07, 0, 1, 0, 1.74846e-07, 0, 1, 0.962451, 0, -4.4575)
[node name="trenchwall_2m9" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(1, 0, -1.74846e-07, 0, 1, 0, 1.74846e-07, 0, 1, 0.962451, 0, -6.36306)
[node name="trenchwall_2m10" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(1, 0, -1.74846e-07, 0, 1, 0, 1.74846e-07, 0, 1, 0.962452, 0, -8.32269)
[node name="trenchwall_2m11" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, -0.367768, 0, -10.2944)
[node name="trenchwall_2m12" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, -0.367768, 0, -12.2997)
[node name="trenchwall_2m13" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, -0.367767, 0, -14.2053)
[node name="trenchwall_2m14" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, -0.367767, 0, -16.1108)
[node name="trenchwall_2m21" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(1.31134e-07, 0, 1, 0, 1, 0, -1, 0, 1.31134e-07, 0.468356, 0, -21.3728)
[node name="trenchwall_2m22" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(1.31134e-07, 0, 1, 0, 1, 0, -1, 0, 1.31134e-07, 2.46836, 0, -21.3728)
[node name="trenchwall_2m23" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(1.31134e-07, 0, 1, 0, 1, 0, -1, 0, 1.31134e-07, -1.53164, 0, -21.3728)
[node name="trenchwall_2m24" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(1.31134e-07, 0, 1, 0, 1, 0, -1, 0, 1.31134e-07, 4.46836, 0, -21.3728)
[node name="trenchwall_2m25" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(1.31134e-07, 0, 1, 0, 1, 0, -1, 0, 1.31134e-07, -3.53164, 0, -21.3728)
[node name="trenchwall_2m15" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, -0.367767, 0, -18.0705)
[node name="trenchwall_2m16" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(1, 0, -1.74846e-07, 0, 1, 0, 1.74846e-07, 0, 1, 0.962451, 0, -10.2944)
[node name="trenchwall_2m17" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(1, 0, -1.74846e-07, 0, 1, 0, 1.74846e-07, 0, 1, 0.962451, 0, -12.2997)
[node name="trenchwall_2m18" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(1, 0, -1.74846e-07, 0, 1, 0, 1.74846e-07, 0, 1, 0.962451, 0, -14.2053)
[node name="trenchwall_2m19" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(1, 0, -1.74846e-07, 0, 1, 0, 1.74846e-07, 0, 1, 0.962451, 0, -16.1108)
[node name="trenchwall_2m20" parent="WorldEnvironment" instance=ExtResource("3_0aqqw")]
transform = Transform3D(1, 0, -1.74846e-07, 0, 1, 0, 1.74846e-07, 0, 1, 0.962452, 0, -18.0705)
[node name="dirtpile_large" parent="WorldEnvironment" instance=ExtResource("4_vf68b")]
transform = Transform3D(0.919924, 0, -0.392096, 0, 1, 0, 0.392096, 0, 0.919924, -0.102469, 0, -4.82641)
[node name="dirtpile_large2" parent="WorldEnvironment" instance=ExtResource("4_vf68b")]
transform = Transform3D(0.919924, 0, -0.392096, 0, 1, 0, 0.392096, 0, 0.919924, 0.933956, 0, -8.53751)
[node name="dirtpile_large3" parent="WorldEnvironment" instance=ExtResource("4_vf68b")]
transform = Transform3D(0.655321, 0, 0.75535, 0, 1, 0, -0.75535, 0, 0.655321, 0.596885, 0, -9.49068)
[node name="dirtpile_large4" parent="WorldEnvironment" instance=ExtResource("4_vf68b")]
transform = Transform3D(0.610435, 0, 0.792066, 0, 1, 0, -0.792066, 0, 0.610435, -0.276414, -0.0248089, -16.26)
[node name="dirtpile_large6" parent="WorldEnvironment" instance=ExtResource("4_vf68b")]
transform = Transform3D(0.910943, 0, 0.412532, 0, 1, 0, -0.412532, 0, 0.910943, 1.45227, 0, -15.9096)
[node name="dirtpile_large7" parent="WorldEnvironment" instance=ExtResource("4_vf68b")]
transform = Transform3D(0.910943, 0, 0.412532, 0, 1, 0, -0.412532, 0, 0.910943, 0.422619, 0, -17.4663)
[node name="dirtpile_large5" parent="WorldEnvironment" instance=ExtResource("4_vf68b")]
transform = Transform3D(0.655321, 0, 0.75535, 0, 1, 0, -0.75535, 0, 0.655321, -0.560253, 0, -10.6024)
[node name="dirtpile_wall" parent="WorldEnvironment" instance=ExtResource("5_ww7ac")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -0.618189, 4.76837e-07, -11.2607)
[node name="dirtpile_wall2" parent="WorldEnvironment" instance=ExtResource("5_ww7ac")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.17294, 0, -14.9847)
[node name="trenchfloor2" parent="WorldEnvironment" instance=ExtResource("5_styg7")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.368166, -2.38419e-07, -0.558091)
[node name="trenchfloor3" parent="WorldEnvironment" instance=ExtResource("5_styg7")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.368166, -2.38419e-07, -2.55809)
[node name="trenchfloor4" parent="WorldEnvironment" instance=ExtResource("5_styg7")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.368166, -2.38419e-07, -4.55809)
[node name="trenchfloor5" parent="WorldEnvironment" instance=ExtResource("5_styg7")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.368166, -2.38419e-07, -6.55809)
[node name="trenchfloor6" parent="WorldEnvironment" instance=ExtResource("5_styg7")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.368166, -2.38419e-07, -8.55809)
[node name="trenchfloor7" parent="WorldEnvironment" instance=ExtResource("5_styg7")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.368166, -2.38419e-07, -10.5581)
[node name="trenchfloor8" parent="WorldEnvironment" instance=ExtResource("5_styg7")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.368166, -2.38419e-07, -12.5581)
[node name="trenchfloor9" parent="WorldEnvironment" instance=ExtResource("5_styg7")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.368166, -2.38419e-07, -14.5581)
[node name="trenchfloor10" parent="WorldEnvironment" instance=ExtResource("5_styg7")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.368166, -2.38419e-07, -16.5581)
[node name="trenchfloor11" parent="WorldEnvironment" instance=ExtResource("5_styg7")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.368166, -2.38419e-07, -18.5581)
[node name="trenchfloor12" parent="WorldEnvironment" instance=ExtResource("5_styg7")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.368166, -2.38419e-07, -20.5581)
[node name="trenchfloor13" parent="WorldEnvironment" instance=ExtResource("5_styg7")]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 2.63847, -2.38419e-07, -20.5581)
[node name="trenchfloor14" parent="WorldEnvironment" instance=ExtResource("5_styg7")]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 4.92171, -2.38419e-07, -20.5581)
[node name="trenchfloor15" parent="WorldEnvironment" instance=ExtResource("5_styg7")]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, -4.13908, -2.38419e-07, -20.5581)
[node name="trenchfloor16" parent="WorldEnvironment" instance=ExtResource("5_styg7")]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, -1.85584, -2.38419e-07, -20.5581)

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,23 @@
[gd_resource type="Environment" load_steps=3 format=3 uid="uid://dw5utevw73wsy"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_di73m"]
sky_top_color = Color(0.126011, 0.14614, 0.174144, 1)
sky_horizon_color = Color(0.161855, 0.185047, 0.221665, 1)
sky_curve = 0.160766
ground_bottom_color = Color(0, 0, 0, 1)
ground_horizon_color = Color(0.167356, 0.099874, 0.0462569, 1)
[sub_resource type="Sky" id="Sky_ewa4o"]
sky_material = SubResource("ProceduralSkyMaterial_di73m")
[resource]
background_mode = 2
sky = SubResource("Sky_ewa4o")
ambient_light_source = 3
reflected_light_source = 2
fog_light_color = Color(0.180933, 0.107468, 0.071428, 1)
fog_sun_scatter = 0.2
fog_density = 0.0395
fog_sky_affect = 0.94
volumetric_fog_density = 0.1393
volumetric_fog_albedo = Color(0.75118, 0.640533, 0.588017, 1)

View File

@ -0,0 +1,24 @@
[gd_resource type="Environment" load_steps=3 format=3 uid="uid://c1vy5rxxddw78"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_c8r8t"]
sky_top_color = Color(0.0957285, 0.117165, 0.14699, 1)
sky_horizon_color = Color(0.221665, 0.13846, 0.0831346, 1)
sky_curve = 0.160766
ground_bottom_color = Color(0, 0, 0, 1)
ground_horizon_color = Color(0.167356, 0.099874, 0.0462569, 1)
[sub_resource type="Sky" id="Sky_v6osu"]
sky_material = SubResource("ProceduralSkyMaterial_c8r8t")
[resource]
background_mode = 2
sky = SubResource("Sky_v6osu")
ambient_light_source = 3
reflected_light_source = 2
fog_light_color = Color(0.180933, 0.107468, 0.071428, 1)
fog_sun_scatter = 0.2
fog_density = 0.0395
fog_sky_affect = 0.94
volumetric_fog_enabled = true
volumetric_fog_density = 0.1044
volumetric_fog_albedo = Color(0.75118, 0.640533, 0.588017, 1)

Binary file not shown.

Binary file not shown.

BIN
godot/models/character.glb (Stored with Git LFS) Normal file

Binary file not shown.

File diff suppressed because it is too large Load Diff

BIN
godot/models/character_grid.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,38 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://03bidmgkyu7x"
path.s3tc="res://.godot/imported/character_grid.png-2d0e906f71f3e26d2c036075a68637c9.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
generator_parameters={
"md5": "5251a685620ecec968e08d819a2a66a5"
}
[deps]
source_file="res://models/character_grid.png"
dest_files=["res://.godot/imported/character_grid.png-2d0e906f71f3e26d2c036075a68637c9.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

BIN
godot/models/character_lee-enfield.jpg (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,38 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bwq5navx6qi1l"
path.s3tc="res://.godot/imported/character_lee-enfield.jpg-8aa5d8a65848beefe70a765079e8bd2c.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
generator_parameters={
"md5": "2f63e7aacd33f2b1b77cb71dd6821df5"
}
[deps]
source_file="res://models/character_lee-enfield.jpg"
dest_files=["res://.godot/imported/character_lee-enfield.jpg-8aa5d8a65848beefe70a765079e8bd2c.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

BIN
godot/models/character_lee_enfield.jpg (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,38 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bfbggseqfivqg"
path.s3tc="res://.godot/imported/character_lee_enfield.jpg-6d1650ff6ac73c0058d6c5c97b6347e0.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
generator_parameters={
"md5": "2f63e7aacd33f2b1b77cb71dd6821df5"
}
[deps]
source_file="res://models/character_lee_enfield.jpg"
dest_files=["res://.godot/imported/character_lee_enfield.jpg-6d1650ff6ac73c0058d6c5c97b6347e0.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

View File

@ -0,0 +1,13 @@
[gd_resource type="StandardMaterial3D" load_steps=2 format=3 uid="uid://dibu06h02xpdh"]
[ext_resource type="Texture2D" uid="uid://bfbggseqfivqg" path="res://models/character_lee_enfield.jpg" id="1_8jtmf"]
[resource]
resource_name = "Material"
cull_mode = 2
shading_mode = 2
diffuse_mode = 1
specular_mode = 1
albedo_texture = ExtResource("1_8jtmf")
metallic = 0.293814
roughness = 0.64433

View File

@ -0,0 +1,12 @@
[gd_resource type="StandardMaterial3D" load_steps=2 format=3 uid="uid://c2ic02ndhqkod"]
[ext_resource type="Texture2D" uid="uid://03bidmgkyu7x" path="res://models/character_grid.png" id="1_54a4n"]
[resource]
resource_name = "Primary"
transparency = 4
cull_mode = 2
shading_mode = 2
diffuse_mode = 1
specular_mode = 1
albedo_texture = ExtResource("1_54a4n")

BIN
godot/models/props/dirtpile_large.glb (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,43 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://c71yj2qpupn33"
path="res://.godot/imported/dirtpile_large.glb-77fcdeef03fbbe48a2fcb87172c5bc71.scn"
[deps]
source_file="res://models/props/dirtpile_large.glb"
dest_files=["res://.godot/imported/dirtpile_large.glb-77fcdeef03fbbe48a2fcb87172c5bc71.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=2
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
animation/import_rest_as_RESET=false
import_script/path=""
_subresources={
"materials": {
"Mud": {
"use_external/enabled": true,
"use_external/path": "res://models/props/materials/Mud.tres"
}
}
}
gltf/naming_version=1
gltf/embedded_image_handling=1

Binary file not shown.

BIN
godot/models/props/dirtpile_large_soil.jpg (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,38 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://d28us1hldt0of"
path.s3tc="res://.godot/imported/dirtpile_large_soil.jpg-3b740673b4aefe7d4376fd854b8ca7b2.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
generator_parameters={
"md5": "84fc1930e32695576af1cef2335a5a66"
}
[deps]
source_file="res://models/props/dirtpile_large_soil.jpg"
dest_files=["res://.godot/imported/dirtpile_large_soil.jpg-3b740673b4aefe7d4376fd854b8ca7b2.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

BIN
godot/models/props/dirtpile_wall.glb (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,43 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://cesooq708ot6t"
path="res://.godot/imported/dirtpile_wall.glb-591f376eb9c189af7430dc2c51832915.scn"
[deps]
source_file="res://models/props/dirtpile_wall.glb"
dest_files=["res://.godot/imported/dirtpile_wall.glb-591f376eb9c189af7430dc2c51832915.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=2
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
animation/import_rest_as_RESET=false
import_script/path=""
_subresources={
"materials": {
"Mud": {
"use_external/enabled": true,
"use_external/path": "res://models/props/materials/Mud.tres"
}
}
}
gltf/naming_version=1
gltf/embedded_image_handling=1

Binary file not shown.

BIN
godot/models/props/dirtpile_wall_soil.jpg (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,38 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dkds3kukh7055"
path.s3tc="res://.godot/imported/dirtpile_wall_soil.jpg-f23a0d1d03bf275c7aa20e9aa5184c4b.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
generator_parameters={
"md5": "84fc1930e32695576af1cef2335a5a66"
}
[deps]
source_file="res://models/props/dirtpile_wall_soil.jpg"
dest_files=["res://.godot/imported/dirtpile_wall_soil.jpg-f23a0d1d03bf275c7aa20e9aa5184c4b.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

View File

@ -0,0 +1,11 @@
[gd_resource type="StandardMaterial3D" load_steps=2 format=3 uid="uid://fa87jbiwsplk"]
[ext_resource type="Texture2D" uid="uid://dkds3kukh7055" path="res://models/props/dirtpile_wall_soil.jpg" id="1_ike1o"]
[resource]
resource_name = "Mud"
shading_mode = 2
diffuse_mode = 1
specular_mode = 1
albedo_texture = ExtResource("1_ike1o")
metallic = 0.497409

View File

@ -0,0 +1,12 @@
[gd_resource type="StandardMaterial3D" load_steps=2 format=3 uid="uid://brsn1svvuegjo"]
[ext_resource type="Texture2D" uid="uid://1jreew0ibpxu" path="res://models/props/trenchwall_2m_rotten_planks.jpg" id="1_3si8l"]
[resource]
resource_name = "Planks"
shading_mode = 2
diffuse_mode = 1
specular_mode = 1
albedo_texture = ExtResource("1_3si8l")
metallic = 0.367876
roughness = 0.873057

BIN
godot/models/props/trenchfloor.glb (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,43 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://brdhoy3efmba"
path="res://.godot/imported/trenchfloor.glb-1df6cc11c40ad993e9993738b37d30ab.scn"
[deps]
source_file="res://models/props/trenchfloor.glb"
dest_files=["res://.godot/imported/trenchfloor.glb-1df6cc11c40ad993e9993738b37d30ab.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=2
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
animation/import_rest_as_RESET=false
import_script/path=""
_subresources={
"materials": {
"Mud": {
"use_external/enabled": true,
"use_external/path": "res://models/props/materials/Mud.tres"
}
}
}
gltf/naming_version=1
gltf/embedded_image_handling=1

Binary file not shown.

BIN
godot/models/props/trenchfloor_soil.jpg (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,38 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cjlv23uh37xap"
path.s3tc="res://.godot/imported/trenchfloor_soil.jpg-10717230d28cb0bcced30b191d8360ee.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
generator_parameters={
"md5": "84fc1930e32695576af1cef2335a5a66"
}
[deps]
source_file="res://models/props/trenchfloor_soil.jpg"
dest_files=["res://.godot/imported/trenchfloor_soil.jpg-10717230d28cb0bcced30b191d8360ee.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

BIN
godot/models/props/trenchwall_2m.glb (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,49 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://b5inibbfdco0d"
path="res://.godot/imported/trenchwall_2m.glb-beffd19f8aedd15008b15cad2f51b952.scn"
[deps]
source_file="res://models/props/trenchwall_2m.glb"
dest_files=["res://.godot/imported/trenchwall_2m.glb-beffd19f8aedd15008b15cad2f51b952.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=2
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
animation/import_rest_as_RESET=false
import_script/path=""
_subresources={
"materials": {
"Planks": {
"use_external/enabled": true,
"use_external/path": "res://models/props/materials/Planks.tres"
}
},
"nodes": {
"PATH:trenchwall": {
"generate/occluder": 1,
"mesh_instance/cast_shadow": 2
}
}
}
gltf/naming_version=1
gltf/embedded_image_handling=1

Binary file not shown.

BIN
godot/models/props/trenchwall_2m_rotten_planks.jpg (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,38 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://1jreew0ibpxu"
path.s3tc="res://.godot/imported/trenchwall_2m_rotten_planks.jpg-996b21007da6b69c7707a980d5d9ece8.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
generator_parameters={
"md5": "5a7fbc0b56a3dcf96c7f10e4c19fe3f0"
}
[deps]
source_file="res://models/props/trenchwall_2m_rotten_planks.jpg"
dest_files=["res://.godot/imported/trenchwall_2m_rotten_planks.jpg-996b21007da6b69c7707a980d5d9ece8.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

140
godot/objects/player.tscn Normal file
View File

@ -0,0 +1,140 @@
[gd_scene load_steps=7 format=3 uid="uid://1kr3qqan3trk"]
[ext_resource type="PackedScene" uid="uid://vub54xgk5n0h" path="res://models/character.glb" id="1_mi4co"]
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ciynh"]
animation = &"RESET"
[sub_resource type="AnimationNodeBlend2" id="AnimationNodeBlend2_thyyf"]
filter_enabled = true
filters = ["Character/Skeleton3D:Foot.L", "Character/Skeleton3D:Foot.R", "Character/Skeleton3D:IKTarget.Foot.L", "Character/Skeleton3D:IKTarget.Foot.R", "Character/Skeleton3D:PoleTarget.Foot.L", "Character/Skeleton3D:PoleTarget.Foot.R", "Character/Skeleton3D:hip", "Character/Skeleton3D:lowerleg.L", "Character/Skeleton3D:lowerleg.R", "Character/Skeleton3D:root", "Character/Skeleton3D:upperleg.L", "Character/Skeleton3D:upperleg.R"]
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_mk1iq"]
animation = &"Walk_forward"
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_hiswf"]
graph_offset = Vector2(-228, 65)
nodes/Idle/node = SubResource("AnimationNodeAnimation_ciynh")
nodes/Idle/position = Vector2(-140, 160)
nodes/Movement/node = SubResource("AnimationNodeBlend2_thyyf")
nodes/Movement/position = Vector2(100, 160)
nodes/WalkForward/node = SubResource("AnimationNodeAnimation_mk1iq")
nodes/WalkForward/position = Vector2(-140, 320)
node_connections = [&"Movement", 0, &"Idle", &"Movement", 1, &"WalkForward", &"output", 0, &"Movement"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ewsvd"]
radius = 0.370388
[node name="Player" type="Player"]
floor_constant_speed = true
[node name="PlayerInput" type="PlayerInput" parent="."]
unique_name_in_owner = true
[node name="AnimationTree" type="AnimationTree" parent="."]
unique_name_in_owner = true
root_node = NodePath("%CharacterModel")
root_motion_track = NodePath("Character/Skeleton3D:root")
tree_root = SubResource("AnimationNodeBlendTree_hiswf")
anim_player = NodePath("../CharacterModel/AnimationPlayer")
parameters/Movement/blend_amount = 1.0
[node name="CharacterModel" parent="." instance=ExtResource("1_mi4co")]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0337329, 0)
[node name="Skeleton3D" parent="CharacterModel/Character" index="0"]
bones/0/rotation = Quaternion(1.12928e-22, 1, 2.98023e-08, -1.94707e-07)
bones/1/position = Vector3(-7.81751e-17, 0.826102, -2.26306e-09)
bones/1/rotation = Quaternion(-0.0189873, 9.18702e-34, 9.18702e-34, 0.99982)
bones/3/rotation = Quaternion(-0.013812, -0.124595, 8.42949e-05, 0.992112)
bones/4/rotation = Quaternion(0.0100466, -3.2828e-23, 2.23076e-18, 0.99995)
bones/5/rotation = Quaternion(-0.155668, -0.0127093, -0.131048, 0.978996)
bones/6/rotation = Quaternion(0.596798, -0.0109718, 0.368477, -0.712697)
bones/7/rotation = Quaternion(-0.0561849, 0.000675263, -0.158995, 0.985679)
bones/8/rotation = Quaternion(-0.180111, 7.03111e-05, 0.878396, 0.442697)
bones/8/scale = Vector3(1, 1, 1)
bones/9/rotation = Quaternion(0.145773, 0.311449, -0.674545, 0.653253)
bones/10/rotation = Quaternion(-0.160687, -0.0459479, -0.0475321, 0.984789)
bones/11/rotation = Quaternion(-0.0305179, -0.0130498, -0.0216153, 0.999215)
bones/11/scale = Vector3(1, 1, 1)
bones/12/rotation = Quaternion(0.00872473, 0.00565776, 0.00131023, 0.999945)
bones/12/scale = Vector3(1, 1, 1)
bones/13/rotation = Quaternion(-0.617934, -0.0462445, 0.180663, 0.763793)
bones/14/rotation = Quaternion(-0.23045, 0.0743405, 0.160693, 0.956841)
bones/14/scale = Vector3(1, 1, 1)
bones/15/rotation = Quaternion(-0.541263, -0.0075276, 0.238029, 0.806424)
bones/15/scale = Vector3(1, 1, 1)
bones/16/rotation = Quaternion(-0.611024, -0.262913, 0.402215, 0.629087)
bones/16/scale = Vector3(1, 1, 1)
bones/17/rotation = Quaternion(0.0158022, 0.0368156, 0.177499, 0.983305)
bones/18/rotation = Quaternion(-0.115784, 0.0786986, 0.503797, 0.852402)
bones/19/rotation = Quaternion(-0.77808, 0.139756, 0.0140334, 0.612261)
bones/19/scale = Vector3(1, 1, 1)
bones/20/rotation = Quaternion(-0.0923591, 0.0238577, 0.0736641, 0.992711)
bones/21/rotation = Quaternion(-0.193467, 0.101022, 0.0447897, 0.974864)
bones/21/scale = Vector3(1, 1, 1)
bones/22/rotation = Quaternion(-0.293695, -0.10649, 0.259809, 0.91373)
bones/23/rotation = Quaternion(-0.0310475, -0.0162325, -0.00151594, 0.999385)
bones/24/rotation = Quaternion(0.140362, -0.0289769, -0.195164, 0.970242)
bones/25/rotation = Quaternion(0.585184, -0.476496, -0.473244, -0.454479)
bones/26/rotation = Quaternion(-0.28016, -0.457175, -0.503294, 0.67764)
bones/27/rotation = Quaternion(-0.327872, -0.333942, -0.116987, 0.875955)
bones/27/scale = Vector3(1, 1, 1)
bones/28/rotation = Quaternion(0.0214366, -0.420105, 0.0121654, 0.907141)
bones/28/scale = Vector3(1, 1, 1)
bones/30/rotation = Quaternion(-0.0305179, 0.0130498, 0.0216153, 0.999215)
bones/30/scale = Vector3(1, 1, 1)
bones/31/rotation = Quaternion(-0.518356, -0.00412334, -0.00408936, 0.855145)
bones/31/scale = Vector3(1, 1, 1)
bones/32/rotation = Quaternion(-0.290993, 0.0788459, 0.0248015, 0.953148)
bones/33/rotation = Quaternion(-0.442666, -0.0105199, -0.00680268, 0.896599)
bones/33/scale = Vector3(1, 1, 1)
bones/34/rotation = Quaternion(-0.266884, 0.00530697, 0.000658861, 0.963714)
bones/34/scale = Vector3(1, 1, 1)
bones/35/rotation = Quaternion(-0.633479, 0.0476042, 0.0933771, 0.766628)
bones/35/scale = Vector3(1, 1, 1)
bones/36/rotation = Quaternion(-0.237876, -0.0162261, -0.0172922, 0.971006)
bones/36/scale = Vector3(1, 1, 1)
bones/37/rotation = Quaternion(-0.0107009, 0.00769704, 0.00365465, 0.999906)
bones/38/rotation = Quaternion(-0.510571, 0.048969, 0.105792, 0.851896)
bones/38/scale = Vector3(1, 1, 1)
bones/39/rotation = Quaternion(-0.461201, -0.0232723, -0.00676324, 0.886965)
bones/40/rotation = Quaternion(-0.0125688, 0.0114119, 0.00134585, 0.999855)
bones/40/scale = Vector3(1, 1, 1)
bones/41/rotation = Quaternion(-0.0497162, 0.0839877, -0.166225, 0.981246)
bones/41/scale = Vector3(1, 1, 1)
bones/42/rotation = Quaternion(-0.0310475, 0.0162325, 0.00151594, 0.999385)
bones/43/rotation = Quaternion(-0.00109155, -0.0104143, 0.0283533, 0.999543)
bones/44/position = Vector3(0.0938011, 0.72761, -0.389448)
bones/44/rotation = Quaternion(-0.697112, -0.0378561, 0.0426843, 0.714689)
bones/45/rotation = Quaternion(-0.82326, 6.76709e-08, -9.81403e-08, 0.567664)
bones/45/scale = Vector3(1, 1, 1)
bones/46/rotation = Quaternion(-0.00112372, 4.40296e-20, -1.00734e-15, 0.999999)
bones/47/rotation = Quaternion(0.706312, -7.40063e-16, -7.40063e-16, 0.707901)
bones/47/scale = Vector3(1, 1, 1)
bones/48/rotation = Quaternion(-0.112129, 0.585204, -0.155744, 0.78785)
bones/49/rotation = Quaternion(0.314217, 0.921438, 0.101091, -0.204942)
bones/49/scale = Vector3(1, 1, 1)
bones/50/rotation = Quaternion(0.997309, -0.00549226, 0.0715034, -0.0152251)
bones/50/scale = Vector3(1, 1, 1)
bones/51/rotation = Quaternion(-0.00225666, 0.0030665, -0.000453778, 0.999993)
bones/51/scale = Vector3(1, 1, 1)
bones/52/rotation = Quaternion(0.665461, 0.000164993, -0.00238772, 0.746429)
bones/53/rotation = Quaternion(0.997309, 0.00549227, -0.0715033, -0.0152251)
bones/53/scale = Vector3(1, 1, 1)
bones/54/rotation = Quaternion(-0.00225666, -0.0030665, 0.000453779, 0.999993)
bones/54/scale = Vector3(1, 1, 1)
bones/55/rotation = Quaternion(0.665461, -0.000164961, 0.00238768, 0.746429)
bones/56/rotation = Quaternion(-0.707107, 8.33981e-07, 8.33981e-07, 0.707107)
bones/57/rotation = Quaternion(-0.707107, -8.33981e-07, -8.33981e-07, 0.707107)
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(-1, 1.26638e-08, -8.65007e-08, 0, 0.989453, 0.144857, 8.74228e-08, 0.144857, -0.989453, -0.381843, 1.7688, -0.847603)
fov = 53.7
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("CapsuleShape3D_ewsvd")
[editable path="CharacterModel"]

View File

@ -10,6 +10,19 @@ config_version=5
[application]
config/name="EXAMPLE"
config/features=PackedStringArray("4.2", "Forward Plus")
config/name="trenches"
run/main_scene="res://boot.tscn"
config/features=PackedStringArray("4.3", "Forward Plus")
config/icon="res://icon.svg"
[display]
window/size/viewport_width=1920
window/size/viewport_height=1080
window/size/mode=3
window/stretch/mode="viewport"
window/stretch/aspect="keep_width"
[physics]
3d/run_on_separate_thread=true

BIN
models/character.blend (Stored with Git LFS) Normal file

Binary file not shown.

BIN
models/character.blend1 Normal file

Binary file not shown.

BIN
models/modules.blend (Stored with Git LFS) Normal file

Binary file not shown.

BIN
models/modules.blend1 Normal file

Binary file not shown.

BIN
models/rifle.blend (Stored with Git LFS) Normal file

Binary file not shown.

BIN
models/rifle.blend1 Normal file

Binary file not shown.

View File

@ -0,0 +1,5 @@
rotten_planks : https://www.hongkiat.com/blog/28-high-resolution-wood-textures-for-designers/
lee_enfield : https://galeri.uludagsozluk.com/r/arap-lawrence-in-kulland%C4%B1%C4%9F%C4%B1-t%C3%BCfek-1772961/
soil : https://wallpaperscraft.com/download/texture_soil_sand_dirt_dark_50620/1920x1080

BIN
models/textures/lee_enfield.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
models/textures/rotten_planks.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
models/textures/soil.jpg (Stored with Git LFS) Normal file

Binary file not shown.

22
src/player.cpp Normal file
View File

@ -0,0 +1,22 @@
#include "player.hpp"
#include "utils/godot_macros.hpp"
void Player::_bind_methods() {
}
void Player::_ready() {
this->anim_tree = this->get_node<gd::AnimationTree>("%AnimationTree");
this->model_node = this->get_node<gd::Node3D>("%CharacterModel");
}
void Player::_physics_process(double delta [[maybe_unused]]) {
gd::Basis const &model_basis{this->model_node->get_global_basis()};
gd::Vector3 const local_motion{this->anim_tree->get_root_motion_position()};
gd::Vector3 const motion {
local_motion.x * model_basis.get_column(0) +
local_motion.y * model_basis.get_column(1) +
local_motion.z * model_basis.get_column(2)
};
this->set_velocity(motion / delta);
this->move_and_slide();
}

21
src/player.hpp Normal file
View File

@ -0,0 +1,21 @@
#ifndef TR_PLAYER_HPP
#define TR_PLAYER_HPP
#include "utils/player_input.hpp"
#include <godot_cpp/classes/animation_tree.hpp>
#include <godot_cpp/classes/character_body3d.hpp>
namespace gd = godot;
class Player : public gd::CharacterBody3D {
GDCLASS(Player, gd::CharacterBody3D);
static void _bind_methods();
public:
virtual void _ready() override;
virtual void _physics_process(double delta) override;
private:
gd::AnimationTree *anim_tree{nullptr};
utils::PlayerInput *input{nullptr};
gd::Node3D *model_node{nullptr};
};
#endif // !TR_PLAYER_HPP

View File

@ -5,6 +5,8 @@
#include <godot_cpp/core/defs.hpp>
#include <godot_cpp/godot.hpp>
#include "player.hpp"
using namespace godot;
void initialize_gdextension_types(ModuleInitializationLevel p_level)
@ -13,12 +15,13 @@ void initialize_gdextension_types(ModuleInitializationLevel p_level)
return;
}
utils::godot_cpp_utils_register_types();
GDREGISTER_RUNTIME_CLASS(Player);
}
extern "C"
{
// Initialization
GDExtensionBool GDE_EXPORT EXAMPLE_library_init(GDExtensionInterfaceGetProcAddress p_get_proc_address, GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization)
GDExtensionBool GDE_EXPORT trenches_library_init(GDExtensionInterfaceGetProcAddress p_get_proc_address, GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization)
{
GDExtensionBinding::InitObject init_obj(p_get_proc_address, p_library, r_initialization);
init_obj.register_initializer(initialize_gdextension_types);

@ -1 +1 @@
Subproject commit 79c37a3cccfcc24759fe5893705b1030cec5f3df
Subproject commit efaeb16fe57b4f2cebbc382ed09268ba13a28191