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 Manuel

Hi, i'm making a game and is almost finished, but still I don't know how to put a background image.

It would be very helpful if anyone had any idea how to do this

Thanks

1 decade ago by Graphikos

1) main.js, define your image:
backdrop: new ig.Image( 'media/backdrop.png' )

2) main.js, init(), set the clearColor:
this.clearColor = null;

3) main.js, draw(), draw the image:
this.backdrop.draw(0,0);

1 decade ago by Manuel

Great, it works Thank you
Page 1 of 1
« first « previous next › last »