Changeset 322:f8e9a8851d7d


Ignore:
Timestamp:
Sep 5, 2009, 7:31:59 PM (11 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@323
Message:

Tweak size of game over overlay.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/imagecache.py

    r186 r322  
    7676    darkened = image.copy()
    7777    w, h = darkened.get_size()
    78     over_w, over_h = int(w*0.5), int(h*0.5)
    79     over_x, over_y = int(w*0.25), int(h*0.25)
     78    fraction = 0.65
     79    offset = (1.0 - fraction) / 2.0
     80    over_w, over_h = int(w*fraction), int(h*fraction)
     81    over_x, over_y = int(w*offset), int(h*offset)
    8082    overlay = pygame.Surface((over_w, over_h))
    8183    overlay.fill(DARKEN_COLOUR)
Note: See TracChangeset for help on using the changeset viewer.