mirror of
https://github.com/wassname/phaser.git
synced 2026-09-12 12:40:47 +08:00
Updated some docs, added the new renderHidden parameter for Canvas and updated the RenderTexture examples as a result.
This commit is contained in:
@@ -27,9 +27,11 @@ function create() {
|
||||
|
||||
function update() {
|
||||
|
||||
// This time we'll draw the ball sprite twice, in a mirror effect
|
||||
|
||||
texture.renderXY(ball, game.input.activePointer.x, game.input.activePointer.y, false);
|
||||
texture.renderXY(ball, game.input.activePointer.x, 600 - game.input.activePointer.y, false);
|
||||
if (!game.input.activePointer.position.isZero())
|
||||
{
|
||||
// This time we'll draw the ball sprite twice, in a mirror effect
|
||||
texture.renderXY(ball, game.input.activePointer.x, game.input.activePointer.y, false, true);
|
||||
texture.renderXY(ball, game.input.activePointer.x, 600 - game.input.activePointer.y, false, true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user