More updates and stuff

feature/coffeescript
Sven Slootweg 10 years ago
parent 4cccde754c
commit 783bcc7d3b

@ -375,7 +375,7 @@
return function(min, max, precision) {
var base_number, rounding_factor, space;
base_number = Math.random();
space = Math.abs(ceiling - floor);
space = Math.abs(max - min);
rounding_factor = 1 / (precision != null ? precision : 0.00000001);
return Math.floor((min + (base_number * space)) * rounding_factor) / rounding_factor;
};
@ -410,6 +410,7 @@
this.engine = engine;
this.name = name;
this.sprite = null;
this.instances = [];
this.x = 0;
this.y = 0;
}
@ -421,6 +422,7 @@
}
event_map = {
mouseover: this.onMouseOver,
mouseout: this.onMouseOut,
create: this.onCreate,
step: this.onStep
};
@ -458,6 +460,10 @@
};
};
Object.prototype.getInstances = function() {
return this.instances;
};
Object.prototype.checkPointCollision = function(x, y) {
var bounding_box;
bounding_box = this.getBoundingBox();
@ -643,7 +649,6 @@
canvas_pos = surface.getBoundingClientRect();
_this.mouse_x = (event.clientX - canvas_pos.left) | 0;
_this.mouse_y = (event.clientY - canvas_pos.top) | 0;
$("#debug").html("" + _this.mouse_x + " / " + _this.mouse_y);
return _this.checkMouseCollisions();
};
})(this));
@ -710,13 +715,18 @@
};
Scene.prototype.checkMouseCollisions = function() {
var id, instance, _ref, _results;
var collision, id, instance, _ref, _results;
_ref = this.instances;
_results = [];
for (id in _ref) {
instance = _ref[id];
if (instance.checkPointCollision(this.mouse_x, this.mouse_y)) {
_results.push(instance.callEvent("mouseover"));
collision = instance.checkPointCollision(this.mouse_x, this.mouse_y);
if (collision && !instance._moused_over) {
instance.callEvent("mouseover");
_results.push(instance._moused_over = true);
} else if (!collision && instance._moused_over) {
instance.callEvent("mouseout");
_results.push(instance._moused_over = false);
} else {
_results.push(void 0);
}
@ -725,7 +735,7 @@
};
Scene.prototype.createInstance = function(object, x, y) {
var id, instance;
var id, instance, real_object;
if (x == null) {
x = 0;
}
@ -733,12 +743,14 @@
y = 0;
}
id = this.last_instance_id += 1;
instance = window.Object.create(this.engine.getObject(object));
real_object = this.engine.getObject(object);
instance = window.Object.create(real_object);
instance.x = x;
instance.y = y;
instance.id = id;
instance.scene = this;
this.instances[id] = instance;
real_object.instances.push(instance);
instance.callEvent("create");
return instance;
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

@ -11,12 +11,16 @@ $(->
# Configure game assets
manager.addImages([
"images/cursor.png"
"images/diamond.png"
"images/diamond_inverted.png"
"images/diamond_shimmer.png"
"images/yellow.png"
"images/yellow_inverted.png"
"images/yellow_shimmer.png"
"images/blue.png"
"images/blue_inverted.png"
"images/blue_shimmer.png"
])
###
@ -32,6 +36,8 @@ $(->
scene = engine.createScene("main")
engine.createSprite("cursor", "images/cursor.png")
engine.createSprite("diamond", "images/diamond.png")
engine.createSprite("diamond_inverted", "images/diamond_inverted.png")
engine.createSprite("diamond_shimmer", "images/diamond_shimmer.png")
@ -40,6 +46,13 @@ $(->
engine.createSprite("yellow_inverted", "images/yellow_inverted.png")
engine.createSprite("yellow_shimmer", "images/yellow_shimmer.png")
engine.createSprite("blue", "images/blue.png")
engine.createSprite("blue_inverted", "images/blue_inverted.png")
engine.createSprite("blue_shimmer", "images/blue_shimmer.png")
cursor = engine.createObject("cursor")
cursor.sprite = engine.getSprite("cursor")
diamond = engine.createObject("diamond")
diamond.sprite = engine.getSprite("diamond")
diamond.draw_sprite = false
@ -51,11 +64,11 @@ $(->
@fade_decay_current = 9999 # Disable by default
@fade_decay_max = 8
@shimmer_step = 0.006 * Math.random()
@shimmer_step = @engine.random.number(0.003, 0.007, 0.0005) * Math.random()
@shimmer_current_step = @shimmer_step
@shimmer_value = 0
@gem_type = if Math.random() > 0.5 then "diamond" else "yellow"
@gem_type = @engine.random.pick("diamond", "yellow", "blue")
diamond.onStep = ->
if @fade_decay_current < Math.pow(2, @fade_decay_max)
@ -98,10 +111,19 @@ $(->
diamond.onMouseOver = ->
@fade_decay_current = 1
for x in [0 .. 728] by 72
for y in [0 .. 550] by 72
cursor = @engine.getObject("cursor").getInstances()[0]
cursor.x = @x - 9
cursor.y = @y - 9
for x in [10 .. 728] by 80
for y in [10 .. 550] by 80
scene.createInstance(diamond, x, y)
cursor.onStep = ->
$("#debug").html("Mouse coords: #{@scene.mouse_x} / #{@scene.mouse_y}<br>Frameskip: #{@engine.frameskip}")
scene.createInstance(cursor, 0, 0)
engine.start()
)
)

@ -12,7 +12,7 @@
"images/loading_screen.png"
], true)
*/
manager.addImages(["images/diamond.png", "images/diamond_inverted.png", "images/diamond_shimmer.png", "images/yellow.png", "images/yellow_inverted.png", "images/yellow_shimmer.png"]);
manager.addImages(["images/cursor.png", "images/diamond.png", "images/diamond_inverted.png", "images/diamond_shimmer.png", "images/yellow.png", "images/yellow_inverted.png", "images/yellow_shimmer.png", "images/blue.png", "images/blue_inverted.png", "images/blue_shimmer.png"]);
/*
manager.addSounds([
@ -22,15 +22,21 @@
*/
manager.prepare();
return manager.preload(null, function() {
var diamond, scene, x, y, _i, _j;
var cursor, diamond, scene, x, y, _i, _j;
engine.addCanvas($("#gamecanvas"));
scene = engine.createScene("main");
engine.createSprite("cursor", "images/cursor.png");
engine.createSprite("diamond", "images/diamond.png");
engine.createSprite("diamond_inverted", "images/diamond_inverted.png");
engine.createSprite("diamond_shimmer", "images/diamond_shimmer.png");
engine.createSprite("yellow", "images/yellow.png");
engine.createSprite("yellow_inverted", "images/yellow_inverted.png");
engine.createSprite("yellow_shimmer", "images/yellow_shimmer.png");
engine.createSprite("blue", "images/blue.png");
engine.createSprite("blue_inverted", "images/blue_inverted.png");
engine.createSprite("blue_shimmer", "images/blue_shimmer.png");
cursor = engine.createObject("cursor");
cursor.sprite = engine.getSprite("cursor");
diamond = engine.createObject("diamond");
diamond.sprite = engine.getSprite("diamond");
diamond.draw_sprite = false;
@ -40,10 +46,10 @@
this.fade_value = 0;
this.fade_decay_current = 9999;
this.fade_decay_max = 8;
this.shimmer_step = 0.006 * Math.random();
this.shimmer_step = this.engine.random.number(0.003, 0.007, 0.0005) * Math.random();
this.shimmer_current_step = this.shimmer_step;
this.shimmer_value = 0;
return this.gem_type = Math.random() > 0.5 ? "diamond" : "yellow";
return this.gem_type = this.engine.random.pick("diamond", "yellow", "blue");
};
diamond.onStep = function() {
var max;
@ -81,13 +87,20 @@
});
};
diamond.onMouseOver = function() {
return this.fade_decay_current = 1;
this.fade_decay_current = 1;
cursor = this.engine.getObject("cursor").getInstances()[0];
cursor.x = this.x - 9;
return cursor.y = this.y - 9;
};
for (x = _i = 0; _i <= 728; x = _i += 72) {
for (y = _j = 0; _j <= 550; y = _j += 72) {
for (x = _i = 10; _i <= 728; x = _i += 80) {
for (y = _j = 10; _j <= 550; y = _j += 80) {
scene.createInstance(diamond, x, y);
}
}
cursor.onStep = function() {
return $("#debug").html("Mouse coords: " + this.scene.mouse_x + " / " + this.scene.mouse_y + "<br>Frameskip: " + this.engine.frameskip);
};
scene.createInstance(cursor, 0, 0);
return engine.start();
});
});

