Mire Engine

  1. Main menu

    By Thejuster il 3 Nov. 2018
     
    +1   -1    0 Comments   74 Views
    .

    Cattura



    :it:
    Il Main Menu è stato creato utilizzando lo strumento di generazione delle scene. :)

    :en:
    The Main Menu was generated using Scene Manager tool :)

    //####################################################
    //# Default Scene_Game #
    //# Warning: #
    //# This class is vital. #
    //# You can Clear all content in this script #
    //# and make empty all function #
    //# But you cannot remove the file. #
    //# Mire depends on it. #
    //#--------------------------------------------------#
    //# By Mire Dev #
    //####################################################

    #include "Bitmap.js" //Bitmap Class
    #include "Actors.js" //Actor Class
    #include "Keyboard.js"


    function Scene_Game()
    {
    this.bitmap = new Bitmap();
    this.Actor = new Actors();
    this.keyboard = new Keyboard();
    this.scene = new Scene_Manager();

    };


    //Initialize Method for Scene Game
    Scene_Game.prototype.Initialize = function()
    {

    var act = new Actors();
    act.Initialize();

    act.Enable();
    act.Controls(true);


    };


    //Update Method for Scene Game
    Scene_Game.prototype.Update = function()
    {

    if(this.keyboard.GetKey() == "escape")
    {
    this.scene.Call("Scene_Menu");
    }
    };


    Edited by Thejuster - 18/2/2019, 09:01
      Share  
     
    .