mirror of
https://github.com/wassname/phaser.git
synced 2026-08-06 13:31:05 +08:00
Loads of new examples, some more bug fixes, all of them work beautifully
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
$title = "Circle";
|
||||
require('../head.php');
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
|
||||
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', {create: create,render:render});
|
||||
|
||||
var circle;
|
||||
var floor;
|
||||
|
||||
function create() {
|
||||
|
||||
circle = new Phaser.Circle(game.world.centerX, 100,64);
|
||||
}
|
||||
|
||||
function render () {
|
||||
game.debug.renderCircle(circle,'#cfffff');
|
||||
game.debug.renderText('Diameter : '+circle.diameter,50,200);
|
||||
game.debug.renderText('Circumference : '+circle.circumference(),50,230);
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<?php
|
||||
require('../foot.php');
|
||||
?>
|
||||
Reference in New Issue
Block a user