Skip to content
Snippets Groups Projects
Commit 31aadd21 authored by Philipp Stahl's avatar Philipp Stahl
Browse files

Add canvas.js to test phaser

parent d76138c8
No related branches found
No related tags found
No related merge requests found
import * from phaser;
var scene = {
preload: preload,
create: create
};
var config = {
type: Phaser.AUTO,
width: 800,
height: 600,
scene: scene
};
var game = new Phaser.Game(config);
function preload ()
{
this.load.image('404', 'http://labs.phaser.io/assets/sprites/phaser3-logo.png')
}
function create ()
{
this.add.image(300, 400, '404')
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment