Removing deprecated code

This commit is contained in:
Amadeus Demarzi 2014-07-26 15:40:17 -07:00
parent 33be6008d2
commit 28a89eb328
3 changed files with 0 additions and 785 deletions

View File

@ -2,7 +2,6 @@
Base,
Vector,
Logo,
Shapes,
Grid,
Chainable
){
@ -272,40 +271,6 @@ Engine = Base.extend({
}
},
generateRandomShape: function(){
var halfWidth, halfHeight, iter,
shape, shapeTemplate, columns, rows, modWidth, row, column,
xOffset, yOffset;
iter = 140;
rows = this.height / iter - 1;
modWidth = this.width % iter;
columns = (this.width - modWidth) / iter - 1;
row = Engine.getRandomInt(0, rows);
column = Engine.getRandomInt(0, columns);
halfWidth = this.width / 2;
halfHeight = this.height / 2;
shapeTemplate = Shapes[Engine.getRandomInt(0, Shapes.length - 1)];
xOffset = Engine.getRandomInt(-50, 50);
yOffset = Engine.getRandomInt(-50, 50);
shape = new Engine.Shape(
(iter / 2) + (column * iter) - (modWidth / 2) - halfWidth + xOffset - 25,
(iter / 2) + (row * iter) - halfHeight + yOffset - 25,
50,
50,
shapeTemplate.points,
shapeTemplate.polygons,
true
);
shape.selfDestruct(10);
this.shapes.push(shape);
},
resize: function(){
var scale = this.scale;
@ -362,7 +327,6 @@ window.Engine = Engine;
window.Base,
window.Vector,
window.Logo,
window.Shapes,
window.Grid,
window.Chainable
);

View File

@ -1,748 +0,0 @@
// jshint unused:false
var Shapes = [
{
"data": {
"width": 100,
"height": 100,
"ar": 1
},
"points": [
{
"id": "point-0",
"x": 0.848,
"y": -0.002
},
{
"id": "point-1",
"x": 0.11800000000000001,
"y": 0.015
},
{
"id": "point-2",
"x": 0.46,
"y": 0.602
},
{
"id": "point-6",
"x": 0.9,
"y": 0.685
},
{
"id": "point-8",
"x": 0.359,
"y": 0.7979999999999999
},
{
"id": "point-13",
"x": 0,
"y": 0.48200000000000004
}
],
"polygons": [
{
"id": "poly-0",
"color": {
"h": 242.6086956521739,
"s": 47.58620689655173,
"l": 28.431372549019606,
"a": 1
},
"points": [
"point-0",
"point-1",
"point-2"
]
},
{
"id": "poly-1",
"color": {
"h": 253.33333333333334,
"s": 30.508474576271187,
"l": 53.72549019607843,
"a": 1
},
"points": [
"point-0",
"point-2",
"point-6"
]
},
{
"id": "poly-2",
"color": {
"h": 246.31578947368416,
"s": 28.934010152284262,
"l": 38.62745098039216,
"a": 1
},
"points": [
"point-8",
"point-6",
"point-2"
]
},
{
"id": "poly-3",
"color": {
"h": 244.99999999999997,
"s": 51.724137931034484,
"l": 22.745098039215687,
"a": 1
},
"points": [
"point-1",
"point-13",
"point-2"
]
},
{
"id": "poly-4",
"color": {
"h": 240.84507042253526,
"s": 48.29931972789116,
"l": 28.823529411764703,
"a": 1
},
"points": [
"point-13",
"point-8",
"point-2"
]
}
]
},
{
"data": {
"width": 100,
"height": 100,
"ar": 1
},
"points": [
{
"id": "point-20",
"x": 0.6990000000000001,
"y": 0
},
{
"id": "point-21",
"x": 0.10800000000000001,
"y": 0.095
},
{
"id": "point-22",
"x": 0.515,
"y": 0.46
},
{
"id": "point-24",
"x": 0.915,
"y": 0.245
},
{
"id": "point-26",
"x": 0.89,
"y": 0.765
},
{
"id": "point-28",
"x": 0.349,
"y": 0.878
},
{
"id": "point-33",
"x": 0.002,
"y": 0.475
}
],
"polygons": [
{
"id": "poly-5",
"color": {
"h": 242.6086956521739,
"s": 47.58620689655173,
"l": 28.431372549019606,
"a": 1
},
"points": [
"point-20",
"point-21",
"point-22"
]
},
{
"id": "poly-6",
"color": {
"h": 253.33333333333334,
"s": 30.508474576271187,
"l": 53.72549019607843,
"a": 1
},
"points": [
"point-24",
"point-22",
"point-26"
]
},
{
"id": "poly-7",
"color": {
"h": 246.31578947368416,
"s": 28.934010152284262,
"l": 38.62745098039216,
"a": 1
},
"points": [
"point-28",
"point-26",
"point-22"
]
},
{
"id": "poly-8",
"color": {
"h": 244.99999999999997,
"s": 51.724137931034484,
"l": 22.745098039215687,
"a": 1
},
"points": [
"point-21",
"point-33",
"point-22"
]
},
{
"id": "poly-9",
"color": {
"h": 240.84507042253526,
"s": 48.29931972789116,
"l": 28.823529411764703,
"a": 1
},
"points": [
"point-33",
"point-28",
"point-22"
]
},
{
"id": "poly-10",
"color": {
"h": 256.74418604651163,
"s": 37.719298245614034,
"l": 44.70588235294118,
"a": 1
},
"points": [
"point-20",
"point-24",
"point-22"
]
}
]
},
{
"data": {
"width": 100,
"height": 100,
"ar": 1
},
"points": [
{
"id": "point-44",
"x": 0.675,
"y": 0.003
},
{
"id": "point-45",
"x": 0.162,
"y": 0.18
},
{
"id": "point-46",
"x": 0.56,
"y": 0.325
},
{
"id": "point-48",
"x": 0.895,
"y": 0.215
},
{
"id": "point-50",
"x": 0.79,
"y": 0.748
},
{
"id": "point-52",
"x": 0.244,
"y": 0.82
},
{
"id": "point-57",
"x": 0.002,
"y": 0.682
}
],
"polygons": [
{
"id": "poly-11",
"color": {
"h": 242.6086956521739,
"s": 47.58620689655173,
"l": 28.431372549019606,
"a": 1
},
"points": [
"point-44",
"point-45",
"point-46"
]
},
{
"id": "poly-12",
"color": {
"h": 253.33333333333334,
"s": 30.508474576271187,
"l": 53.72549019607843,
"a": 1
},
"points": [
"point-48",
"point-46",
"point-50"
]
},
{
"id": "poly-13",
"color": {
"h": 246.31578947368416,
"s": 28.934010152284262,
"l": 38.62745098039216,
"a": 1
},
"points": [
"point-52",
"point-50",
"point-46"
]
},
{
"id": "poly-14",
"color": {
"h": 244.99999999999997,
"s": 51.724137931034484,
"l": 22.745098039215687,
"a": 1
},
"points": [
"point-45",
"point-57",
"point-46"
]
},
{
"id": "poly-15",
"color": {
"h": 240.84507042253526,
"s": 48.29931972789116,
"l": 28.823529411764703,
"a": 1
},
"points": [
"point-57",
"point-52",
"point-46"
]
},
{
"id": "poly-16",
"color": {
"h": 256.74418604651163,
"s": 37.719298245614034,
"l": 44.70588235294118,
"a": 1
},
"points": [
"point-44",
"point-48",
"point-46"
]
}
]
},
{
"data": {
"width": 100,
"height": 100,
"ar": 1
},
"points": [
{
"id": "point-68",
"x": 0.379,
"y": 0.08800000000000001
},
{
"id": "point-69",
"x": 0,
"y": 0.345
},
{
"id": "point-70",
"x": 0.568,
"y": 0.56
},
{
"id": "point-74",
"x": 0.715,
"y": 0.003
},
{
"id": "point-76",
"x": 0.935,
"y": 0.215
},
{
"id": "point-78",
"x": 0.95,
"y": 0.525
},
{
"id": "point-80",
"x": 0.87,
"y": 0.785
},
{
"id": "point-84",
"x": 0.499,
"y": 0.883
},
{
"id": "point-88",
"x": 0.284,
"y": 0.82
},
{
"id": "point-93",
"x": 0.042,
"y": 0.682
}
],
"polygons": [
{
"id": "poly-17",
"color": {
"h": 242.6086956521739,
"s": 47.58620689655173,
"l": 28.431372549019606,
"a": 1
},
"points": [
"point-68",
"point-69",
"point-70"
]
},
{
"id": "poly-18",
"color": {
"h": 239.17808219178082,
"s": 44.78527607361962,
"l": 31.960784313725494,
"a": 1
},
"points": [
"point-68",
"point-70",
"point-74"
]
},
{
"id": "poly-19",
"color": {
"h": 253.33333333333334,
"s": 30.508474576271187,
"l": 53.72549019607843,
"a": 1
},
"points": [
"point-76",
"point-70",
"point-78"
]
},
{
"id": "poly-20",
"color": {
"h": 252.8571428571429,
"s": 30.701754385964914,
"l": 55.294117647058826,
"a": 1
},
"points": [
"point-80",
"point-78",
"point-70"
]
},
{
"id": "poly-21",
"color": {
"h": 255.1898734177215,
"s": 31.726907630522096,
"l": 48.82352941176471,
"a": 1
},
"points": [
"point-84",
"point-80",
"point-70"
]
},
{
"id": "poly-22",
"color": {
"h": 246.31578947368416,
"s": 28.934010152284262,
"l": 38.62745098039216,
"a": 1
},
"points": [
"point-88",
"point-84",
"point-70"
]
},
{
"id": "poly-23",
"color": {
"h": 244.99999999999997,
"s": 51.724137931034484,
"l": 22.745098039215687,
"a": 1
},
"points": [
"point-69",
"point-93",
"point-70"
]
},
{
"id": "poly-24",
"color": {
"h": 240.84507042253526,
"s": 48.29931972789116,
"l": 28.823529411764703,
"a": 1
},
"points": [
"point-93",
"point-88",
"point-70"
]
},
{
"id": "poly-25",
"color": {
"h": 256.74418604651163,
"s": 37.719298245614034,
"l": 44.70588235294118,
"a": 1
},
"points": [
"point-74",
"point-76",
"point-70"
]
}
]
},
{
"data": {
"width": 100,
"height": 100,
"ar": 1
},
"points": [
{
"id": "point-104",
"x": 0.33899999999999997,
"y": -0.004
},
{
"id": "point-105",
"x": 0.042,
"y": 0.209
},
{
"id": "point-106",
"x": 0.46799999999999997,
"y": 0.361
},
{
"id": "point-110",
"x": 0.675,
"y": 0.063
},
{
"id": "point-112",
"x": 0.83,
"y": 0.212
},
{
"id": "point-114",
"x": 0.91,
"y": 0.444
},
{
"id": "point-116",
"x": 0.78,
"y": 0.778
},
{
"id": "point-120",
"x": 0.45899999999999996,
"y": 0.943
},
{
"id": "point-124",
"x": 0.08900000000000001,
"y": 0.787
},
{
"id": "point-129",
"x": 0.002,
"y": 0.62
}
],
"polygons": [
{
"id": "poly-26",
"color": {
"h": 242.6086956521739,
"s": 47.58620689655173,
"l": 28.431372549019606,
"a": 1
},
"points": [
"point-104",
"point-105",
"point-106"
]
},
{
"id": "poly-27",
"color": {
"h": 239.17808219178082,
"s": 44.78527607361962,
"l": 31.960784313725494,
"a": 1
},
"points": [
"point-104",
"point-106",
"point-110"
]
},
{
"id": "poly-28",
"color": {
"h": 253.33333333333334,
"s": 30.508474576271187,
"l": 53.72549019607843,
"a": 1
},
"points": [
"point-112",
"point-106",
"point-114"
]
},
{
"id": "poly-29",
"color": {
"h": 252.8571428571429,
"s": 30.701754385964914,
"l": 55.294117647058826,
"a": 1
},
"points": [
"point-116",
"point-114",
"point-106"
]
},
{
"id": "poly-30",
"color": {
"h": 255.1898734177215,
"s": 31.726907630522096,
"l": 48.82352941176471,
"a": 1
},
"points": [
"point-120",
"point-116",
"point-106"
]
},
{
"id": "poly-31",
"color": {
"h": 246.31578947368416,
"s": 28.934010152284262,
"l": 38.62745098039216,
"a": 1
},
"points": [
"point-124",
"point-120",
"point-106"
]
},
{
"id": "poly-32",
"color": {
"h": 244.99999999999997,
"s": 51.724137931034484,
"l": 22.745098039215687,
"a": 1
},
"points": [
"point-105",
"point-129",
"point-106"
]
},
{
"id": "poly-33",
"color": {
"h": 240.84507042253526,
"s": 48.29931972789116,
"l": 28.823529411764703,
"a": 1
},
"points": [
"point-129",
"point-124",
"point-106"
]
},
{
"id": "poly-34",
"color": {
"h": 256.74418604651163,
"s": 37.719298245614034,
"l": 44.70588235294118,
"a": 1
},
"points": [
"point-110",
"point-112",
"point-106"
]
}
]
}
];

View File

@ -29,7 +29,6 @@
<script type="text/javascript" src="/javascripts/lib/Vector.js"></script>
<script type="text/javascript" src="/javascripts/lib/Chainable.js"></script>
<script type="text/javascript" src="/javascripts/app/Logo.js"></script>
<script type="text/javascript" src="/javascripts/app/Shapes.js"></script>
<script type="text/javascript" src="/javascripts/app/Grid.js"></script>
<script type="text/javascript" src="/javascripts/app/Engine.js"></script>
<script type="text/javascript" src="/javascripts/app/Engine.Particle.js"></script>