@ -0,0 +1,213 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64"
height="64"
id="svg6013"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="New document 19">
<defs
id="defs6015">
<linearGradient
id="linearGradient6627">
<stop
style="stop-color:#1b2882;stop-opacity:1;"
offset="0"
id="stop6629" />
<stop
style="stop-color:#0851e9;stop-opacity:1;"
offset="1"
id="stop6631" />
</linearGradient>
<linearGradient
id="linearGradient6617">
<stop
id="stop6619"
offset="0"
style="stop-color:#003ab6;stop-opacity:1;" />
<stop
id="stop6621"
offset="1"
style="stop-color:#2488ec;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient6577">
<stop
style="stop-color:#003ab6;stop-opacity:1;"
offset="0"
id="stop6579" />
<stop
style="stop-color:#2488ec;stop-opacity:1;"
offset="1"
id="stop6581" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6577"
id="linearGradient6583"
x1="32"
y1="18.806769"
x2="50.185872"
y2="18.806769"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,968.96191)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6577"
id="linearGradient6591"
x1="13.814127"
y1="40.087818"
x2="32"
y2="40.087818"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,968.96191)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6577"
id="linearGradient6599"
x1="32"
y1="1024.1559"
x2="43.575737"
y2="1024.1559"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,-501.22084)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6577"
id="linearGradient6607"
x1="20.424263"
y1="1009.1486"
x2="32"
y2="1009.1486"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,-501.22084)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6627"
id="linearGradient6615"
x1="32"
y1="1009.1486"
x2="43.575737"
y2="1009.1486"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,-501.22084)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6627"
id="linearGradient6639"
x1="20.424263"
y1="1024.1559"
x2="32"
y2="1024.1559"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,-501.22084)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6627"
id="linearGradient6647"
x1="13.814127"
y1="18.806768"
x2="32"
y2="18.806768"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,968.96191)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6627"
id="linearGradient6655"
x1="32"
y1="40.087818"
x2="50.185871"
y2="40.087818"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,968.96191)" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="8"
inkscape:cx="71.415194"
inkscape:cy="32.777992"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1102"
inkscape:window-x="0"
inkscape:window-y="28"
inkscape:window-maximized="1" />
<metadata
id="metadata6018">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-988.36217)">
<path
style="fill:url(#linearGradient6655);fill-opacity:1;stroke:none"
d="m 32,1005.1652 31.676376,0 L 32,1052.0195 z"
id="path6559"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc" />
<path
style="fill:url(#linearGradient6591);fill-opacity:1;stroke:none"
d="M 32,1052.0195 0.32362381,1005.1652 32,1005.1652"
id="path6023"
inkscape:connector-curvature="0" />
<path
style="fill:url(#linearGradient6583);fill-opacity:1;stroke:none"
d="m 32,1005.1689 31.676376,0 L 32,988.70487 l 0,0 0,0"
id="path6556"
inkscape:connector-curvature="0" />
<path
style="fill:url(#linearGradient6647);fill-opacity:1;stroke:none"
d="M 32,988.70487 0.32362381,1005.1689 32,1005.1689"
id="path6025"
inkscape:connector-curvature="0" />
<path
sodipodi:nodetypes="cccc"
inkscape:connector-curvature="0"
id="path6569"
d="m 32,1005.0967 20.162758,0 L 32,1039.3132 z"
style="fill:url(#linearGradient6599);fill-opacity:1;stroke:none" />
<path
id="path6571"
d="m 32,1039.3132 -20.162761,-34.2165 20.162761,0"
style="fill:url(#linearGradient6639);fill-opacity:1;stroke:none"
inkscape:connector-curvature="0" />
<path
id="path6573"
d="m 32,1005.0992 20.162758,0 L 32,994.66396 l 0,0 0,0"
style="fill:url(#linearGradient6615);fill-opacity:1;stroke:none"
inkscape:connector-curvature="0" />
<path
id="path6575"
d="m 32,994.66396 -20.162761,10.43524 20.162761,0"
style="fill:url(#linearGradient6607);fill-opacity:1;stroke:none"
inkscape:connector-curvature="0" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.7 KiB

