Skip to content

Commit 160a321

Browse files
committed
Updated invaders demo.
1 parent 685054e commit 160a321

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Version 1.1.2
4747
* New: Added Group.cursor. This points to the first item added to a Group. You can move the cursor with Group.next() and Group.previous().
4848
* New: Added Tween.isTweening(object) to check if an object is currently being tweened or not (thanks mikehamil10)
4949
* New: Added getMagnitude, setMagnitude, normalize and isZero methods to Point (thanks beeglebug)
50-
* New: Group.callAll now supports nested functions and a context, making it really powerful!
50+
* New/Change: Group.callAll now supports nested functions and a context, making it really powerful!
5151
* Updated: Fixed a few final bugs in the Sprite body and bounds calculations, in turn this resolved the Tilemap collision issues in the 1.1 release.
5252
* Updated: Finished documentation for the Phaser.Button class.
5353
* Updated: Fixed the Invaders game sample and enhanced it.

examples/games/invaders.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function enemyHitsPlayer (player,bullet) {
183183
if(lives.countLiving()<1){
184184

185185
player.kill();
186-
enemyBullets.callAll('kill',this);
186+
enemyBullets.callAll('kill');
187187
stateText.content=" GAME OVER \n Click to restart";
188188
stateText.visible=true;
189189

0 commit comments

Comments
 (0)