Assets update
BIN
examples/assets/games/breakout/ball.png
Normal file
After Width: | Height: | Size: 190 B |
BIN
examples/assets/games/breakout/brick0.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
examples/assets/games/breakout/brick1.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
examples/assets/games/breakout/brick2.png
Normal file
After Width: | Height: | Size: 171 B |
BIN
examples/assets/games/breakout/brick3.png
Normal file
After Width: | Height: | Size: 162 B |
BIN
examples/assets/games/breakout/brick4.png
Normal file
After Width: | Height: | Size: 162 B |
BIN
examples/assets/games/breakout/brick5.png
Normal file
After Width: | Height: | Size: 167 B |
BIN
examples/assets/games/breakout/paddle.png
Normal file
After Width: | Height: | Size: 446 B |
|
@ -755,8 +755,8 @@ Phaser.InputHandler.prototype = {
|
|||
*/
|
||||
setDragLock: function (allowHorizontal, allowVertical) {
|
||||
|
||||
allowHorizontal = allowHorizontal || true;
|
||||
allowVertical = allowVertical || true;
|
||||
if (typeof allowHorizontal == 'undefined') { allowHorizontal = true; }
|
||||
if (typeof allowVertical == 'undefined') { allowVertical = true; }
|
||||
|
||||
this.allowHorizontalDrag = allowHorizontal;
|
||||
this.allowVerticalDrag = allowVertical;
|
||||
|
|
|
@ -27,7 +27,7 @@ Phaser.Sound = function (game, key, volume, loop) {
|
|||
* @public
|
||||
* @type {string}
|
||||
*/
|
||||
this.name = '';
|
||||
this.name = key;
|
||||
|
||||
/**
|
||||
* Asset key for the sound.
|
||||
|
@ -266,9 +266,7 @@ Phaser.Sound.prototype = {
|
|||
if (typeof loop == 'undefined') { loop = false; }
|
||||
if (typeof forceRestart == 'undefined') { forceRestart = false; }
|
||||
|
||||
|
||||
|
||||
console.log('play ' + marker + ' position ' + position + ' volume ' + volume + ' loop ' + loop);
|
||||
console.log(this.name + ' play ' + marker + ' position ' + position + ' volume ' + volume + ' loop ' + loop);
|
||||
|
||||
if (this.isPlaying == true && forceRestart == false && this.override == false)
|
||||
{
|
||||
|
|