@ -0,0 +1,279 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64"
height="64"
id="svg6013"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="blue.svg">
<defs
id="defs6015">
<linearGradient
id="linearGradient6716">
<stop
style="stop-color:#0851e9;stop-opacity:1;"
offset="0"
id="stop6720" />
<stop
style="stop-color:#1b2882;stop-opacity:1;"
offset="1"
id="stop6718" />
</linearGradient>
<linearGradient
id="linearGradient6708">
<stop
style="stop-color:#2488ec;stop-opacity:1;"
offset="0"
id="stop6712" />
<stop
style="stop-color:#003ab6;stop-opacity:1;"
offset="1"
id="stop6710" />
</linearGradient>
<linearGradient
id="linearGradient6700">
<stop
style="stop-color:#0851e9;stop-opacity:1;"
offset="0"
id="stop6704" />
<stop
style="stop-color:#1b2882;stop-opacity:1;"
offset="1"
id="stop6702" />
</linearGradient>
<linearGradient
id="linearGradient6692">
<stop
style="stop-color:#2488ec;stop-opacity:1;"
offset="0"
id="stop6696" />
<stop
style="stop-color:#003ab6;stop-opacity:1;"
offset="1"
id="stop6694" />
</linearGradient>
<linearGradient
id="linearGradient6684">
<stop
style="stop-color:#2488ec;stop-opacity:1;"
offset="0"
id="stop6688" />
<stop
style="stop-color:#003ab6;stop-opacity:1;"
offset="1"
id="stop6686" />
</linearGradient>
<linearGradient
id="linearGradient6676">
<stop
style="stop-color:#0851e9;stop-opacity:1;"
offset="0"
id="stop6680" />
<stop
style="stop-color:#1b2882;stop-opacity:1;"
offset="1"
id="stop6678" />
</linearGradient>
<linearGradient
id="linearGradient6627">
<stop
id="stop6631"
offset="0"
style="stop-color:#0851e9;stop-opacity:1;" />
<stop
id="stop6629"
offset="1"
style="stop-color:#1b2882;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient6617">
<stop
id="stop6619"
offset="0"
style="stop-color:#003ab6;stop-opacity:1;" />
<stop
id="stop6621"
offset="1"
style="stop-color:#2488ec;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient6577">
<stop
id="stop6581"
offset="0"
style="stop-color:#2488ec;stop-opacity:1;" />
<stop
id="stop6579"
offset="1"
style="stop-color:#003ab6;stop-opacity:1;" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6684"
id="linearGradient6583"
x1="32"
y1="18.806769"
x2="50.185872"
y2="18.806769"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,968.96191)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6708"
id="linearGradient6591"
x1="13.814127"
y1="40.087818"
x2="32"
y2="40.087818"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,968.96191)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6577"
id="linearGradient6599"
x1="32"
y1="1024.1559"
x2="43.575737"
y2="1024.1559"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,-501.22084)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6692"
id="linearGradient6607"
x1="20.424263"
y1="1009.1486"
x2="32"
y2="1009.1486"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,-501.22084)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6700"
id="linearGradient6615"
x1="32"
y1="1009.1486"
x2="43.575737"
y2="1009.1486"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,-501.22084)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6716"
id="linearGradient6639"
x1="20.424263"
y1="1024.1559"
x2="32"
y2="1024.1559"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,-501.22084)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6676"
id="linearGradient6647"
x1="13.814127"
y1="18.806768"
x2="32"
y2="18.806768"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,968.96191)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6627"
id="linearGradient6655"
x1="32"
y1="40.087818"
x2="50.185871"
y2="40.087818"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,968.96191)" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="8"
inkscape:cx="71.415194"
inkscape:cy="32.777992"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1102"
inkscape:window-x="0"
inkscape:window-y="28"
inkscape:window-maximized="1" />
<metadata
id="metadata6018">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-988.36217)">
<path
style="fill:url(#linearGradient6655);fill-opacity:1;stroke:none"
d="m 32,1005.1652 31.676376,0 L 32,1052.0195 z"
id="path6559"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc" />
<path
style="fill:url(#linearGradient6591);fill-opacity:1;stroke:none"
d="M 32,1052.0195 0.32362381,1005.1652 32,1005.1652"
id="path6023"
inkscape:connector-curvature="0" />
<path
style="fill:url(#linearGradient6583);fill-opacity:1;stroke:none"
d="m 32,1005.1689 31.676376,0 L 32,988.70487 l 0,0 0,0"
id="path6556"
inkscape:connector-curvature="0" />
<path
style="fill:url(#linearGradient6647);fill-opacity:1;stroke:none"
d="M 32,988.70487 0.32362381,1005.1689 32,1005.1689"
id="path6025"
inkscape:connector-curvature="0" />
<path
sodipodi:nodetypes="cccc"
inkscape:connector-curvature="0"
id="path6569"
d="m 32,1005.0967 20.162758,0 L 32,1039.3132 z"
style="fill:url(#linearGradient6599);fill-opacity:1;stroke:none" />
<path
id="path6571"
d="m 32,1039.3132 -20.162761,-34.2165 20.162761,0"
style="fill:url(#linearGradient6639);fill-opacity:1;stroke:none"
inkscape:connector-curvature="0" />
<path
id="path6573"
d="m 32,1005.0992 20.162758,0 L 32,994.66396 l 0,0 0,0"
style="fill:url(#linearGradient6615);fill-opacity:1;stroke:none"
inkscape:connector-curvature="0" />
<path
id="path6575"
d="m 32,994.66396 -20.162761,10.43524 20.162761,0"
style="fill:url(#linearGradient6607);fill-opacity:1;stroke:none"
inkscape:connector-curvature="0" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.4 KiB

