raytracer
Wolfenstein-achtige raycaster op frameworkv3 (WebGL).
Lokaal bouwen en draaien
# Framework-bundel (eenmalig / bij framework-update)
cd /pad/naar/frameworkv3 && ./glbuild.sh
cp js/framework.js /pad/naar/raytracer/build/framework.js
# Game-bundel
./src/build.sh
# Statische server
python3 -m http.server 8080 --directory build
# open http://localhost:8080
Besturing: WASD / pijltjes bewegen, klik voor pointer-lock muislook, < > voor raycast-resolutie.
Tests
node --test test/*.test.js
Structuur
src/– gamecode (wordt naarbuild/game.jsgeconcateneerd)build/– speelbare output (framework.js,game.js,index.html, images)archive/legacy-js/– oude canvas2d-versie (referentie)
Source
| 1 | # raytracer |
| 2 | |
| 3 | Wolfenstein-achtige raycaster op [frameworkv3](https://git.timfalken.com/timfa/frameworkv3) (WebGL). |
| 4 | |
| 5 | ## Lokaal bouwen en draaien |
| 6 | |
| 7 | ```bash |
| 8 | # Framework-bundel (eenmalig / bij framework-update) |
| 9 | cd /pad/naar/frameworkv3 && ./glbuild.sh |
| 10 | cp js/framework.js /pad/naar/raytracer/build/framework.js |
| 11 | |
| 12 | # Game-bundel |
| 13 | ./src/build.sh |
| 14 | |
| 15 | # Statische server |
| 16 | python3 -m http.server 8080 --directory build |
| 17 | # open http://localhost:8080 |
| 18 | ``` |
| 19 | |
| 20 | Besturing: WASD / pijltjes bewegen, klik voor pointer-lock muislook, `<` `>` voor raycast-resolutie. |
| 21 | |
| 22 | ## Tests |
| 23 | |
| 24 | ```bash |
| 25 | node --test test/*.test.js |
| 26 | ``` |
| 27 | |
| 28 | ## Structuur |
| 29 | |
| 30 | - `src/` – gamecode (wordt naar `build/game.js` geconcateneerd) |
| 31 | - `build/` – speelbare output (`framework.js`, `game.js`, `index.html`, images) |
| 32 | - `archive/legacy-js/` – oude canvas2d-versie (referentie) |