===================================================================
--- original.js
+++ change.js
@@ -133,9 +133,10 @@
powerUp.update();
if (superman.intersects(powerUp)) {
LK.setScore(LK.getScore() + 1);
scoreTxt.setText(LK.getScore());
- powerUp.destroy();
+ powerUp.y = -100;
+ powerUp.x = Math.random() * 2048;
}
});
};
// Display score
Gold. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Superman. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Zombie. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Canavar. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows