comparison regenerate-pngs.py @ 121:7b2660cc7861

splash png
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Wed, 02 Sep 2009 20:54:45 +0000
parents f23ea2615b78
children 73e13216d7bb
comparison
equal deleted inserted replaced
120:5621f5074c8d 121:7b2660cc7861
36 svg_to_png(svg_name, png_name, width, height) 36 svg_to_png(svg_name, png_name, width, height)
37 37
38 if __name__ == "__main__": 38 if __name__ == "__main__":
39 tile_path = "data/tiles" 39 tile_path = "data/tiles"
40 sprite_path = "data/sprites" 40 sprite_path = "data/sprites"
41 image_path = "data/images"
41 sprites = [ 42 sprites = [
42 ("chkn", 20, 20), 43 ("chkn", 20, 20),
43 ("egg", 20, 20), 44 ("egg", 20, 20),
44 ("fox", 20, 20), 45 ("fox", 20, 20),
45 ("rifle", 20, 20), 46 ("rifle", 20, 20),
52 53
53 process_svg_folder("data/tiles", 20, 20) 54 process_svg_folder("data/tiles", 20, 20)
54 process_svg_folder("data/icons", 40, 40) 55 process_svg_folder("data/icons", 40, 40)
55 for name, width, height in sprites: 56 for name, width, height in sprites:
56 process_sprite(name, width, height, sprite_path) 57 process_sprite(name, width, height, sprite_path)
58 process_sprite("splash", 800, 600, image_path)