1

JavaScript is cool

 1 year ago
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.
neoserver,ios ssh client

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;

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK