Restrict the water's size to the camera's
This commit is contained in:
parent
50dde6c388
commit
f278ea73b0
@ -8,7 +8,7 @@ class Water(BaseObject):
|
|||||||
y = self.tileset.spawns[0].center[1]+game.globals["camerah"]/2
|
y = self.tileset.spawns[0].center[1]+game.globals["camerah"]/2
|
||||||
self.destinationy = y
|
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
|
self.speed = 10
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user