jasjisdo / gtge

Automatically exported from code.google.com/p/gtge
2 stars 2 forks source link

Bug in ParallaxBackground related to setClip() method #29

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I use GTGE source from trunk, revision 49.

I faced this issue when tried to use ParalaxBackground with viewport on the 
center of the screen. I have my own panels on the left and on the top of the 
screen.

I used setClip() for setting viewport. With ImageBackground all worked fine, 
but when I replaced ImageBackground with ParalaxBackground, then part of my 
background went under the panels, and position of my sprites on the background 
had been broken.

I started to investigate this problem and found out that ParallaxBackground 
class does not override Background's method setClip(). As a result children 
backgrounds know nothing about viewport.

Original issue reported on code.google.com by RenualdM...@gmail.com on 26 Aug 2011 at 11:38