Skip to content

Commit 6d7b558

Browse files
committed
Updated template to automatically include support for pixi.js ^4.5.2
1 parent c91a434 commit 6d7b558

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

Gruntfile.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = function (grunt) {
44

55
require('grunt-springroll')(grunt);
66

7-
grunt.registerTask('vBump', function (level) {
7+
grunt.registerTask('increment-version', function (level) {
88
var increment = function (value) {
99
var arr = value.split('.');
1010

@@ -21,6 +21,9 @@ module.exports = function (grunt) {
2121
case "3":
2222
arr[2] = +arr[2] + 1;
2323
break;
24+
default:
25+
arr[2] = +arr[2] + 1;
26+
break;
2427
}
2528

2629
return arr.join('.');
@@ -59,7 +62,7 @@ module.exports = function (grunt) {
5962
});
6063

6164
// Override-able tasks for adding to the build
62-
grunt.registerTask('_pre-build', ['vBump:3']);
65+
grunt.registerTask('_pre-build', ['increment-version:3']);
6366
grunt.registerTask('_post-build', []);
6467
grunt.registerTask('_pre-build-debug', []);
6568
grunt.registerTask('_post-build-debug', []);

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "_version_",
44
"dependencies": {
55
"grunt": "*",
6-
"grunt-springroll": "*"
6+
"grunt-springroll": "*",
7+
"pixi.js": "^4.5.2"
78
}
89
}

springroll-template.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name" : "Platypus",
33
"id" : "com.gopherwoodstudios.platypus",
4-
"version" : "0.11.0",
4+
"version" : "0.11.2",
55
"github": "Gopherwood/PlatypusSpringRollTemplate",
66
"rename" : {
77
"gitignore" : ".gitignore",
@@ -10,13 +10,21 @@
1010
"bower": "bower.json"
1111
},
1212
"extend": "io.springroll.default",
13-
"required": ["core", "platypus", "states", "sound", "pixi-display"],
13+
"required": ["core", "platypus", "states", "sound"],
1414
"modules": [{
1515
"id": "platypus",
1616
"name": "Platypus Game Engine",
1717
"description": "An HTML5 2D tile-based game framework.",
18-
"main": ["components/springroll-platypus/lib/platypus.min.js"],
19-
"mainDebug": ["components/springroll-platypus/lib/platypus.combined.js"],
18+
"main": [
19+
"node_modules/pixi.js/dist/pixi.min.js",
20+
"components/springroll/dist/modules/pixi-display.min.js",
21+
"components/springroll-platypus/lib/platypus.min.js"
22+
],
23+
"mainDebug": [
24+
"node_modules/pixi.js/dist/pixi.js",
25+
"components/springroll/dist/modules/pixi-display.js",
26+
"components/springroll-platypus/lib/platypus.combined.js"
27+
],
2028
"bower": {
2129
"springroll-platypus": "~0.11"
2230
},

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// Library dependencies
66
var Application = include('springroll.Application'),
7-
Display = include('_displayClass_'),
7+
Display = include('springroll.pixi.PixiDisplay'),
88
app = new Application({ // Create a new application
99
name: "_name_",
1010
canvasId: "stage",

0 commit comments

Comments
 (0)