Ignore:
Timestamp:
Sep 5, 2009, 7:26:01 PM (11 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@321
Message:

Switch between 'Finished Day' and 'Fast Forward' modes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/engine.py

    r312 r320  
    180180                return GameOver(self.game)
    181181            return DayState(self.game)
    182         elif e.type is KEYDOWN and e.key == K_d:
     182        elif (e.type is KEYDOWN and e.key == K_d) or \
     183                events_equal(e, FAST_FORWARD):
    183184            if self.cycle_time > FAST_ANIM_SPEED:
    184185                self.cycle_time = FAST_ANIM_SPEED
     
    255256GO_MAIN_MENU = pygame.event.Event(USEREVENT, name="GO_MAIN_MENU")
    256257GO_HELP_SCREEN = pygame.event.Event(USEREVENT, name="GO_HELP_SCREEN")
     258FAST_FORWARD = pygame.event.Event(USEREVENT, name="FAST_FORWARD")
    257259MOVE_FOX_ID = USEREVENT + 1
    258260ANIM_ID = USEREVENT + 6
Note: See TracChangeset for help on using the changeset viewer.