- game/npc-logic.js → reference/npc-logic.js (added REFERENCE PROTOTYPE header) - scripts/guardrails.js → reference/guardrails.js (added REFERENCE PROTOTYPE header) - New reference/README.md with integration instructions Closes #196
544 B
544 B
reference/
Dormant prototypes not loaded by the browser runtime.
Files
| File | Why dormant |
|---|---|
npc-logic.js |
Uses ES module syntax (export default) — incompatible with <script> tag loading |
guardrails.js |
Has inline test code at the bottom — not production-ready |
To integrate
- Refactor to remove ES module exports (
npc-logic.js) - Remove inline test code (
guardrails.js) - Add
<script src="reference/filename.js">toindex.html - Wire into game engine lifecycle
- Add tests