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

I have a background image 500*300. I code that "this.background.draw(0, 0);"
Then, I ctx.fillRect(), I can't see the rectangle. I know the reason is background redraw the canvas.
How can I resolve the problem? Thanks.

1 decade ago by Arantor

When do you issue the background redraw and when do you issue the fillRect? Do you do both every frame, and do the fillRect after the background draw?
Page 1 of 1
« first « previous next › last »