mirror of
https://github.com/wassname/phaser.git
synced 2026-09-09 11:28:47 +08:00
Added FullScreen API support and fixed numerous StageScaleMode issues.
This commit is contained in:
@@ -34,6 +34,10 @@
|
||||
ship = myGame.createSprite(myGame.stage.centerX, myGame.stage.centerY, 'nashwan');
|
||||
// We do this because the ship was drawn facing up, but 0 degrees is pointing to the right
|
||||
ship.rotationOffset = 90;
|
||||
myGame.input.onDown.add(test, this);
|
||||
}
|
||||
function test(event) {
|
||||
myGame.stage.scale.startFullScreen();
|
||||
}
|
||||
function update() {
|
||||
ship.angularVelocity = 0;
|
||||
|
||||
@@ -51,6 +51,14 @@
|
||||
// We do this because the ship was drawn facing up, but 0 degrees is pointing to the right
|
||||
ship.rotationOffset = 90;
|
||||
|
||||
myGame.input.onDown.add(test, this);
|
||||
|
||||
}
|
||||
|
||||
function test(event) {
|
||||
|
||||
myGame.stage.scale.startFullScreen();
|
||||
|
||||
}
|
||||
|
||||
function update() {
|
||||
|
||||
Reference in New Issue
Block a user