-
Notifications
You must be signed in to change notification settings - Fork 0
Adding js‐modules
For example you have written some code in ThreeMod.js that makes use of Three.js.
Assuming you have copied ThreeMod.js to ./dist/ and three-module is located in ./dist/node_modules
TODO: why cant I add ThreeMod.js to src/scripts instead?
-
in head-content.html you have to add
<script type="importmap">{"imports": {"three": "./node_modules/three/build/three.module.js"}}</script><script type="module" src="ThreeMod.js"></script> -
in ThreeMod.js you can now use imports
import * as THREE from './node_modules/three/build/three.module.js'; -
in ThreeMod.js I add functionality to global windows
(function(){
window.three = window.three || {views:null,models:null,activeViews:null,clock:null};
window.three.init=function() {...}
...
})(window);
What is twine and interactive fiction
Exampl. SuperSimpleStory
What are storyformats
Why snowman
Setup tweego and snowman
Switching between Tweego and Twine
Snowman template methods
Snowman markup
javascript usage
debugging your story
Common issues with template methods and scripting
Story Telling in general
General concepts for IF
Scenes & Sequels
Designing Puzzles
See here about my js-framework running in snowman:
==> problems & solutions <==