mirror of
https://github.com/wassname/phaser.git
synced 2026-07-27 11:25:30 +08:00
Button fixes and Input coordinate fixes.
This commit is contained in:
@@ -57,13 +57,17 @@ function create() {
|
||||
// Scaled and Rotated button
|
||||
button6 = game.add.button(600, 200, 'button', changeSky, this, 2, 1, 0);
|
||||
button6.name = 'sky6';
|
||||
button6.angle = 24;
|
||||
button6.scale.setTo(0.5, 2);
|
||||
// button6.anchor.setTo(0.5, 0.5);
|
||||
button6.angle = 32;
|
||||
button6.scale.setTo(2, 2);
|
||||
button6.anchor.setTo(0.5, 0.5);
|
||||
// scale + anchor works fine
|
||||
// angle + anchor works fine
|
||||
// scale + angle + anchor falls over
|
||||
|
||||
|
||||
// game.world.setBounds(0, 0, 2000, 2000);
|
||||
// works regardless of world angle, parent angle or camera position
|
||||
// game.world.angle = 5;
|
||||
// game.world.angle = 10;
|
||||
// game.camera.x = 300;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user