@ -0,0 +1,287 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="93.419998"
height="93.419998"
id="svg6013"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="blue_shimmer.svg">
<defs
id="defs6015">
<linearGradient
id="linearGradient6716">
<stop
style="stop-color:#0851e9;stop-opacity:1;"
offset="0"
id="stop6720" />
<stop
style="stop-color:#1b2882;stop-opacity:1;"
offset="1"
id="stop6718" />
</linearGradient>
<linearGradient
id="linearGradient6708">
<stop
style="stop-color:#2488ec;stop-opacity:1;"
offset="0"
id="stop6712" />
<stop
style="stop-color:#003ab6;stop-opacity:1;"
offset="1"
id="stop6710" />
</linearGradient>
<linearGradient
id="linearGradient6700">
<stop
style="stop-color:#0851e9;stop-opacity:1;"
offset="0"
id="stop6704" />
<stop
style="stop-color:#1b2882;stop-opacity:1;"
offset="1"
id="stop6702" />
</linearGradient>
<linearGradient
id="linearGradient6692">
<stop
style="stop-color:#2488ec;stop-opacity:1;"
offset="0"
id="stop6696" />
<stop
style="stop-color:#003ab6;stop-opacity:1;"
offset="1"
id="stop6694" />
</linearGradient>
<linearGradient
id="linearGradient6684">
<stop
style="stop-color:#2488ec;stop-opacity:1;"
offset="0"
id="stop6688" />
<stop
style="stop-color:#003ab6;stop-opacity:1;"
offset="1"
id="stop6686" />
</linearGradient>
<linearGradient
id="linearGradient6676">
<stop
style="stop-color:#0851e9;stop-opacity:1;"
offset="0"
id="stop6680" />
<stop
style="stop-color:#1b2882;stop-opacity:1;"
offset="1"
id="stop6678" />
</linearGradient>
<linearGradient
id="linearGradient6627">
<stop
id="stop6631"
offset="0"
style="stop-color:#0851e9;stop-opacity:1;" />
<stop
id="stop6629"
offset="1"
style="stop-color:#1b2882;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient6617">
<stop
id="stop6619"
offset="0"
style="stop-color:#003ab6;stop-opacity:1;" />
<stop
id="stop6621"
offset="1"
style="stop-color:#2488ec;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient6577">
<stop
id="stop6581"
offset="0"
style="stop-color:#2488ec;stop-opacity:1;" />
<stop
id="stop6579"
offset="1"
style="stop-color:#003ab6;stop-opacity:1;" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6684"
id="linearGradient6583"
x1="32"
y1="18.806768"
x2="50.185871"
y2="18.806768"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,968.96191)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6708"
id="linearGradient6591"
x1="13.814127"
y1="40.087818"
x2="32"
y2="40.087818"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,968.96191)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6577"
id="linearGradient6599"
x1="32"
y1="1024.1559"
x2="43.575737"
y2="1024.1559"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,-501.22084)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6692"
id="linearGradient6607"
x1="20.424263"
y1="1009.1486"
x2="32"
y2="1009.1486"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,-501.22084)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6700"
id="linearGradient6615"
x1="32"
y1="1009.1486"
x2="43.575737"
y2="1009.1486"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,-501.22084)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6716"
id="linearGradient6639"
x1="20.424263"
y1="1024.1559"
x2="32"
y2="1024.1559"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,-501.22084)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6676"
id="linearGradient6647"
x1="13.814127"
y1="18.806768"
x2="32"
y2="18.806768"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,968.96191)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6627"
id="linearGradient6655"
x1="32"
y1="40.087818"
x2="50.185871"
y2="40.087818"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,968.96191)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6676"
id="linearGradient6770"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.7418123,0,0,1.487494,-23.737991,-19.40026)"
x1="13.814127"
y1="18.806768"
x2="32"
y2="18.806768" />
<filter
inkscape:collect="always"
id="filter6775"
x="-0.14666253"
width="1.2933251"
y="-0.13246012"
height="1.2649202"
color-interpolation-filters="sRGB">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="2.464268"
id="feGaussianBlur6777" />
</filter>
<filter
inkscape:collect="always"
id="filter6779"
x="-0.23388462"
width="1.4677691"
y="-0.2341155"
height="1.468231"
color-interpolation-filters="sRGB">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="6.1760156"
id="feGaussianBlur6781" />
</filter>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="5.6568543"
inkscape:cx="55.131664"
inkscape:cy="31.538345"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1102"
inkscape:window-x="0"
inkscape:window-y="28"
inkscape:window-maximized="1"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0" />
<metadata
id="metadata6018">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(14.509937,-973.42085)">
<path
style="opacity:0.85900005;fill:#0079ff;fill-opacity:1;stroke:none;filter:url(#filter6779)"
d="m 32.200062,988.47461 -31.68749992,16.46879 31.68749992,46.8437 31.6875,-46.8437 -31.6875,-16.46879 z m 0,5.96875 20.15625,10.43754 -20.15625,34.1875 -20.15625,-34.1875 20.15625,-10.43754 z"
id="path6025"
inkscape:connector-curvature="0" />
<path
id="path6575"
style="opacity:0.30700001;fill:#004eff;fill-opacity:1;stroke:none;filter:url(#filter6775)"
d="m 32.200062,994.43265 -20.162761,10.43525 20.162761,0 m 0,0 20.162758,0 -20.162758,-10.43525 0,0 0,0 m 0,44.64925 -20.162761,-34.2165 20.162761,0 m 0,0 20.162758,0 -20.162758,34.2165 z"
inkscape:connector-curvature="0" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.6 KiB

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="82.002586"
height="82.010246"
id="svg6783"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="cursor.svg">
<defs
id="defs6785">
<filter
inkscape:collect="always"
id="filter7432"
color-interpolation-filters="sRGB">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="0.85729526"
id="feGaussianBlur7434" />
</filter>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="7.9195959"
inkscape:cx="26.706834"
inkscape:cy="52.122953"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1102"
inkscape:window-x="0"
inkscape:window-y="28"
inkscape:window-maximized="1"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0" />
<metadata
id="metadata6788">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(9.0012918,-979.35326)">
<path
id="path7310"
d="m -2.4014005,981.41846 c -2.5690494,0.25934 -4.5423826,2.44272 -4.5423826,5.08239 l 0,10.03771 3.9706141,0 0,-8.4177 c 0,-1.52045 1.2113359,-2.73179 2.73178253,-2.73179 l 8.41770187,0 0,-3.97061 -10.0377124,0 c -0.1759776,0 -0.3687335,-0.0173 -0.5400035,0 z m 58.2250855,0 0,3.97061 8.417701,0 c 1.520447,0 2.731783,1.21134 2.731783,2.73179 l 0,8.4177 3.970614,0 0,-10.03771 c 0,-2.81565 -2.266744,-5.08239 -5.082386,-5.08239 l -10.037712,0 z m -62.7674681,62.76744 0,10.0377 c 0,2.8157 2.2667442,5.0824 5.0823861,5.0824 l 10.0377124,0 0,-3.9706 -8.41770187,0 c -1.52044663,0 -2.73178253,-1.2113 -2.73178253,-2.7318 l 0,-8.4177 -3.9706141,0 z m 73.9169521,0 0,8.4177 c 0,1.5205 -1.211336,2.7318 -2.731783,2.7318 l -8.417701,0 0,3.9706 10.037712,0 c 2.815642,0 5.082386,-2.2667 5.082386,-5.0824 l 0,-10.0377 -3.970614,0 z"
style="opacity:0.32165605;fill:#0028ff;fill-opacity:1;stroke:none;filter:url(#filter7432)"
inkscape:connector-curvature="0" />
<path
style="opacity:0.85900005;fill:#0079ff;fill-opacity:1;stroke:none"
d="m -1.84375,-6.3125 c -2.5274048,0.2551392 -4.46875,2.403125 -4.46875,5 l 0,9.875 3.90625,0 0,-8.28125 c 0,-1.4958 1.1917,-2.6875 2.6875,-2.6875 l 8.28125,0 0,-3.90625 -9.875,0 c -0.173125,0 -0.3627563,-0.017009 -0.53125,0 z m 57.28125,0 0,3.90625 8.28125,0 c 1.4958,0 2.6875,1.1917 2.6875,2.6875 l 0,8.28125 3.90625,0 0,-9.875 c 0,-2.77 -2.23,-5 -5,-5 l -9.875,0 z m -61.75,61.75 0,9.875 c 0,2.77 2.23,5 5,5 l 9.875,0 0,-3.90625 -8.28125,0 c -1.4958,0 -2.6875,-1.1917 -2.6875,-2.6875 l 0,-8.28125 -3.90625,0 z m 72.71875,0 0,8.28125 c 0,1.4958 -1.1917,2.6875 -2.6875,2.6875 l -8.28125,0 0,3.90625 9.875,0 c 2.77,0 5,-2.23 5,-5 l 0,-9.875 -3.90625,0 z"
transform="translate(0,988.36218)"
id="rect6791"
inkscape:connector-curvature="0" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

