Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var config = {
- type: Phaser.AUTO,
- backgroundColor: '#2dab2d',
- scale: {
- parent: 'phaser-example',
- mode: Phaser.Scale.FIT,
- autoCenter: Phaser.Scale.CENTER_BOTH,
- width: 800,
- height: 600
- },
- scene: {
- preload: preload,
- create: create
- }
- };
- var game = new Phaser.Game(config);
- function preload ()
- {
- this.load.image('pic', 'assets/pics/zero-two.png');
- }
- function create ()
- {
- this.add.image(0, 0, 'pic').setOrigin(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement