def __init__(self): GameSceneBase.__init__(self) self._font = Resources.TTF_Font('Kallamar/KALLAMAR.TTF', 36) self._page = 0 # which BG page we're on self._bg = Resources.ImageLibrary.Get( 'MapOptions/sc2.png') # Background to draw self._args = {} self._map_size = 1 self._map_sz1 = None self._font_r = None self._mode = 2 self._mode_cont = None self._mode_cont_r = None self._mode_zoom_r = None self._time = -1 self._time_right_r = None self._time_left_r = None self._zoom_level = 2 self._zoom_size = 0 self._zoom_right_r = None self._zoom_left_r = None #animation related self._transitioning = False #should we be animating to the next option screen? self._animStart = None self._nextbg = None #next background self._curScreenCache = None # previous bg self._hover = None # set stuff up self._SetDefaults()
def __init__(self): GameSceneBase.__init__(self) self._font = Resources.TTF_Font('Kallamar/KALLAMAR.TTF', 36) self._page = 0 # which BG page we're on self._bg = Resources.ImageLibrary.Get('MapOptions/sc2.png') # Background to draw self._args = {} self._map_size = 1 self._map_sz1 = None self._font_r = None self._mode = 2 self._mode_cont = None self._mode_cont_r = None self._mode_zoom_r = None self._time = -1 self._time_right_r = None self._time_left_r = None self._zoom_level = 2 self._zoom_size = 0 self._zoom_right_r = None self._zoom_left_r = None #animation related self._transitioning = False #should we be animating to the next option screen? self._animStart = None self._nextbg = None #next background self._curScreenCache = None # previous bg self._hover = None # set stuff up self._SetDefaults()
def __init__(self): GameSceneBase.__init__(self) self._header_font = Resources.GetFont(255, 0, 0) self._font = Resources.GetFont(255, 255, 255) self._start_time = time.time() self._tick = -1 self._lineup = _lineup() self._blacks = pygame.Surface((220, 310))
def __init__(self, color, messages, playScene): GameSceneBase.__init__(self) self.playScene = playScene self.font = Resources.GetFont(color[0], color[1], color[2]) self.messages = messages self.border = Resources.CreateBorder(400, len(messages) * 20 + 60) self.x = (640 - self.border.get_width()) // 2 self.y = 50 self.close_x = self.x + self.border.get_width() - 24 self.close_y = self.y + 24
def __init__(self): GameSceneBase.__init__(self) pygame.mixer.music.stop() self.whitefont = Resources.GetFont(255, 255, 255) self.yellowfont = Resources.GetFont(255, 255, 0) self._font = Resources.TTF_Font('Kallamar/KALLAMAR.TTF', 28) self.counter = 0 pygame.mixer.music.stop() self._story_r = None self._custom_r = None self._intro_r = None self._credits_r = None self._quit_r = None self._hover = NONE
def __init__(self, levelSeed): GameSceneBase.__init__(self) self.tileWidth = levelSeed.width self.tileHeight = levelSeed.height self.level = GamePlay.Level(levelSeed) self.levelSeed = levelSeed self.selection_indicator = Resources.ImageLibrary.Get( 'selection_indicator.png') self.cameraX = 0 self.cameraY = 0 self.dragStart = None self.selection = [] self.topmenu = pygame.Surface((640, 20)) self.topmenu.fill((40, 40, 40)) pygame.draw.rect(self.topmenu, (128, 128, 128), pygame.Rect(0, 18, 640, 2)) self.topmenu.set_alpha(200) self.cursorLogicalPosition = (0, 0) self.cursorScreenPosition = (0, 0) self.suppressDragDraw = True self.counter = 0 self.progress = 0.0 self.specializer = GamePlay.GetSpecializer(self.levelSeed.specialName) self.auxillaryCounter = 0 self.seconds = -1 try: self.seconds = self.levelSeed.minutes if self.seconds != -1: self.seconds = self.seconds * 60 except: pass self.font_white = Resources.GetFont(255, 255, 255) self.font_red = Resources.GetFont(255, 0, 0) self.font_orange = Resources.GetFont(255, 128, 0) self.font_yellow = Resources.GetFont(255, 255, 0) self.font_green = Resources.GetFont(0, 255, 0) self.font_blue = Resources.GetFont(0, 170, 255) self.specializer.DoSetup(self, self.level) self.CenterCameraOnColorSprites()
def __init__(self, levelSeed): GameSceneBase.__init__(self) self.tileWidth = levelSeed.width self.tileHeight = levelSeed.height self.level = GamePlay.Level(levelSeed) self.levelSeed = levelSeed self.selection_indicator = Resources.ImageLibrary.Get('selection_indicator.png') self.cameraX = 0 self.cameraY = 0 self.dragStart = None self.selection = [] self.topmenu = pygame.Surface((640, 20)) self.topmenu.fill((40, 40, 40)) pygame.draw.rect(self.topmenu, (128, 128, 128), pygame.Rect(0, 18, 640, 2)) self.topmenu.set_alpha(200) self.cursorLogicalPosition = (0, 0) self.cursorScreenPosition = (0, 0) self.suppressDragDraw = True self.counter = 0 self.progress = 0.0 self.specializer = GamePlay.GetSpecializer(self.levelSeed.specialName) self.auxillaryCounter = 0 self.seconds = -1 try: self.seconds = self.levelSeed.minutes if self.seconds != -1: self.seconds = self.seconds * 60 except: pass self.font_white = Resources.GetFont(255, 255, 255) self.font_red = Resources.GetFont(255, 0, 0) self.font_orange = Resources.GetFont(255, 128, 0) self.font_yellow = Resources.GetFont(255, 255, 0) self.font_green = Resources.GetFont(0, 255, 0) self.font_blue = Resources.GetFont(0, 170, 255) self.specializer.DoSetup(self, self.level) self.CenterCameraOnColorSprites()
def __init__(self): GameSceneBase.__init__(self) self.counter = 0 self.text_blits = []
def __init__(self): GameSceneBase.__init__(self) pygame.mixer.music.load( os.path.join('Media', 'Music', 'BigBrother.mp3')) pygame.mixer.music.set_volume(0.5) pygame.mixer.music.play(-1)
def __init__(self): GameSceneBase.__init__(self) global LINEUP LINEUP = None _lineup()
def __init__(self): GameSceneBase.__init__(self) pygame.mixer.music.load(os.path.join('Media', 'Music', 'BigBrother.mp3')) pygame.mixer.music.set_volume(0.5) pygame.mixer.music.play(-1)
def __init__(self): GameSceneBase.__init__(self) self.counter = 0 self.duration = 60 self.fadeRatio = 6.0 # 1/4th of the total length of the logo display is fade in self.intermediateScreen = pygame.Surface((640, 480))