29 Commits
Author SHA1 Message Date
Greg Shuflin a4970114ad cargo fmt 2026-03-17 15:31:24 -07:00
Greg Shuflin 7899000349 Add mobile touch controls: virtual joystick, look drag, and Y-axis buttons 2026-03-17 15:30:18 -07:00
Greg Shuflin f8434db2c1 Fix all compiler warnings
Update deprecated rand methods (thread_rng→rng, gen_range→random_range,
gen_bool→random_bool). Prefix unused struct fields with underscore
(scanner_camera_buffer, color). Allow dead_code on App struct for fields
only read in wasm cfg blocks.
2026-02-15 17:46:54 -08:00
Greg Shuflin de31aaf4af Add targeting reticule and laser bullets with fade-out
Clicking while cursor is locked fires a red bullet in the camera's look
direction. Bullets spawn slightly behind and below the camera for an FPS
feel, travel at 50 units/s, fade to transparent over 5 seconds via a new
per-object opacity field in ModelUniform, then get removed. A CSS
crosshair reticule appears when the cursor is locked.
2026-02-15 17:11:25 -08:00
Greg Shuflin 38278b8c36 Change dev port 2026-02-15 16:31:45 -08:00
Greg Shuflin e378b736e9 Wrap yaw value 2026-02-15 16:07:28 -08:00
Greg Shuflin ad969f2972 Use a nix flake 2026-02-15 00:36:47 -08:00
Greg Shuflin 0367607789 Implement elite style scanner 2026-02-14 20:18:27 -08:00
Greg Shuflin 75eeb1f944 Add shift-toggled movement modes: view-relative (default) and grid-aligned 2026-02-14 18:37:31 -08:00
Greg Shuflin c7746c8789 Throttle render loop to ~30fps 2026-02-14 15:46:16 -08:00
Greg Shuflin faa3e68481 Only render on focus 2026-02-14 15:25:20 -08:00
Greg Shuflin 382cb0e8fc Pause render loop when browser tab loses focus 2026-02-14 02:47:06 -08:00
Greg Shuflin 40ceb6763b TODO.md edit 2026-02-14 02:35:56 -08:00
Greg Shuflin 1614722095 Switch to Z-up coordinate system: WASD on XY ground plane, E/Q for vertical 2026-02-14 02:31:35 -08:00
Greg Shuflin 78b6c5f07b Edit justfile 2026-02-14 01:13:30 -08:00
Greg Shuflin 1655942122 Add CLAUDE.md 2026-02-14 01:13:18 -08:00
Greg ShuflinandClaude Opus 4.6 c5ec62c76d Color crosshair axes: X=red, Y=green, Z=blue with desaturated negatives
Each axis is split at the origin into positive (fully saturated) and
negative (desaturated) halves. Tick marks follow the same coloring.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 21:15:02 -08:00
Greg ShuflinandClaude Opus 4.6 af165e6a50 Remap movement keys: WS=Y, AD=X, QE=Z
Align movement keys to grid axes: W/S for up/down (Y),
A/D for left/right (X), Q/E for forward/back (Z).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 20:58:18 -08:00
Greg ShuflinandClaude Opus 4.6 75cdd6300e Add look direction indicator and change fly keys to Q/E
Show yaw/pitch degrees in the coordinate bar alongside position.
Rebind fly up/down from Space/Shift to E/Q.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 20:51:42 -08:00
Greg Shuflin a18b863a31 TODO.md 2026-02-13 20:39:04 -08:00
Greg ShuflinandClaude Opus 4.6 9c3fa87f53 Add HUD overlays and reposition camera to face origin
Add help overlay showing movement controls (visible on load, toggled
with H, dismissed on first click) and a persistent coordinate bar
at the bottom displaying live X/Y/Z position. Start camera at
(0, -20, 0) looking up at the crosshair.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 20:35:33 -08:00
Greg Shuflin c19acc557b Add justfile 2026-02-13 15:02:36 -08:00
Greg Shuflin 68886a042a Add 3D crosshair at origin with tick marks on all axes 2026-02-12 19:17:37 -08:00
Greg Shuflin 5d4a583358 Get render working 2026-02-07 21:51:49 -08:00
Greg Shuflin dbaadc9dec More bugfixes 2026-02-07 21:23:52 -08:00
Greg Shuflin 632b9bb1d4 Fix deps 2026-02-07 20:59:56 -08:00
Greg Shuflin 6a751628b1 .gitignore 2026-02-07 20:59:40 -08:00
Greg Shuflin 7f617c17d9 cargo fmt 2026-02-07 20:54:57 -08:00
Greg Shuflin 24efbeddf2 Initial claude-generated commit
prompt:

yeah give me a starter project structure with rust + wgpu + trunk, with
a really simple 3d scene - maybe just moving the camera around 3d space
with WSAD, and a couple of flat-shaded colorful spheres and octohedrons
floating in space to give something to look at
2026-02-07 20:54:13 -08:00