57 lines
1.6 KiB
Haxe
57 lines
1.6 KiB
Haxe
package;
|
|
|
|
import lime.tools.*;
|
|
import openfl.tools.*;
|
|
import hxp.*;
|
|
|
|
class Project extends HXProject {
|
|
public function new() {
|
|
super();
|
|
|
|
// Meta data
|
|
meta.title = "hgame";
|
|
meta.packageName = "FLWork";
|
|
meta.version = "1.0.0";
|
|
meta.company = "";
|
|
|
|
// App settings
|
|
app.main = "Main";
|
|
app.file = "hgame";
|
|
app.path = "bin";
|
|
|
|
|
|
// Window config
|
|
window.background = 0xFFFFFF;
|
|
window.fps = 60;
|
|
window.width = 1280;
|
|
window.height = 960;
|
|
window.vsync = false;
|
|
window.antialiasing = 0;
|
|
|
|
// Source path
|
|
sources.push("src");
|
|
sources.push("."); // we need this to enable code completion for this file
|
|
|
|
// Libraries
|
|
haxelibs.push(new Haxelib("lime", "8.2.2"));
|
|
haxelibs.push(new Haxelib("openfl", "9.4.1"));
|
|
haxelibs.push(new Haxelib("actuate"));
|
|
haxelibs.push(new Haxelib("hxp"));
|
|
|
|
|
|
// Assets
|
|
includeAssets("res/textures", "textures");
|
|
includeAssets("res/fonts", "fonts");
|
|
includeAssets("res/data", "data");
|
|
// assets.push(new lime.tools.Asset("res/textures", "textures"));
|
|
// assets.push(new lime.tools.Asset("res/fonts", "fonts"));
|
|
// assets.push(new lime.tools.Asset("res/data", "data"));
|
|
|
|
// Haxe flags
|
|
haxeflags.push("--macro addGlobalMetadata('', '@:build(engine.macros.ConVarDecorators.build())')");
|
|
haxeflags.push("--macro keep('Main')");
|
|
haxeflags.push("-dce full");
|
|
|
|
// target = Platform.LINUX;
|
|
}
|
|
} |