- 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
19 lines
544 B
Markdown
19 lines
544 B
Markdown
# 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
|
|
|
|
1. Refactor to remove ES module exports (`npc-logic.js`)
|
|
2. Remove inline test code (`guardrails.js`)
|
|
3. Add `<script src="reference/filename.js">` to `index.html`
|
|
4. Wire into game engine lifecycle
|
|
5. Add tests
|