mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +00:00
16 lines
271 B
JavaScript
16 lines
271 B
JavaScript
|
|
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');
|
|
|
|
}
|