Esempio n. 1
0
    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;
    }
Esempio n. 2
0
    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();
    }
Esempio n. 3
0
    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();
    }