Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by congwang0517

My picture is 780*560,i don't know how to set the tilesize and dimensions. can anybody help me?

1 decade ago by dominic

Weltmeister is meant for tilemaps, not background images.

If you just want to render a background image, load an ig.Image in your Game class and draw it in it's draw() method:

MyGame = ig.Game.extend({
	
	clearColor: null, // no clear color
	
	background: new ig.Image( 'media/background.png' ),
	
	// ...
	
	draw: function() {
		this.background.draw( 0, 0 );
		
		// Draw all entities and backgroundMaps
		this.parent();
	}
});
Page 1 of 1
« first « previous next › last »