@ -0,0 +1,144 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64"
height="64"
id="svg4574"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="New document 12">
<defs
id="defs4576">
<linearGradient
id="linearGradient5225">
<stop
style="stop-color:#b3bc00;stop-opacity:1;"
offset="0"
id="stop5227" />
<stop
style="stop-color:#fffd00;stop-opacity:1;"
offset="1"
id="stop5229" />
</linearGradient>
<linearGradient
id="linearGradient5217">
<stop
style="stop-color:#f6ff4b;stop-opacity:1;"
offset="0"
id="stop5219" />
<stop
style="stop-color:#cbcd00;stop-opacity:1;"
offset="1"
id="stop5221" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5217"
id="linearGradient5223"
x1="22.04138"
y1="35.629803"
x2="42.422916"
y2="35.629803"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.5605175,0,0,1.808848,-18.298823,961.24711)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5225"
id="linearGradient5231"
x1="32.140044"
y1="1021.0099"
x2="52.619882"
y2="1021.0099"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.5605175,0,0,1.808848,-18.298823,-826.54977)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5225"
id="linearGradient5239"
x1="11.826907"
y1="32.703693"
x2="32.293694"
y2="32.703693"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.5605175,0,0,1.808848,-18.298823,961.24711)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5225"
id="linearGradient5247"
x1="11.832388"
y1="1035.6812"
x2="52.665997"
y2="1035.6812"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.5605175,0,0,1.808848,-18.298823,-826.54977)" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="8"
inkscape:cx="13.589299"
inkscape:cy="29.841469"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1102"
inkscape:window-x="0"
inkscape:window-y="28"
inkscape:window-maximized="1" />
<metadata
id="metadata4579">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-988.36218)">
<path
id="path5171"
style="fill:url(#linearGradient5239);fill-opacity:1;stroke:none"
d="m 0.25480298,1052.2292 31.74371302,-63.65222 -2.2e-4,21.26162 -15.776695,31.6758 -15.91358282,10.6601 z"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccc" />
<path
id="path5168"
style="fill:url(#linearGradient5247);fill-opacity:1;stroke:none"
d="m 63.745196,1052.2298 -0.07183,-0.1194 -15.911308,-10.6607 0.04328,0.1123 -31.610678,0 0.02693,-0.047 -15.91357816,10.6601 z"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccccc" />
<path
id="path5163"
style="fill:url(#linearGradient5231);fill-opacity:1;stroke:none"
d="m 32.000025,1009.8291 0,0 15.76205,31.62 15.91131,10.66 -31.673358,-63.6146 0,0 -0.0015,0.0814 -2.22e-4,21.26152 z"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccccccc" />
<path
id="path5092"
style="fill:url(#linearGradient5223);fill-opacity:1;stroke:none"
d="m 32,1009.8298 0,0 0,0 15.717734,31.5563 0.08761,0.1755 -31.610677,0 0.03327,-0.066 z"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.7 KiB

