Updating templates path
This commit is contained in:
34
templates/haxe/ApplicationMain.hx
Normal file
34
templates/haxe/ApplicationMain.hx
Normal file
@@ -0,0 +1,34 @@
|
||||
import ::APP_MAIN::;
|
||||
|
||||
import lime.LiME;
|
||||
|
||||
class ApplicationMain {
|
||||
|
||||
public static var _main_ : ::APP_MAIN::;
|
||||
public static var _lime : LiME;
|
||||
|
||||
public static function main () {
|
||||
//Create the runtime
|
||||
_lime = new LiME();
|
||||
//Create the game class, give it the runtime
|
||||
_main_ = new ::APP_MAIN::();
|
||||
|
||||
var config = {
|
||||
fullscreen : ::WIN_FULLSCREEN::,
|
||||
resizable : ::WIN_RESIZABLE::,
|
||||
borderless : ::WIN_BORDERLESS::,
|
||||
aliasing : ::WIN_ANTIALIASING::,
|
||||
stencil_buffer : ::WIN_STENCIL_BUFFER::,
|
||||
depth_buffer : ::WIN_DEPTH_BUFFER::,
|
||||
vsync : ::WIN_VSYNC::,
|
||||
fps : ::WIN_FPS::,
|
||||
width : ::WIN_WIDTH::,
|
||||
height : ::WIN_HEIGHT::,
|
||||
title : "::APP_TITLE::"
|
||||
};
|
||||
|
||||
//Start up
|
||||
_lime.init( _main_, config );
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user