mirror of
https://github.com/wassname/phaser.git
synced 2026-08-18 12:20:33 +08:00
Revamping the examples area.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
|
||||
var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { create: create, render: render });
|
||||
|
||||
var floor;
|
||||
|
||||
function create() {
|
||||
|
||||
floor = new Phaser.Rectangle(0, 550, 800, 50);
|
||||
|
||||
}
|
||||
|
||||
function render () {
|
||||
|
||||
game.debug.renderRectangle(floor,'#0fffff');
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user