diff --git a/code/CandyFucker.js b/code/CandyFucker.js index 7a95932..50805b0 100644 --- a/code/CandyFucker.js +++ b/code/CandyFucker.js @@ -18,11 +18,11 @@ var Particle = function(game, position, image) { ); this.Speed = Vec2D.Scale(Vec2D.Normalize({ X: Math.floor(Math.random() * 33)-16, - Y: Math.floor(Math.random() * 33)-16}),32); + Y: Math.floor(Math.random() * 33)-16}),48); }; Particle.prototype = { Update: function() { - this.Speed = Vec2D.Scale(this.Speed, 1.2); + this.Speed = Vec2D.Scale(this.Speed, 1.5); this.GameEntity.AddPosition(this.Speed); if(this.GameEntity.InsideScreen()==false){ this.GameEntity.Delete(); @@ -64,7 +64,7 @@ CandyEntity.prototype = { frag = new Particle( this.Game, this.GameEntity.PositionDest, - Images.GetImage(this.Color) + Images.GetImage("Frags" + this.Color) ); this.Game.GameScreen.AddEntity(frag); } @@ -126,6 +126,11 @@ CandyFucker.prototype = { {Name: "Cyan", Url: "gfx/Cyan.png"}, {Name: "Green", Url: "gfx/Green.png"}, {Name: "Yellow", Url: "gfx/Yellow.png"}, + {Name: "FragsRed", Url: "gfx/FragsRed.png"}, + {Name: "FragsBlue", Url: "gfx/FragsBlue.png"}, + {Name: "FragsCyan", Url: "gfx/FragsCyan.png"}, + {Name: "FragsGreen", Url: "gfx/FragsGreen.png"}, + {Name: "FragsYellow", Url: "gfx/FragsYellow.png"}, ], function(){ self.LoadSounds(); diff --git a/gfx/Frags.xcf b/gfx/Frags.xcf new file mode 100644 index 0000000..aa02fb6 Binary files /dev/null and b/gfx/Frags.xcf differ diff --git a/gfx/FragsBlue.png b/gfx/FragsBlue.png new file mode 100644 index 0000000..faa99b4 Binary files /dev/null and b/gfx/FragsBlue.png differ diff --git a/gfx/FragsCyan.png b/gfx/FragsCyan.png new file mode 100644 index 0000000..481728a Binary files /dev/null and b/gfx/FragsCyan.png differ diff --git a/gfx/FragsGreen.png b/gfx/FragsGreen.png new file mode 100644 index 0000000..ccc8740 Binary files /dev/null and b/gfx/FragsGreen.png differ diff --git a/gfx/FragsRed.png b/gfx/FragsRed.png new file mode 100644 index 0000000..3301a5c Binary files /dev/null and b/gfx/FragsRed.png differ diff --git a/gfx/FragsYellow.png b/gfx/FragsYellow.png new file mode 100644 index 0000000..7fee9fe Binary files /dev/null and b/gfx/FragsYellow.png differ