Example #1
0
    static synchronized void shutdown(LContext lcontext) {
	if (lcontext != null) {
	    LogoCommandRunner.stopLogoThread(lcontext);
	    ((LContext) lcontext).canvas.clearall(lcontext);
	}
	SoundPlayer.stopSoundsForApplet(lcontext);
	sensorValues = new int[16];
	for (int i = 3; i < 8; i++)
	    sensorValues[i] = 1000;
    }
Example #2
0
    static synchronized LContext startup(String string, String string_0_,
					 Container container, boolean bool) {
	LContext lcontext = new LContext();
	Logo.setupPrims(primclasses, lcontext);
	((LContext) lcontext).codeBase = string;
	((LContext) lcontext).projectURL = string_0_;
	((LContext) lcontext).autostart = bool;
	PlayerCanvas playercanvas = new PlayerCanvas();
	((PlayerCanvas) playercanvas).lc = lcontext;
	((LContext) lcontext).canvas = playercanvas;
	Skin.readSkin(playercanvas);
	SoundPlayer.startPlayer();
	container.add(playercanvas, "Center");
	LogoCommandRunner.startLogoThread("load \"startup startup", lcontext);
	return lcontext;
    }