@ -0,0 +1,166 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64"
height="64"
id="svg4574"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="yellow.svg">
<defs
id="defs4576">
<linearGradient
id="linearGradient5276">
<stop
style="stop-color:#fffd00;stop-opacity:1;"
offset="0"
id="stop5280" />
<stop
style="stop-color:#b3bc00;stop-opacity:1;"
offset="1"
id="stop5278" />
</linearGradient>
<linearGradient
id="linearGradient5268">
<stop
style="stop-color:#fffd00;stop-opacity:1;"
offset="0"
id="stop5272" />
<stop
style="stop-color:#b3bc00;stop-opacity:1;"
offset="1"
id="stop5270" />
</linearGradient>
<linearGradient
id="linearGradient5225">
<stop
id="stop5229"
offset="0"
style="stop-color:#fffd00;stop-opacity:1;" />
<stop
id="stop5227"
offset="1"
style="stop-color:#b3bc00;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient5217">
<stop
id="stop5221"
offset="0"
style="stop-color:#cbcd00;stop-opacity:1;" />
<stop
id="stop5219"
offset="1"
style="stop-color:#f6ff4b;stop-opacity:1;" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5217"
id="linearGradient5223"
x1="22.04138"
y1="35.629803"
x2="42.422916"
y2="35.629803"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.5605175,0,0,1.808848,-18.298823,961.24711)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5276"
id="linearGradient5231"
x1="32.140044"
y1="1021.0099"
x2="52.619882"
y2="1021.0099"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.5605175,0,0,1.808848,-18.298823,-826.54977)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5268"
id="linearGradient5239"
x1="11.826907"
y1="32.703693"
x2="32.293694"
y2="32.703693"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.5605175,0,0,1.808848,-18.298823,961.24711)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5225"
id="linearGradient5247"
x1="11.832388"
y1="1035.6812"
x2="52.665997"
y2="1035.6812"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.5605175,0,0,1.808848,-18.298823,-826.54977)" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="8"
inkscape:cx="13.589299"
inkscape:cy="29.841469"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1102"
inkscape:window-x="0"
inkscape:window-y="28"
inkscape:window-maximized="1" />
<metadata
id="metadata4579">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-988.36218)">
<path
id="path5171"
style="fill:url(#linearGradient5239);fill-opacity:1;stroke:none"
d="m 0.25480298,1052.2292 31.74371302,-63.65222 -2.2e-4,21.26162 -15.776695,31.6758 -15.91358282,10.6601 z"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccc" />
<path
id="path5168"
style="fill:url(#linearGradient5247);fill-opacity:1;stroke:none"
d="m 63.745196,1052.2298 -0.07183,-0.1194 -15.911308,-10.6607 0.04328,0.1123 -31.610678,0 0.02693,-0.047 -15.91357816,10.6601 z"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccccc" />
<path
id="path5163"
style="fill:url(#linearGradient5231);fill-opacity:1;stroke:none"
d="m 32.000025,1009.8291 0,0 15.76205,31.62 15.91131,10.66 -31.673358,-63.6146 0,0 -0.0015,0.0814 -2.22e-4,21.26152 z"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccccccc" />
<path
id="path5092"
style="fill:url(#linearGradient5223);fill-opacity:1;stroke:none"
d="m 32,1009.8298 0,0 0,0 15.717734,31.5563 0.08761,0.1755 -31.610677,0 0.03327,-0.066 z"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.2 KiB

