function Interface(options) { Scene.apply(this, arguments); this.UI = new UI({ offset: this.options.offset, buttonSize: this.options.buttonSize }); this.nextButton = new NextButton({ offset: this.options.offset, buttonSize: this.options.buttonSize }); this.signup = new Signup({ offset: this.options.offset, buttonSize: this.options.buttonSize, textInputScale: this.options.textInputScale, submitScale: this.options.submitScale }); this._uiHidden = false; this.node.add( this.signup ); this.node.add( this.nextButton ); this.node.add( this.UI ); this.nextButton.show(); window.s = this; }
function BatmanScene() { document.body.style.backgroundColor = '#222'; Scene.apply(this, arguments); // Button this.split; this.torque; // UI this.ui; this.autoUI; this.labelProperties; this.descriptionProperties; // Feedback this.lasers; // Audio this.audio; this.initLasers(); this.initAudio(); this.initButton(); this.initUI(); this.events(); }
function NuclearScene() { document.body.style.backgroundColor = '#222'; Scene.apply(this, arguments); // Button this.split; this.torque; // UI this.ui; this.autoUI; this.labelProperties; this.descriptionProperties; // Feedback this.lasers; // Alarm this.alarmSurface; this.alarmMod; this._shoudlHighlight; this.initLasers(); this.initButton(); this.initAlarm(); this.initUI(); this.events(); }