add width and height meta params

This commit is contained in:
2019-03-13 14:18:52 +03:00
parent 0ee8ed8cd8
commit 19ebf337fb
3 changed files with 7 additions and 5 deletions

View File

@@ -38,7 +38,9 @@ class Config {
version: null, version: null,
pack: null, pack: null,
author: null, author: null,
company: null company: null,
width: 800,
height: 600,
}; };
if (params) { if (params) {
this.update(params); this.update(params);
@@ -78,4 +80,4 @@ module.exports = {
BuildSystem: BuildSystem, BuildSystem: BuildSystem,
Platform: Platform, Platform: Platform,
Config: Config, Config: Config,
}; };

View File

@@ -1,6 +1,6 @@
{ {
"name": "gulp-haxetool", "name": "gulp-haxetool",
"version": "0.0.14", "version": "0.0.15",
"description": "HaXe Tool for Gulp", "description": "HaXe Tool for Gulp",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {

View File

@@ -15,9 +15,9 @@
<haxeflag name="-D" value="<%=item%>"/><% }); %> <haxeflag name="-D" value="<%=item%>"/><% }); %>
<window fps="30"/> <window fps="30"/>
<window width="1024" height="768" unless="html5"/> <window width="<%=meta.width%>" height="<%=meta.height%>" unless="html5"/>
<haxeflag name="-D" value="swf-gpu"/> <haxeflag name="-D" value="swf-gpu"/>
<haxeflag name="-D" value="native-trace"/> <haxeflag name="-D" value="native-trace"/>
<haxeflag name="-dce" value="no"/> <haxeflag name="-dce" value="no"/>
</project> </project>