Package ctrl

Source Code of ctrl.Controller

package ctrl;

import game.GameSystem;

import org.lwjgl.input.Keyboard;

import view.InterfaceHandler;

public class Controller {

  public static void main(String[] args) {
    InterfaceHandler output = new InterfaceHandler();

    output.register(new InputHandler(Keyboard.KEY_ESCAPE) {
      @Override
      public void execute() {
        System.exit(0);
      }
    });

    output.run(new GameSystem());

  }

}
TOP

Related Classes of ctrl.Controller

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.