Changeset 84:ef8e799477e0


Ignore:
Timestamp:
Sep 1, 2013, 8:54:53 PM (7 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
rebase_source:
831c5c6a0eea98f7641ef6fc6dc3a6f38d0c0cb7
Message:

Point pymunk at a screen surface, not the display to make things saner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/screens/area.py

    r83 r84  
    4141        self.walls = []
    4242        body = pymunk.Body()
    43         body.position = (0, -300)
     43        body.position = (0, 0)
    4444        walls = self._level.get_walls()
    4545        for wall in walls:
     
    7070        #surface.fill(pygame.color.Color(0, 0, 0))
    7171        background = self._level.get_background()
    72         surface.blit(background, (0, 0))
     72        mysurface = background.copy()
    7373        #pymunk.pygame_util.draw(surface, *self.walls)
    74         self.protagonist.render(surface)
    75         self.toy_switch.render(surface)
     74        self.protagonist.render(mysurface)
     75        self.toy_switch.render(mysurface)
     76        surface.blit(mysurface, (0, 0))
    7677
    7778    def tick_protagonist(self):
Note: See TracChangeset for help on using the changeset viewer.