Skip to content

VANILLAJS v3.1.0 โ€” THE WORLD FORGE ๐Ÿ‘ฝ๐Ÿ› ๏ธ๐ŸŽฎ

Choose a tag to compare

@EmergentMonk EmergentMonk released this 20 Nov 15:31
Immutable release. Only release title and notes can be modified.
d6da91b

The engine sees. The engine builds. The engine fights. The engine remembers.

Following v3.0.0 โ€” THE MACHINE DREAMS, VANILLAJS takes another step from individual game experiments toward reusable, inspectable game-engine systems. Six roadmap phases are now implemented, alongside new cockpit mechanics, native CAD authoring, 2.5D projection, chip-inspired audio and stronger offline verification.

Scope: 16 merged PRs, #133โ€“#148. The registered module catalogue grows from 71 in v3.0.0 to 82, with the existing 51 recipes retained.

Still VANILLAJS: native JavaScript, browser standards, original demos, bounded data, explicit source provenance, Apache-2.0 licensing, and no CDN, cloud service or npm runtime dependency required for normal browser playback.

๐Ÿ‘๏ธ SENSE-001 โ€” A world that can actually see

The new pure sensing module implements bounded world-space range, field-of-view and static AABB occlusion queries, with stable contact ordering and indexed/serial comparison. Visibility is calculated from geometry, not from a camera trick.

Shadowline Tactics is an original turn-based infiltration game with moving guards, solid cover, stance-dependent sight height, atomic moves, undo and an accepted winning route. Overhead, FPS and air/sensor views present the same authoritative mission state.

Play: Shadowline Tactics ยท PR #140

โœˆ๏ธ COCKPIT-001/002 & TRAJECTORY-001 โ€” Aircraft, sights and missiles

COCKPIT-001 adds a reusable camera/sight/telemetry adapter for cockpit, nose, chase and external views. A bounded airframe model uses lift, drag, gravity, thrust and stall behavior through the existing 6DOF integrator. The cockpit lab compares a stylized prop fighter, a space interceptor and a four-wheel vehicle; physical gun/target geometry is independent of head-look presentation.

COCKPIT-002 turns the experience into TOO CLOSE FOR GUNS โ€” SWITCHING TO MISSILES! with finite ammunition, physical target lock, fixed-tick cooldown, guidance and swept impact. Car mode still cannot fire missiles. Firing the gun remains a separate physical ray test.

TRAJECTORY-001 promotes reusable guided-projectile mechanics upstream: SENSE-linked boresight/range/occlusion admission, moving-target lead, bounded turns and fixed-tick wall/actor swept contact. It reports accepted contacts without taking ownership of game-specific health, ammo or scoring rules.

Try: Cockpit Physics ยท Trajectory Lab ยท #136, #137, #146

๐Ÿง  TACTICS-001 โ€” Squads that respect cover

The new pure tactics module adds deterministic HOLD, MOVE, SUPPRESS and RETREAT orders, bounded cardinal A* routing, occupancy-aware decisions, immutable accepted state and actual SENSE-001 visibility/occlusion checks. A hidden target cannot be suppressed simply because it exists in the world; out-of-range is not mistaken for physical cover.

Squadline โ€” Quiet Relay is an original three-versus-three objective game featuring ally orders, opposing AI, cover inspection, suggested actions, undo and replay. Tactical suppression is policy stateโ€”not fabricated weapon damage.

Play: Squadline ยท PR #145

๐Ÿ› ๏ธ CAD-001 โ†’ CAD-003 โ€” The Geometry Forge

Three successive additions transform the Visual Editor's Asset Foundry:

  • CAD-001 โ€” Parametric Primitives: original bounded column/cylinder, cone and urn controls; native geometry, deterministic OBJ export, SHA-256 source provenance and standard scene placement.
  • CAD-002 โ€” Editable Profiles: recover supported saved radial meshes, edit ring outlines with snapped draggable handles and dimensions, and create new immutable variants without mutating original assets.
  • CAD-003 โ€” Geometry Forge: bounded convex polygon extrusion, edge chamfers, walls, platforms, towers, wedges, mesh winding/topology/volume diagnostics, and an atomic six-structure industrial compound.

Generated geometry uses established project save/export, rendering and Undo/Redo paths. CAD-001 adapts a radial modelling approach from Apache-2.0 DabbleCAD with attribution and the preserved docs/DABBLECAD_NOTICE.md. No Three.js, Electron, Manifold/CSG runtime or external model pack is bundled.

Create: Visual Editor ยท #141, #142, #143

๐ŸŒ Projection25D & WORLD-VIS-001 โ€” Presentation without physics compromises

VANILLAJS-25D-001 provides opt-in oblique 2.5D presentation, cosmetic extrusion, shadowing, stable draw order and unchanged ground-plane collision footprints. A strict offline OBJ-to-lit-mesh converter retains its source SHA-256 identity.

WORLD-VIS-001 adds retained HORIZON world presentation: conservative multi-camera frustum selection, deterministic opaque/transparent ordering, bounded whole-triangle visual LOD, reusable GPU handles, eviction limits and context recovery. The Retained World lab exposes three cameras, culling/LOD controls and buffer telemetry.

Neither feature rewrites source geometry, collision, race physics or authoritative replay state. Far LOD is an acknowledged display approximation, not collision geometry.

Explore: 2.5D Lab ยท Retained World ยท #134, #144

๐ŸŽต CHIP-AUDIO-001 โ€” Four voices of old-school attitude

An opt-in, original four-voice signed 8-bit PCM system combines SID-inspired ADSR envelopes, Paula-style stereo routing, PAL/NTSC period choices, seed-controlled wave/noise generation, optional approximate filtering and deterministic sample-range rendering. The listening lab plays an original generated phrase and exports 48 kHz stereo PCM WAV locally.

