Code formatting

This commit is contained in:
2015-12-05 12:28:39 +01:00
parent dda5c8e77c
commit 497ae3a1a7
2 changed files with 70 additions and 60 deletions

View File

@@ -1,6 +1,12 @@
window.Images = new ImageLoader();
/////////////////////////////////////////
//
// Particle
//
var Particle = function(game, position, image) {
this.Game = game;
this.GameEntity = new GameEntity(
@@ -299,8 +305,6 @@ CandyFucker.prototype = {
var entCandy = this.RemoveCandy(x, y);
if(entCandy){
entCandy.Delete();
// FIXME: explosion FX
return true;
}
return false;

View File

@@ -1,3 +1,9 @@
/////////////////////////////////////////
//
// Vec2D
//
var Vec2D = {
Scale: function(vecIn, scale) {
return {
@@ -11,12 +17,12 @@ var Vec2D = {
(vecIn.Y * vecIn.Y));
return {
X: vecIn.X / len,
Y: vecIn.Y / len};
Y: vecIn.Y / len
};
}
};
/////////////////////////////////////////
//
// GameScreen