Add controllable lab walking checkpoint with collision and chase camera
This commit is contained in:
1 parent
37fa18094f
commit
58424120bb
26 files changed
+1848
-110
No files matched your search
+13
-12
@@ -20,23 +20,24 @@ for rid in linux-x64 win-x64; do
|
||||
cp -a docs/. "$out/docs/"
|
||||
cp README.md "$out/SOURCE-README.md"
|
||||
cat > "$out/README.md" <<'NOTES'
|
||||
# Neutron original-scene investigation package
|
||||
# Neutron controllable lab checkpoint
|
||||
|
||||
Linux: run ./launch-scene.sh. Windows: run launch-scene.cmd.
|
||||
Append --headless --frames 2 to render without a window, or --screenshot lab.ppm
|
||||
to save GPU readback. A Vulkan 1.3 graphics driver/loader is required.
|
||||
|
||||
This package includes the .NET runtime, SDL3, shaders and local asset copies.
|
||||
The default shows the original lab and Jimmy's still idle pose, grounded on the
|
||||
visible floor for preview. Press 1 for idle, 2 for a running animation cycle,
|
||||
3 for a jump animation cycle, or 4 for a scratch animation cycle. C switches
|
||||
stored/orbit camera; arrows/WASD orbit, +/- zoom, F11 fullscreen, Escape quit.
|
||||
These are investigation controls; animation selection does not move the player.
|
||||
The default opens the controllable original lab. Arrows walk/backpedal/turn;
|
||||
Shift, Insert, numpad 0 or right mouse jump. R resets to the original start area;
|
||||
C pauses into inspection and resumes the chase camera. F11 fullscreen, Escape quit.
|
||||
Inspection: arrows/WASD orbit, +/- zoom, 1 idle, 2 run, 3 jump, 4 scratch preview.
|
||||
Append --inspect to start directly in the old scene inspector.
|
||||
|
||||
This is not the finished playable game. Original collision, controller, intro,
|
||||
interactions, progression, AI and saves remain incomplete. Animation loop/speed
|
||||
and grounding are preview policies. A user verified initial rendering on Windows;
|
||||
this corrected build still needs native Windows retesting.
|
||||
This checkpoint implements recovered walking/jump/camera arithmetic and original
|
||||
animation clips. Collision solver/masks, collider/pivot, 60Hz cadence and animation
|
||||
state timing remain provisional. Intro, interactions, progression, AI and saves
|
||||
remain incomplete. A user verified rendering on Windows; this new movement build
|
||||
still needs native Windows input/physics testing.
|
||||
|
||||
See BUILD-AND-LIMITATIONS.md, COMPATIBILITY.md and docs/ for evidence and remaining
|
||||
work. SOURCE-README.md describes development from the separate source repository.
|
||||
@@ -46,11 +47,11 @@ cat > dist/linux-x64/launch-scene.sh <<'LAUNCH'
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
here="$(cd "$(dirname "$0")" && pwd)"
|
||||
exec "$here/GamePort" --assets "$here/assets" --scene "$here/scenes/level1b/scene.json" --level gam/level1b.gam --original-camera --with-player "$@"
|
||||
exec "$here/GamePort" --assets "$here/assets" --scene "$here/scenes/level1b/scene.json" --level gam/level1b.gam --walk "$@"
|
||||
LAUNCH
|
||||
chmod +x dist/linux-x64/launch-scene.sh
|
||||
cat > dist/win-x64/launch-scene.cmd <<'LAUNCH'
|
||||
@echo off
|
||||
"%~dp0GamePort.exe" --assets "%~dp0assets" --scene "%~dp0scenes\level1b\scene.json" --level gam/level1b.gam --original-camera --with-player %*
|
||||
"%~dp0GamePort.exe" --assets "%~dp0assets" --scene "%~dp0scenes\level1b\scene.json" --level gam/level1b.gam --walk %*
|
||||
LAUNCH
|
||||
printf '%s\n' 'Local Linux and Windows investigation packages prepared in dist/.'
|
||||
+5
-1
@@ -4,11 +4,14 @@ source "$(dirname "$0")/env.sh"
|
||||
python3 -m unittest discover -s tests -p 'test_*.py' -v
|
||||
python3 tools/extractors/prepare.py --audio sounds musicsecretlab
|
||||
dotnet run --project tests/GamePort.DataTests -- ../Original
|
||||
dotnet run --project tests/GamePort.CollisionTests -- ../Original
|
||||
dotnet run --project tests/GamePort.MovementTests -- ../Original
|
||||
dotnet build GamePort.csproj
|
||||
dotnet run --no-build -- --verify-assets --assets ../Original
|
||||
python3 tools/extractors/omt.py ../Original/omt/level1b.omt --scene --output artifacts/extracted/level1b
|
||||
dotnet run --no-build -- --headless --assets ../Original --scene artifacts/extracted/level1b/scene.json --level gam/level1b.gam --original-camera --screenshot artifacts/test-level1b.ppm
|
||||
dotnet run --no-build -- --headless --with-player --time 0.05 --screenshot artifacts/test-player.ppm
|
||||
dotnet run --no-build -- --inspect --headless --with-player --time 0.05 --screenshot artifacts/test-player.ppm
|
||||
dotnet run --no-build -- --headless --smoke-walk --screenshot artifacts/test-walk.ppm
|
||||
dotnet run --no-build -- --headless --animation artifacts/extracted/animations/jimrun/animation.json --time 0 --screenshot artifacts/test-run-start.ppm
|
||||
dotnet run --no-build -- --headless --animation artifacts/extracted/animations/jimrun/animation.json --frames 7 --screenshot artifacts/test-run-advanced.ppm
|
||||
python3 - <<'PY'
|
||||
@@ -20,4 +23,5 @@ SDL_AUDIODRIVER=dummy dotnet run --no-build -- --audio-smoke artifacts/extracted
|
||||
python3 tools/recon/inventory.py ../Original --verify docs/original-manifest.json
|
||||
if [[ "${NEUTRON_WINDOW_TEST:-0}" == 1 ]]; then
|
||||
dotnet run --no-build -- --scene artifacts/extracted/level1b/scene.json --smoke-window --frames 6 --screenshot artifacts/test-window.ppm
|
||||
dotnet run --no-build -- --smoke-walk --screenshot artifacts/test-walk-window.ppm
|
||||
fi
|
||||
Reference in new issue
Block a user