Skip to content

Commit d08ce41

Browse files
author
Matt Karl
committed
Initial commit
0 parents  commit d08ce41

43 files changed

Lines changed: 582 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.gitattributes export-ignore
2+
.gitignore export-ignore
3+
README.md export-ignore

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules/
2+
components/
3+
RECOVER_*.fla
4+
*.sublime-*
5+
RECOVER_*
6+
npm-debug.log
7+
deploy/assets/js
8+
deploy/assets/css
9+
deploy/assets/config/config.json
10+
deploy/assets/config/manifests.json

Gruntfile.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = function(grunt)
2+
{
3+
require('grunt-springroll')(grunt,
4+
{
5+
// Event spec slug goes here
6+
eventSpec: 'spec-slug'
7+
});
8+
};

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# EaselJS Game Template
2+
3+
This is a project template designed to work with [SpringRollStudio](https://github.com/SpringRoll/SpringRollStudio).
4+
5+
## Installation
6+
7+
Download and unpack a ZIP file of the [latest release](https://github.com/SpringRoll/EaselJSGameTemplate/releases) of the template. Open up SpringRollStudio and click on "New Project". Select the gear icon next to the template selector and drag the unzipped template to the drop area. Template should automatically install.

assets/fla/Game.fla

60.4 KB
Binary file not shown.

assets/fla/Transition.fla

5.67 KB
Binary file not shown.

assets/fla/js/Game.js

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
(function (lib, img, cjs) {
2+
3+
var p; // shortcut to reference prototypes
4+
var MovieClip = cjs.MovieClip;
5+
var Bitmap = cjs.Bitmap;
6+
var Tween = cjs.Tween;
7+
var Rectangle = cjs.Rectangle;
8+
var Container = cjs.Container;
9+
var Shape = cjs.Shape;
10+
11+
// library properties:
12+
13+
14+
15+
16+
// symbols:
17+
18+
19+
20+
(lib.GameBackground = function() {
21+
this.initialize(img.GameBackground);
22+
}).prototype = p = new Bitmap();
23+
p.nominalBounds = new Rectangle(0,0,1024,768);
24+
25+
26+
(lib.Symbol1 = function() {
27+
var shape;
28+
this.initialize();
29+
30+
// Layer 1
31+
shape = this.shape = new Shape();
32+
shape.graphics.f("#FF0066").s().p("AlnFoQiWiVAAjTQAAjSCWiVQCViWDSAAQDTAACVCWQCWCVAADSQAADTiWCVQiVCWjTAAQjSAAiViWg");
33+
34+
this.addChild(shape);
35+
}).prototype = p = new Container();
36+
p.nominalBounds = new Rectangle(-51,-51,102.1,102.1);
37+
38+
39+
// stage content:
40+
(lib.Game = function(mode,startPosition,loop) {
41+
var instance_1;
42+
var instance;
43+
this.initialize(mode,startPosition,loop,{});
44+
45+
// Layer 2
46+
instance = this.instance = new lib.Symbol1("synched",0);
47+
instance.setTransform(205.1,285);
48+
49+
this.timeline.addTween(Tween.get(instance).wait(1).to({y:286},0).wait(1).to({y:289},0).wait(1).to({y:294},0).wait(1).to({y:300.9},0).wait(1).to({y:309.8},0).wait(1).to({y:320.6},0).wait(1).to({y:333.3},0).wait(1).to({y:347.8},0).wait(1).to({y:364.3},0).wait(1).to({y:382.7},0).wait(1).to({y:403},0).wait(1).to({y:425.1},0).wait(1).to({y:449.2},0).wait(1).to({y:475.3},0).wait(1).to({y:503.3},0).wait(1).to({y:533.3},0).wait(1).to({y:565.4},0).wait(1).to({y:599.6},0).wait(1).to({y:636.2},0).wait(1).to({y:675.2},0).wait(1).to({y:717},0).wait(1).to({scaleX:1.24,scaleY:0.81,y:726.6},0).wait(1).to({scaleX:1.39,scaleY:0.69,y:733},0).wait(1).to({scaleX:1.09,scaleY:0.93,y:720.5},0).wait(1).to({scaleX:1,scaleY:1,y:717},0).wait(1).to({y:675.5},0).wait(1).to({y:634.1},0).wait(1).to({y:593.8},0).wait(1).to({y:555.3},0).wait(1).to({y:519.3},0).wait(1).to({y:486.1},0).wait(1).to({y:455.8},0).wait(1).to({y:428.4},0).wait(1).to({y:404},0).wait(1).to({y:382.3},0).wait(1).to({y:363.3},0).wait(1).to({y:346.8},0).wait(1).to({y:332.5},0).wait(1).to({y:320.5},0).wait(1).to({y:310.4},0).wait(1).to({y:302.2},0).wait(1).to({y:295.7},0).wait(1).to({y:290.9},0).wait(1).to({y:287.6},0).wait(1).to({y:285.6},0).wait(1).to({y:285},0).wait(1));
50+
51+
// Layer 1
52+
instance_1 = this.instance_1 = new lib.GameBackground();
53+
54+
this.timeline.addTween(Tween.get(instance_1).wait(47));
55+
56+
}).prototype = p = new MovieClip();
57+
p.nominalBounds = new Rectangle(512,384,1024,768);
58+
59+
})(lib = lib||{}, images = images||{}, createjs = createjs||{});
60+
var lib, images, createjs;

assets/fla/js/Game.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"width":1024,"height":768,"fps":24,"color":"#FFFFFF","manifest":[{"src":"../../../deploy/assets/images/GameBackground.jpg","id":"GameBackground"}]}

assets/fla/js/Transition.js

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
(function (lib, img, cjs) {
2+
3+
var p; // shortcut to reference prototypes
4+
var MovieClip = cjs.MovieClip;
5+
var Tween = cjs.Tween;
6+
var Rectangle = cjs.Rectangle;
7+
var Container = cjs.Container;
8+
var Shape = cjs.Shape;
9+
10+
// library properties:
11+
12+
13+
14+
15+
// symbols:
16+
17+
18+
19+
(lib.Transition_1 = function() {
20+
var shape;
21+
this.initialize();
22+
23+
// Layer 1
24+
shape = this.shape = new Shape();
25+
shape.graphics.f("#9F4503").s().p("EhP/A8AMAAAh3/MCf/AAAMAAAB3/gAhlhlQgqArAAA6QAAA7AqArQArAqA6AAQA7AAArgqQAqgrAAg7QAAg6gqgrQgrgqg7AAQg6AAgrAqg");
26+
27+
this.addChild(shape);
28+
}).prototype = p = new Container();
29+
p.nominalBounds = new Rectangle(-512,-384,1024,768);
30+
31+
32+
(lib.Fill = function() {
33+
var shape;
34+
this.initialize();
35+
36+
// Layer 1
37+
shape = this.shape = new Shape();
38+
shape.graphics.f("#9F4503").s().p("EhP/A7/MAAAh3+MCf/AAAMAAAB3+g");
39+
shape.setTransform(512,384);
40+
41+
this.addChild(shape);
42+
}).prototype = p = new Container();
43+
p.nominalBounds = new Rectangle(0,0,1024,768);
44+
45+
46+
// stage content:
47+
(lib.Transition = function(mode,startPosition,loop) {
48+
var instance_1;
49+
var instance;
50+
if (loop == null) { loop = false; } this.initialize(mode,startPosition,loop,{hidden:0,onTransitionOut:1,onTransitionOut_stop:30,onTransitionIn:50,onTransitionIn_stop:79});
51+
52+
// mask
53+
instance = this.instance = new lib.Transition_1("synched",0);
54+
instance.setTransform(512,384,43.834,43.834);
55+
instance._off = true;
56+
57+
instance_1 = this.instance_1 = new lib.Fill("synched",0);
58+
instance_1.setTransform(450,250,1,1,0,0,0,450,250);
59+
60+
this.timeline.addTween(Tween.get({}).to({state:[]}).to({state:[{t:instance}]},2).to({state:[{t:instance}]},27).to({state:[{t:instance_1}]},1).to({state:[{t:instance}]},21).to({state:[{t:instance}]},27).to({state:[]},1).wait(6));
61+
this.timeline.addTween(Tween.get(instance).wait(2).to({_off:false},0).to({scaleX:1,scaleY:1},27).to({_off:true},1).wait(21).to({_off:false},0).to({scaleX:43.83,scaleY:43.83},27).to({_off:true},1).wait(6));
62+
63+
}).prototype = p = new MovieClip();
64+
p.nominalBounds = null;
65+
66+
})(lib = lib||{}, images = images||{}, createjs = createjs||{});
67+
var lib, images, createjs;

assets/fla/js/Transition.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"width":1024,"height":768,"fps":30,"color":"#FFFFFF","manifest":[]}

0 commit comments

Comments
 (0)