mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
Starting timer tests.
This commit is contained in:
parent
be4d42a1c2
commit
e266ecfe00
1 changed files with 30 additions and 0 deletions
30
examples/wip/timer1.js
Normal file
30
examples/wip/timer1.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
|
||||
var game = new Phaser.Game(800, 600, Phaser.AUTO, 'phaser-example', { preload: preload, create: create, update: update, render: render });
|
||||
|
||||
function preload() {
|
||||
|
||||
game.load.image('pic', 'assets/pics/backscroll.png');
|
||||
|
||||
}
|
||||
|
||||
var text;
|
||||
var b;
|
||||
var grd;
|
||||
|
||||
function create() {
|
||||
|
||||
game.stage.setBackgroundColor(0x2d2d2d);
|
||||
|
||||
text = game.add.text(0, 0, "time");
|
||||
|
||||
}
|
||||
|
||||
function update() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
function render() {
|
||||
|
||||
|
||||
}
|
Loading…
Reference in a new issue