phaser/examples/geometry/rectangle.js

17 lines
271 B
JavaScript
Raw Normal View History

2013-10-22 02:58:20 +00:00
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');
}