This commit is contained in:
Webeled
2013-10-07 20:56:44 +01:00
parent 664c512a99
commit 77b553ac2a
23 changed files with 47 additions and 96 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
}
function update() {
// Animating alpha property of each item using forEach() method.
game.world.group.forEach(function(item) {
game.world.forEach(function(item) {
// Update alpha first.
item.alpha -= item.alphaIncSpeed;
// Check for switch between increasing and descreasing.