mirror of
https://github.com/wassname/phaser.git
synced 2026-07-16 01:20:13 +08:00
Loads of new examples, some more bug fixes, all of them work beautifully
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
$title = "Rectangle";
|
||||
require('../head.php');
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
|
||||
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', {create: create,render:render});
|
||||
|
||||
var floor;
|
||||
|
||||
function create() {
|
||||
|
||||
// A simple floor
|
||||
floor = new Phaser.Rectangle(0, 550,800,50);
|
||||
}
|
||||
|
||||
function render () {
|
||||
game.debug.renderRectangle(floor,'#0fffff');
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<?php
|
||||
require('../foot.php');
|
||||
?>
|
||||
Reference in New Issue
Block a user