Changeset 58:cee0b845dedc


Ignore:
Timestamp:
Sep 1, 2013, 4:57:16 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
rebase_source:
75560ff16dca26042506b3f268aa138b4a2e800d
Message:

Centre the wolf on its body

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/screens/area.py

    r56 r58  
    5757            wolf = resources.get_image('creatures', 'werewolf_1.png',
    5858                                       transforms=transforms)
    59             surface.blit(wolf, pos)
     59            surface.blit(wolf, (pos[0] - wolf.get_width() / 2,
     60                                pos[1] - wolf.get_height() / 2))
    6061        else:
    6162            pymunk.pygame_util.draw(surface, self.shape)
Note: See TracChangeset for help on using the changeset viewer.