32 lines
587 B
Haxe
Executable File
32 lines
587 B
Haxe
Executable File
#if lime_html5
|
|
|
|
import ::APP_MAIN_PACKAGE::::APP_MAIN_CLASS::;
|
|
import lime.LiME;
|
|
|
|
class ApplicationMain {
|
|
|
|
public static function main () {
|
|
|
|
|
|
|
|
//Create the game class, give it the runtime
|
|
var _main_ = Type.createInstance (::APP_MAIN::, []);
|
|
//Create an instance of lime
|
|
var _lime = new LiME();
|
|
|
|
//Create the config from the project.nmml info
|
|
var config = {
|
|
width : ::WIN_WIDTH::,
|
|
height : ::WIN_HEIGHT::,
|
|
title : "::APP_TITLE::"
|
|
};
|
|
|
|
//Start up
|
|
_lime.init( _main_, config );
|
|
|
|
} //main
|
|
} //ApplicationMain
|
|
|
|
|
|
#end //lime_html5
|