Script Tags
ZIM WITH SCRIPT TAGS
You can add CreateJS and ZIM as script tags above your code.The scripts can be found on the CDN. Alternatively, use Modules.
<!-- Individual Scripts from CDN -->
<script src="proxy.php?url=https%3A%2F%2Fzimjs.org%2Fcdn%2F1.5%2Fcreatejs.js"></script>
<script src="proxy.php?url=https%3A%2F%2Fzimjs.org%2Fcdn%2F019%2Fzim_min.js"></script>
<script>
new Frame(FIT, 1024, 768, light, dark, ready);
function ready() {
// put your code here
}
</script>
Note: this becomes one line when using Modules. Other helper libraries are similar. The top of the DOCS has commonly used libraries.
Note: three.js is only supported with ES6 modules or NPM now. Can go back to R149 with scripts.
<!-- Individual Scripts from CDN -->
<script src="proxy.php?url=https%3A%2F%2Fzimjs.org%2Fcdn%2F1.5%2Fcreatejs.js"></script>
<script src="proxy.php?url=https%3A%2F%2Fzimjs.org%2Fcdn%2F019%2Fzim_min.js"></script>
<script src="proxy.php?url=https%3A%2F%2Fzimjs.org%2Fcdn%2F2.1.3%2Fbox2d.js"></script>
<script src="proxy.php?url=https%3A%2F%2Fzimjs.org%2Fcdn%2Fphysics_2.3.js"></script>
<script>
new Frame(FIT, 1024, 768, light, dark, ready);
function ready() {
// put your code here
}
</script>
ZIM can also be used without the Internet. Download the OFFLINE ZIP example.
Make sure to unzip the ZIP file once it is downloaded.
