1 decade ago by nurdin
I already set my background image but it doesn't appear on my start page.
No error inside my console. Please advice. Thank you.
backgroundImage: new ig.Image( 'media/start-bg.png' ),
init: function() {
// Initialize your game here; bind keys etc.
},
update: function() {
// Update all entities and backgroundMaps
this.parent();
// Add your own, additional update code here
},
draw: function() {
// Draw all entities and backgroundMaps
this.backgroundImage.draw(0,0);
this.parent();
}
No error inside my console. Please advice. Thank you.
