Navigation for the ZIM JavaScript Canvas Framework

HOMENewsAboutExamplesLearnCodeDocsDevs
JavaScript 6

You can code ZIM with ES6 (JavaScript 6). See an EXAMPLE page.


ES6 Modules can be imported for ZIM and helper libraries. See the IMPORT examples. (The imports include CreateJS as well.)
    <script type="module">
    
    // note the type="module" in the script tag above 
    // the module file must on a server to run   
    // alternatively, use script tags - see https://zimjs.com/script
    
    import zim from "https://zimjs.com/cdn/01/zim";
        
    new Frame(FIT, 1024, 768, light, dark, ready);
    function ready() {
            
        // put your code here
        
        new Circle(100, blue).center().drag();
        
    }
    
    </script>
There modules for the following libraries. Each of these includes ZIM and CreateJS. See the IMPORT examples.

* The libraries are in the format zim_game, zim_physics, etc.

** NOTE: socket needs socket.io loaded as a <script> first


Or you can use SCRIPT TAGS or NPM.