These are hardware-inspired models, not cycle-accurate SID/Paula emulation or a claim about native sound-card timing.

Listen: Chip Audio Lab ยท PR #135

๐Ÿ—๏ธ CREATOR-INTEROP-001 โ€” World Foundry and sealed offline content

World Foundry creates portable, versioned JSON packages containing bounded original 2D/2.5D/3D meshes, targets, vehicles, props, spawn placements, physical line-of-sight regions and optional tactical squads.

Scene Graph, SENSE, TACTICS and CAD validators retain their respective authority. Packages use SHA-256 content/asset digests, strict schema and reference checks, size bounds and atomic rejection for malformed or tampered input. No executable mod script or network fetch is needed to exchange original authored worlds.

Build: World Foundry ยท PR #147

๐Ÿ”ฌ REPLAY-AUDIT-001 โ€” The Evidence Chamber

A new cross-lab receipt system runs real native engines and independently verifies complete accepted command/event tapes:

Model Authority
FPS Combat3D โ€” 60 Hz authoritative ticks and per-tick events
Air TRAJECTORY-001 โ€” 120 Hz physical lock, guidance and contact
Racing vehicle3d โ€” 120 Hz flat-surface source-controlled adapter
Integer Native integer-engine replay โ€” integer-exact tape identity

Receipts bind source declarations, complete commands, per-tick events and state SHA-256s, and final-state evidence. A declared build SHA does not itself prove that executable source was authenticated; floating models are same-runtime deterministic, not universally bit-identical across browsers.

The Evidence Chamber can record, verify, deliberately tamper, import and re-export independently checked receipts. It exercises three actual virtual 30/60/144 Hz Canvas2D presentation schedules with interleaved authoritative fixed ticks; the schedules do not purport to measure physical monitor refresh or GPU FPS.

Non-default imported tapes remain the active audit evidence. Evidence-generation tokens prevent an obsolete asynchronous comparison from painting a stale result or publishing a false PARITY PASS after a model/recording/import change.

Inspect: Evidence Chamber ยท PR #148

๐Ÿงช Evidence, racing acceptance and offline resilience

  • FPS-LAB-OPT-001 (#133): source-bound, paired headless Chromium frame-time diagnostics with retained raw RAF samples, renderer identity, source hashes and screenshots. Evidence firstโ€”no unmeasured speedup claim.
  • HORIZON-ACCEPTANCE-001 (#138): correct the race browser gate so W acceleration is checked after the complete three-second countdown. It retains the real >2 m/s physical speed threshold and stronger phase/input/gear assertions.
  • OSS-GAME-REUSE-001 (#139): source-pinned research and licence-aware design roadmap; its six implementation phases are now delivered by subsequent PRs.
  • VOIDWARD acceptance hardening (#148): independently isolated Chromium execution; full offline cache-member verification; useful request-failure diagnostics rather than [object Object]; retained negative controls and the original readiness timeout. The optional owner Chrome/GPU harness forwards its chosen executable, headed mode and renderer flags rather than silently switching to hosted SwiftShader.
  • Major new modules have focused Node and packaged Chromium checks with retained evidence. Hosted software-rendered checks do not certify owner-device hardware acceleration or FPS.

๐Ÿ”’ Compatibility, provenance and reproducibility

The new systems are generally opt-in and preserve existing HORIZON, FPS, cockpit, game-world and rendering authority rather than replacing established physics or save formats. The project continues to use native ES modules, explicit source validation and offline-first packaging.

VANILLAJS core software remains Apache-2.0, subject to preserved file-specific notices. DabbleCAD attribution is retained. External open-source game catalogues and donor studies are research inputsโ€”not blanket redistribution licences for their linked game code, assets, music or trademarks.

To verify the local checked-out source and package:

node --test tests/*.test.js
node scripts/check.js
node scripts/build.js
node scripts/verify-offline.js

Browser checks use their separate pinned toolchains. Release acceptance requires the actual post-merge GitHub Actions results; no CI outcome is inferred from this release-note text.

๐Ÿ“œ Complete merged PR register โ€” #133 through #148

PR Included work
#133 FPS-LAB-OPT-001 โ€” paired browser frame-time evidence
#134 VANILLAJS-25D-001 โ€” 2.5D projection and offline OBJ conversion
#135 CHIP-AUDIO-001 โ€” SID/Paula-inspired four-voice PCM
#136 COCKPIT-001 โ€” cockpit rigs, airframe and physical sights
#137 COCKPIT-002 โ€” TOO CLOSE FOR GUNS and game-owned missiles
#138 HORIZON-ACCEPTANCE-001 โ€” post-countdown racing check
#139 OSS-GAME-REUSE-001 โ€” licence-aware engineering roadmap
#140 SENSE-001 โ€” visibility and Shadowline Tactics
#141 CAD-001 โ€” parametric Asset Foundry primitives
#142 CAD-002 โ€” snapped editable profiles and mesh variants
#143 CAD-003 โ€” Geometry Forge and topology diagnostics
#144 WORLD-VIS-001 โ€” retained HORIZON visibility and LOD
#145 TACTICS-001 โ€” Squadline, deterministic orders and cover AI
#146 TRAJECTORY-001 โ€” guided physical contact
#147 CREATOR-INTEROP-001 โ€” World Foundry and sealed content
#148 REPLAY-AUDIT-001 โ€” source-bound receipts and Evidence Chamber

Compare: v3.0.0 โ†’ v3.1.0 candidate
Release-candidate source: d6da91b91374d28bdd7c201d214f5618b247904c (merged PR #148)


VANILLAJS โ€” Make amazing alien tech. Keep it original. Keep it offline. Make it verifiable. ๐Ÿ‘ฝ