New backgrounds for lvl1
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 17 KiB |
BIN
gamedata/maps/Level 1/background4.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
@ -58,7 +58,7 @@ class TilesetRenderer(BaseObject):
|
||||
height = bg.get_height()
|
||||
nbs = self.game.globals["cameraw"]/width
|
||||
lastoffset = self.rect[1]+(self.bgoffset-self.game.globals["cameray"])*ratio
|
||||
for i in range(round(nbs+0.5)):
|
||||
for i in range(round(max(nbs+0.5,2))):
|
||||
self.game.window.blit(bg,[(-self.game.globals["camerax"]*ratio)%width+(i-1)*width,lastoffset])
|
||||
# Draw filler
|
||||
if self.level["filler"]:
|
||||
|