Skip to content

Commit 0700abb

Browse files
authored
Merge pull request #104 from hashcube/new_spriter
Use updated spriter, set 1024 as the sheet size
2 parents ab2fc2b + 2bb55d9 commit 0700abb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "devkit-core",
33
"author": "Game Closure",
44
"description": "devkit engine",
5-
"version": "v5.0.7",
5+
"version": "v5.0.8",
66
"repository": {
77
"type": "git",
88
"url": "http://github.com/hashcube/devkit-core.git"
@@ -11,7 +11,7 @@
1111
"archiver": "^0.14.4",
1212
"bluebird": "^2.9.34",
1313
"chalk": "^1.1.1",
14-
"devkit-spriter": "0.0.9",
14+
"devkit-spriter": "git+https://github.com/hashcube/devkit-spriter.git#v0.1.0",
1515
"fs-extra": "^0.23.1",
1616
"glob": "^5.0.2",
1717
"graceful-fs": "^4.1.2",

src/build/streams/spriter/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ var SPRITABLE_EXTS = {
1515
};
1616

1717
var CACHE_FILENAME = "devkit-spriter";
18+
var DEFAULT_MAX_SIZE = 1024;
1819

1920
/**
2021
* Removes spritable image files from a file stream, sprites them, and inserts
@@ -89,6 +90,7 @@ var Group = Class(function () {
8990
var isJPG = compressOpts && compressOpts.format == 'jpg';
9091
this.ext = isJPG ? '.jpg' : '.png';
9192
this.mime = isJPG ? 'image/jpeg' : 'image/png';
93+
this.maxSize = DEFAULT_MAX_SIZE;
9294
};
9395

9496
this.addFile = function (file) {
@@ -311,6 +313,7 @@ var DevKitSpriter = Class(function () {
311313
name: group.sheetName,
312314
spritesheetsDirectory: this._spritesheetsDirectory,
313315
powerOfTwoSheets: group.powerOfTwoSheets,
316+
maxSize: group.maxSize,
314317
filenames: group.filenames,
315318
compress: group.compress,
316319
scale: group.scale,

0 commit comments

Comments
 (0)