phaser/examples/input/multi touch.php
Webeled bdc8edea9d Lots of new examples :)
Lots of new examples, the wip/examples folder can be destoryed I think
2013-09-30 17:31:03 +01:00

35 lines
No EOL
630 B
PHP

<?php
$title = "Multi Touch";
require('../head.php');
?>
<script type="text/javascript">
(function () {
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', {create: create, render: render });
function create() {
game.stage.backgroundColor = '#454645';
}
function render() {
game.debug.renderPointer(game.input.mousePointer);
game.debug.renderPointer(game.input.pointer1);
game.debug.renderPointer(game.input.pointer2);
game.debug.renderPointer(game.input.pointer3);
game.debug.renderPointer(game.input.pointer4);
}
})();
</script>
<?php
require('../foot.php');
?>