Changeset 133:aca8b7456c72


Ignore:
Timestamp:
Apr 4, 2011, 10:04:30 PM (9 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
rebase_source:
799d56a9dc8a0b5af7a67fe697799173dadce171
Message:

Pass engine to all Scene draw() methods

Location:
skaapsteker
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/engine.py

    r127 r133  
    6969            widget.dispatch(ev)
    7070
    71     def draw(self, surface):
     71    def draw(self, surface, engine):
    7272        """Update the scene surface."""
    7373        for widget in self.widgets:
  • skaapsteker/menuscene.py

    r127 r133  
    11import pygame
    2 from pygame.locals import (K_ESCAPE, K_DOWN, K_UP, K_q, KEYDOWN, QUIT)
     2from pygame.locals import K_ESCAPE, K_q, KEYDOWN, QUIT
    33
    44from .engine import ChangeScene, Scene
     
    3737    def draw(self, surface, engine):
    3838        surface.fill(pygame.Color('black'))
    39         super(MenuScene, self).draw(surface)
     39        super(MenuScene, self).draw(surface, engine)
    4040
    4141    def dispatch(self, ev):
Note: See TracChangeset for help on using the changeset viewer.