@ -0,0 +1,188 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="93.419998"
height="93.419998"
id="svg4574"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="yellow_shimmer.svg">
<defs
id="defs4576">
<linearGradient
id="linearGradient5276">
<stop
style="stop-color:#fffd00;stop-opacity:1;"
offset="0"
id="stop5280" />
<stop
style="stop-color:#b3bc00;stop-opacity:1;"
offset="1"
id="stop5278" />
</linearGradient>
<linearGradient
id="linearGradient5268">
<stop
style="stop-color:#fffd00;stop-opacity:1;"
offset="0"
id="stop5272" />
<stop
style="stop-color:#b3bc00;stop-opacity:1;"
offset="1"
id="stop5270" />
</linearGradient>
<linearGradient
id="linearGradient5225">
<stop
id="stop5229"
offset="0"
style="stop-color:#fffd00;stop-opacity:1;" />
<stop
id="stop5227"
offset="1"
style="stop-color:#b3bc00;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient5217">
<stop
id="stop5221"
offset="0"
style="stop-color:#cbcd00;stop-opacity:1;" />
<stop
id="stop5219"
offset="1"
style="stop-color:#f6ff4b;stop-opacity:1;" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5276"
id="linearGradient5231"
x1="32.140045"
y1="1021.0099"
x2="52.619881"
y2="1021.0099"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.5605175,0,0,1.808848,-18.298823,-826.54977)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5268"
id="linearGradient5239"
x1="11.826907"
y1="32.703693"
x2="32.293694"
y2="32.703693"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.5605175,0,0,1.808848,-18.298823,961.24711)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5225"
id="linearGradient5247"
x1="11.832388"
y1="1035.6812"
x2="52.665997"
y2="1035.6812"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.5605175,0,0,1.808848,-18.298823,-826.54977)" />
<filter
inkscape:collect="always"
id="filter6000"
x="-0.13946669"
width="1.2789334"
y="-0.13893433"
height="1.2778687"
color-interpolation-filters="sRGB">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="1.8369318"
id="feGaussianBlur6002" />
</filter>
<filter
inkscape:collect="always"
id="filter6009"
x="-0.23445131"
width="1.4689026"
y="-0.23355041"
height="1.4671009"
color-interpolation-filters="sRGB">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="6.2022525"
id="feGaussianBlur6011" />
</filter>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#000000"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:zoom="8"
inkscape:cx="13.589299"
inkscape:cy="54.841469"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1102"
inkscape:window-x="0"
inkscape:window-y="28"
inkscape:window-maximized="1"
fit-margin-bottom="-0.1" />
<metadata
id="metadata4579">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-958.94218)">
<g
id="g6004"
style="opacity:0.85900005;fill:#efff33;fill-opacity:1;filter:url(#filter6009)"
transform="translate(14.71,-14.709971)">
<path
sodipodi:nodetypes="cccccc"
inkscape:connector-curvature="0"
d="m 0.25480298,1052.2292 31.74371302,-63.65222 -2.2e-4,21.26162 -15.776695,31.6758 -15.91358282,10.6601 z"
style="fill:#efff33;fill-opacity:1;stroke:none"
id="path5171" />
<path
sodipodi:nodetypes="cccccccc"
inkscape:connector-curvature="0"
d="m 63.745196,1052.2298 -0.07183,-0.1194 -15.911308,-10.6607 0.04328,0.1123 -31.610678,0 0.02693,-0.047 -15.91357816,10.6601 z"
style="fill:#efff33;fill-opacity:1;stroke:none"
id="path5168" />
<path
sodipodi:nodetypes="ccccccccc"
inkscape:connector-curvature="0"
d="m 32.000025,1009.8291 0,0 15.76205,31.62 15.91131,10.66 -31.673358,-63.6146 0,0 -0.0015,0.0814 -2.22e-4,21.2615 z"
style="fill:#efff33;fill-opacity:1;stroke:none"
id="path5163" />
</g>
<path
id="path5092"
style="opacity:0.30700001;fill:#efff33;fill-opacity:1;stroke:none;filter:url(#filter6000)"
d="m 46.71,995.1198 0,0 0,0 15.717734,31.5563 0.08761,0.1755 -31.610677,0 0.03327,-0.066 z"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.8 KiB

