Restrict the water's size to the camera's

This commit is contained in:
theo@manjaro 2021-11-24 07:44:18 +01:00
parent 50dde6c388
commit f278ea73b0
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ class Water(BaseObject):
y = self.tileset.spawns[0].center[1]+game.globals["camerah"]/2
self.destinationy = y
super().__init__(0,y,game,game.DISPLAY_WIDTH,game.DISPLAY_HEIGHT)
super().__init__(0,y,game,game.globals["cameraw"],game.globals["camerah"])
self.speed = 10