mirror of
https://github.com/wassname/phaser.git
synced 2026-08-10 12:30:48 +08:00
Updated a lot of examples to Phaser 2.0 :)
This commit is contained in:
@@ -35,12 +35,12 @@ function create() {
|
||||
eye = robot.create(335, 173,'eye');
|
||||
|
||||
// Tween the robot's size, so all the components also scaled.
|
||||
game.add.tween(robot._container.scale).to( {x: 1.2, y: 1.2}, 1000, Phaser.Easing.Back.InOut, true, 0, false).yoyo(true);
|
||||
game.add.tween(robot.scale).to( {x: 1.2, y: 1.2}, 1000, Phaser.Easing.Back.InOut, true, 0, false).yoyo(true);
|
||||
|
||||
}
|
||||
|
||||
function render() {
|
||||
|
||||
game.debug.renderText('The robot is a group and every component is a sprite.', 240, 580);
|
||||
game.debug.renderText('The robot is a group and every component is a sprite.', 32,32);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user