@ -1,7 +1,7 @@
Engine::random =
number: (min, max, precision) =>
base_number = Math.random()
space = Math.abs(ceiling - floor)
space = Math.abs(max - min)
rounding_factor = 1 / (precision ? 0.00000001)
return Math.floor((min + (base_number * space)) * rounding_factor) / rounding_factor

@ -5,12 +5,14 @@
class Object
constructor: (@engine, @name) ->
@sprite = null
@instances = []
@x = 0
@y = 0
callEvent: (name, data = {}) ->
event_map =
mouseover: @onMouseOver
mouseout: @onMouseOut
create: @onCreate
step: @onStep
@ -36,6 +38,9 @@ class Object
y2: @y + image_size?.height
}
getInstances: ->
return @instances
checkPointCollision: (x, y) ->
# TODO: Precision collision matching!
bounding_box = @getBoundingBox()

@ -17,7 +17,6 @@ class Scene
canvas_pos = surface.getBoundingClientRect()
@mouse_x = (event.clientX - canvas_pos.left) | 0
@mouse_y = (event.clientY - canvas_pos.top) | 0
$("#debug").html("#{@mouse_x} / #{@mouse_y}")
@checkMouseCollisions()
)
@checkActive()
@ -51,17 +50,26 @@ class Scene
checkMouseCollisions: =>
for id, instance of @instances
instance.callEvent("mouseover") if instance.checkPointCollision(@mouse_x, @mouse_y)
collision = instance.checkPointCollision(@mouse_x, @mouse_y)
if collision and not instance._moused_over
instance.callEvent("mouseover")
instance._moused_over = true
else if not collision and instance._moused_over
instance.callEvent("mouseout")
instance._moused_over = false
createInstance: (object, x = 0, y = 0) =>
id = @last_instance_id += 1
real_object = @engine.getObject(object)
instance = window.Object.create(@engine.getObject(object))
instance = window.Object.create(real_object)
instance.x = x
instance.y = y
instance.id = id
instance.scene = this
@instances[id] = instance
real_object.instances.push(instance)
instance.callEvent("create")

Loading…
Cancel
Save