Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

backgroung full screen

'use strict'
const Game = new Phaser.Game(1000, 500, Phaser.AUTO, 'game-canvas', { preload, create, update })

function preload() {
Game.load.image("background","img/opa.jpg")

}

function create() {
   Game.add.sprite(180,35,"background")
    
}

function update() {

}
 
PREVIOUS NEXT
Tagged: #backgroung #full #screen
ADD COMMENT
Topic
Name
9+7 =