Changeset 442


Ignore:
Timestamp:
12/10/09 06:26:34 (10 years ago)
Author:
barra_parpg
Message:

Patch by mvbarracuda:

  • Modified image slicer to split objects into exactly tile-wide (72px) chunks; this way y shifts shifts don't need to differ for object chunks that belong together as one chunk will exactly occupy either the space of one tile (000, 090, 180, 270° rotated versions) or two tiles (045, 135, 225, 315° rotated versions) in width
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/utilities/image_slicer.py

    r417 r442  
    6868    return True  
    6969         
    70 def sliceImage(filename, slice_width=70, tail_width=105): 
     70def sliceImage(filename, slice_width=72, tail_width=108): 
    7171    """ Opens an image, and produces slice_width pixel wide slices of it 
    7272        @type filename: String 
     
    150150    log.addHandler(ch) 
    151151     
    152     if sliceImage(file, 70, 35): 
     152    if sliceImage(file, 72, 36): 
    153153        log.info("Done") 
    154154    else: 
Note: See TracChangeset for help on using the changeset viewer.