1
JavaScript is cool
source link: https://codeguppy.com/code.html?javascript_is_cool=
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
JavaScript is cool
SceneMgr
Scenes
// JavaScript is Cool! (a demoscene style program)
// Coded by Marian Veteanu
// Credits: Snow Esamosc, Luxor.jl, Dan Shiffman, and others...
let sm = require("SceneMgr");
let scenes = require("Scenes");
sm.addScenes(scenes);
sm.useGlobalClear(true);
sm.setFrameHandler(onFrame);
music('Awake', 0.3);
function loop()
sm.run();
function onFrame(frame)
switch(frame)
case 0:
sm.runSceneSingle("Welcome", ["white", "black"]);
break;
case 120:
sm.runSceneSingle("Balls");
break;
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK