Skip to content

Commit

Permalink
Initial add
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Karl committed Sep 7, 2014
1 parent 4a3fd4f commit cfae094
Show file tree
Hide file tree
Showing 79 changed files with 35,243 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory" : "components"
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
.grunt
node_modules
components
29 changes: 29 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = function(grunt)
{
var path = require('path'),
_ = grunt.util._;

// Combine the game builder and current project
// configs into one object
grunt.initConfig(_.extend(

// Setup the default game tasks
require('grunt-game-builder')(grunt, {
autoInit: false,
jsFolder : "deploy/assets/js"
}),

// Setup the current project tasks
require('load-grunt-config')(grunt, {
// The path for the tasks
configPath: path.join(process.cwd(), 'tasks'),
autoInit: false,

// We don't want to reload builder
loadGruntTasks: { pattern: [
'grunt-*',
'!grunt-game-builder'
] },
})
));
};
14 changes: 14 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "ParticleEditor",
"version": "0.0.1",
"dependencies": {
"cloudkid-debug": "*",
"cloudkid-namespace": "*",
"pixi.js": "https://github.com/CloudKidStudio/pixi.js.git#^1.6.2",
"cloudkid-framework": "*",
"cloudkid-tasks": "framework",
"cloudkid-pixi-display": "*",
"cloudkid-particles": "*",
"normalize.css": "*"
}
}
21 changes: 21 additions & 0 deletions build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "ParticleEditor",
"version": "0.0.1",
"main": [
"src/Editor.js",
"src/main.js",
"src/main.less"
],
"libraries": [
"components/normalize.css/normalize.css",
"components/preloadjs/lib/preloadjs.min.js",
"components/pixi.js/bin/pixi.dev.js",
"components/cloudkid-namespace/namespace.js",
"components/cloudkid-debug/dist/cloudkid-debug.js",
"components/cloudkid-framework/dist/cloudkid-framework.js",
"components/cloudkid-tasks/dist/cloudkid-tasks.js",
"components/cloudkid-pixi-display/dist/cloudkid-pixi-display.js",
"components/cloudkid-particles/dist/cloudkid-particles.js"
]
}

