Code formatting
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user