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,
pack: null,
author: null,
company: null
company: null,
width: 800,
height: 600,
};
if (params) {
this.update(params);

View File

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

View File

@@ -15,7 +15,7 @@
<haxeflag name="-D" value="<%=item%>"/><% }); %>
<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="native-trace"/>