diff --git a/examples/camera/follow styles.php b/examples/camera/follow styles.php index dac30a44..ee0f1dc9 100644 --- a/examples/camera/follow styles.php +++ b/examples/camera/follow styles.php @@ -71,9 +71,6 @@ game.camera.follow(ufo); - - - // follow style switch buttons btn0 = game.add.button(6, 40, 'button', lockonFollow,this, 0, 0, 0); btn1 = game.add.button(6, 120, 'button', platformerFollow,this, 1, 1, 1); diff --git a/examples/groups/add to group 1.php b/examples/groups/add to group 1.php new file mode 100644 index 00000000..03e6f9ca --- /dev/null +++ b/examples/groups/add to group 1.php @@ -0,0 +1,63 @@ + + + + + + diff --git a/examples/groups/add to group 2.php b/examples/groups/add to group 2.php new file mode 100644 index 00000000..5ece783f --- /dev/null +++ b/examples/groups/add to group 2.php @@ -0,0 +1,56 @@ + + + + + + diff --git a/examples/groups/bring to top 2.php b/examples/groups/bring to top 2.php new file mode 100644 index 00000000..56872efc --- /dev/null +++ b/examples/groups/bring to top 2.php @@ -0,0 +1,101 @@ + + + + + + diff --git a/examples/groups/bring to top.php b/examples/groups/bring to top.php new file mode 100644 index 00000000..4849b19b --- /dev/null +++ b/examples/groups/bring to top.php @@ -0,0 +1,46 @@ + + + + + + diff --git a/examples/groups/call all.php b/examples/groups/call all.php new file mode 100644 index 00000000..c7f22265 --- /dev/null +++ b/examples/groups/call all.php @@ -0,0 +1,52 @@ + + + + + + diff --git a/examples/groups/create group.php b/examples/groups/create group.php new file mode 100644 index 00000000..0474e4bf --- /dev/null +++ b/examples/groups/create group.php @@ -0,0 +1,57 @@ + + + + + + diff --git a/examples/groups/display order.php b/examples/groups/display order.php new file mode 100644 index 00000000..35b97990 --- /dev/null +++ b/examples/groups/display order.php @@ -0,0 +1,64 @@ + + + + + + diff --git a/examples/groups/for each.php b/examples/groups/for each.php new file mode 100644 index 00000000..32ca7739 --- /dev/null +++ b/examples/groups/for each.php @@ -0,0 +1,50 @@ + + + + + + diff --git a/examples/groups/get first.php b/examples/groups/get first.php new file mode 100644 index 00000000..c7cdd446 --- /dev/null +++ b/examples/groups/get first.php @@ -0,0 +1,72 @@ + + + + + + diff --git a/examples/groups/group as layer.php b/examples/groups/group as layer.php new file mode 100644 index 00000000..1e2d25aa --- /dev/null +++ b/examples/groups/group as layer.php @@ -0,0 +1,91 @@ + + + + + + diff --git a/examples/groups/group transform - rotate.php b/examples/groups/group transform - rotate.php new file mode 100644 index 00000000..e569cc68 --- /dev/null +++ b/examples/groups/group transform - rotate.php @@ -0,0 +1,63 @@ + + + + + + diff --git a/examples/groups/group transform - tween.php b/examples/groups/group transform - tween.php new file mode 100644 index 00000000..b11d2560 --- /dev/null +++ b/examples/groups/group transform - tween.php @@ -0,0 +1,72 @@ + + + + + + diff --git a/examples/groups/group transform.php b/examples/groups/group transform.php new file mode 100644 index 00000000..06a8854a --- /dev/null +++ b/examples/groups/group transform.php @@ -0,0 +1,78 @@ + + + + + + diff --git a/examples/groups/recyling.php b/examples/groups/recyling.php new file mode 100644 index 00000000..bee0343a --- /dev/null +++ b/examples/groups/recyling.php @@ -0,0 +1,70 @@ + + + + + + diff --git a/examples/groups/remove.php b/examples/groups/remove.php new file mode 100644 index 00000000..1684870c --- /dev/null +++ b/examples/groups/remove.php @@ -0,0 +1,73 @@ + + + + + + diff --git a/examples/groups/replace.php b/examples/groups/replace.php new file mode 100644 index 00000000..6bbf5ba8 --- /dev/null +++ b/examples/groups/replace.php @@ -0,0 +1,79 @@ + + + + + + diff --git a/examples/groups/set All.php b/examples/groups/set All.php new file mode 100644 index 00000000..356bbaf7 --- /dev/null +++ b/examples/groups/set All.php @@ -0,0 +1,46 @@ + + + + + + diff --git a/examples/input/keyboard.php b/examples/input/keyboard.php new file mode 100644 index 00000000..c5a432da --- /dev/null +++ b/examples/input/keyboard.php @@ -0,0 +1,95 @@ + + + + + + diff --git a/src/core/Game.js b/src/core/Game.js index c24dbb40..bf73da33 100644 --- a/src/core/Game.js +++ b/src/core/Game.js @@ -31,7 +31,7 @@ Phaser.Game = function (width, height, renderer, parent, state, transparent, ant renderer = renderer || Phaser.AUTO; parent = parent || ''; state = state || null; - transparent = transparent || false; + if (typeof transparent == 'undefined') { transparent = false; } antialias = typeof antialias === 'undefined' ? true : antialias; /** diff --git a/src/input/InputHandler.js b/src/input/InputHandler.js index 4bcec1bf..6f14400a 100644 --- a/src/input/InputHandler.js +++ b/src/input/InputHandler.js @@ -75,7 +75,7 @@ Phaser.InputHandler.prototype = { start: function (priority, useHandCursor) { priority = priority || 0; - useHandCursor = useHandCursor || false; + if (typeof useHandCursor == 'undefined') { useHandCursor = false; } // Turning on if (this.enabled == false)