45 changes: 45 additions & 0 deletions deploy/assets/config/defaultFlame.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"alpha": {
"start": 0.8,
"end": 0.1
},
"scale": {
"start": 0.6,
"end": 0.4
},
"color": {
"start": "fe8e06",
"end": "fffd00"
},
"speed": {
"start": 100,
"end": 150
},
"startRotation": {
"min": -45,
"max": -135
},
"rotationSpeed": {
"min": 0,
"max": 0
},
"lifetime": {
"min": 0.3,
"max": 0.8
},
"frequency": 0.008,
"emitterLifetime": -1,
"maxParticles": 1000,
"pos": {
"x": 0,
"y": 0
},
"addAtBack": false,
"spawnType": "rect",
"spawnRect": {
"x": -15,
"y": -2,
"w": 30,
"h": 4
}
}
44 changes: 44 additions & 0 deletions deploy/assets/config/defaultGas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"alpha": {
"start": 0.4,
"end": 0.1
},
"scale": {
"start": 0.5,
"end": 0.4
},
"color": {
"start": "a225fe",
"end": "904bfe"
},
"speed": {
"start": 10,
"end": 10
},
"startRotation": {
"min": 0,
"max": 360
},
"rotationSpeed": {
"min": 0,
"max": 0
},
"lifetime": {
"min": 2,
"max": 1.8
},
"frequency": 0.03,
"emitterLifetime": -1,
"maxParticles": 1000,
"pos": {
"x": 0,
"y": 0
},
"addAtBack": false,
"spawnType": "circle",
"spawnCircle": {
"x": 0,
"y": 0,
"r": 150
}
}
16 changes: 16 additions & 0 deletions deploy/assets/config/defaultTrail.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"alpha":{"start":0.8, "end":0.1},//Start and end alpha
"color":{"start":"#E3F9FF", "end":"#0EC8F8"},//start and end color (no alpha)
"scale":{"start":1, "end":0.3},//start and end scale
"speed":{"start":0, "end":0},//speed in units/sec to move at, at start and end of life
"startRotation":{"min":0, "max":0},//minimum and maximum rotation (affects movement) of particle when emitting
"lifetime":{"min":0.2, "max":0.2},//lifetime of particles in seconds
//"ease":[{"s":0,"cp":0.482,"e":0.732},{"s":0.732,"cp":0.982,"e":1}],//custom ease, as created by http://www.greensock.com/customease/
"frequency":0.008,//how often to emit particles, in seconds (emitter can handle doing more than one per frame)
"maxParticles":1000,//probably no more than 25 for the particle life and frequency for these settings
"emitterLifetime":-1,//-1 is emit forever
"spawnType":"point",//drop particles in place
"angle":{"min":0, "max":0},//minimum and maximum rotation (affects movement) when emitting
"pos":{"x":0, "y":0},//position relative to emitter's owner's origin
"addAtBack":false//add at back of display list
}
44 changes: 44 additions & 0 deletions deploy/assets/config/explosion.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"alpha": {
"start": 0.8,
"end": 0.1
},
"scale": {
"start": 1,
"end": 0.3
},
"color": {
"start": "fb1010",
"end": "f5b830"
},
"speed": {
"start": 200,
"end": 100
},
"startRotation": {
"min": 0,
"max": 360
},
"rotationSpeed": {
"min": 0,
"max": 0
},
"lifetime": {
"min": 0.5,
"max": 0.5
},
"frequency": 0.008,
"emitterLifetime": 0.31,
"maxParticles": 1000,
"pos": {
"x": 0,
"y": 0
},
"addAtBack": false,
"spawnType": "circle",
"spawnCircle": {
"x": 0,
"y": 0,
"r": 10
}
}
42 changes: 42 additions & 0 deletions deploy/assets/config/explosion2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"alpha": {
"start": 0.8,
"end": 0.1
},
"scale": {
"start": 1,
"end": 0.3
},
"color": {
"start": "fd1111",
"end": "f7a134"
},
"speed": {
"start": 200,
"end": 200
},
"startRotation": {
"min": 0,
"max": 0
},
"rotationSpeed": {
"min": 0,
"max": 0
},
"lifetime": {
"min": 0.5,
"max": 0.5
},
"frequency": 0.1,
"emitterLifetime": 0.31,
"maxParticles": 1000,
"pos": {
"x": 0,
"y": 0
},
"addAtBack": false,
"spawnType": "burst",
"particlesPerWave": 10,
"particleSpacing": 0,
"angleStart": 0
}
42 changes: 42 additions & 0 deletions deploy/assets/config/megamanDeath.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"alpha": {
"start": 0.8,
"end": 0.7
},
"scale": {
"start": 1,
"end": 0.3
},
"color": {
"start": "e3f9ff",
"end": "0ec8f8"
},
"speed": {
"start": 200,
"end": 200
},
"startRotation": {
"min": 0,
"max": 0
},
"rotationSpeed": {
"min": 0,
"max": 0
},
"lifetime": {
"min": 0.8,
"max": 0.8
},
"frequency": 0.2,
"emitterLifetime": 0.41,
"maxParticles": 1000,
"pos": {
"x": 0,
"y": 0
},
"addAtBack": false,
"spawnType": "burst",
"particlesPerWave": 8,
"particleSpacing": 45,
"angleStart": 0
}
45 changes: 45 additions & 0 deletions deploy/assets/config/rain.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"alpha": {
"start": 0.5,
"end": 0.5
},
"scale": {
"start": 1,
"end": 1
},
"color": {
"start": "267dff",
"end": "267dff"
},
"speed": {
"start": 600,
"end": 600
},
"startRotation": {
"min": 85,
"max": 95
},
"rotationSpeed": {
"min": 0,
"max": 0
},
"lifetime": {
"min": 0.81,
"max": 0.81
},
"frequency": 0.004,
"emitterLifetime": -1,
"maxParticles": 1000,
"pos": {
"x": 0,
"y": 0
},
"addAtBack": false,
"spawnType": "rect",
"spawnRect": {
"x": -500,
"y": -260,
"w": 900,
"h": 20
}
}
1 change: 1 addition & 0 deletions deploy/assets/css/libraries.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions deploy/assets/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added deploy/assets/images/particle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deploy/assets/images/rain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added deploy/assets/images/smokeparticle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit cfae094

Please sign in to comment.