alpine: Add seashore sprite

This commit is contained in:
dP
2021-12-27 17:20:22 +03:00
parent 8a8ffc5519
commit b08ab7290c
2 changed files with 4 additions and 2 deletions

View File

@@ -119,10 +119,10 @@ def replace_additional_rough_sprites(sprite_id, file, x, y, **kw):
sprite(240+x, y, 64, 31, xofs=-31, yofs=0, **kw)
def replace_sprites_template(sprite_id, amount, file, func):
def replace_sprites_template(sprite_id, amount, file, func, **kw):
png = grf.ImageFile(file)
gen.add_sprite(grf.ReplaceSprites([(sprite_id, amount)]))
func(lambda *args, **kw: gen.add_sprite(grf.FileSprite(png, *args, **kw)))
func(lambda *args, **kw: gen.add_sprite(grf.FileSprite(png, *args, **kw)), **kw)
# Normal land
@@ -155,6 +155,8 @@ replace_ground_sprites(4550, 'gfx/snow_grid.gimp.png', 1, 1)
replace_sprites_template(2365, 8, 'gfx/infrastructure/tunnel_rail_grid_temperate.gimp.png', tmpl_infrastructure_railtunnels)
replace_sprites_template(2389, 8, 'gfx/infrastructure_road_tunnel_grid.png', tmpl_temperate_road_tunnels_grid)
replace_sprites_template(4061, 1, 'gfx/seashore_temperate.gimp.png', tmpl_level_ground, x=1, y=1)
def tmpl_hq(func, **kw):
func( 82, 8, 64, 31, xofs=-31, yofs= 0, **kw)
func(162, 8, 64, 31, xofs=-31, yofs= 0, **kw)

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB