def render(self, screen):
        screen.fill((0, 0, 0))
        y = int(screen.get_height() - (self.counter - 1) * 1.5)
        sw = screen.get_width()
        for credit in self.credits:
            line1 = get_text(credit[0], (160, 160, 160), 16)
            line2 = get_text(credit[1], (255, 255, 255), 24)
            left1 = sw // 2 - line1.get_width() // 2
            left2 = sw // 2 - line2.get_width() // 2
            mleft = left1 if left1 < left2 else left2
            right1 = sw // 2 + line1.get_width() // 2
            right2 = sw // 2 + line2.get_width() // 2
            mright = right1 if right1 > right2 else right2
            screen.blit(line1, (left1, y))
            screen.blit(line2, (left2, y + line1.get_height() + 3))

            lperson = credit[2]
            rperson = credit[3]
            if lperson != None:
                screen.blit(lperson, (mleft - lperson.get_width() - 8, y - 8))
            if rperson != None:
                screen.blit(rperson, (mright + 8, y - 8))
            y += 220

        if y < 0:
            self.next = scenefactory.build_scene('title', [])
	def render(self, screen):
		screen.fill((0, 0, 0))
		y = int(screen.get_height() - (self.counter - 1) * 1.5)
		sw = screen.get_width()
		for credit in self.credits:
			line1 = get_text(credit[0], (160, 160, 160), 16)
			line2 = get_text(credit[1], (255, 255, 255), 24)
			left1 = sw // 2 - line1.get_width() // 2
			left2 = sw // 2 - line2.get_width() // 2
			mleft = left1 if left1 < left2 else left2
			right1 = sw // 2 + line1.get_width() // 2
			right2 = sw // 2 + line2.get_width() // 2
			mright = right1 if right1 > right2 else right2
			screen.blit(line1, (left1, y))
			screen.blit(line2, (left2, y + line1.get_height() + 3))
			
			lperson = credit[2]
			rperson = credit[3]
			if lperson != None:
				screen.blit(lperson, (mleft - lperson.get_width() - 8, y - 8))
			if rperson != None:
				screen.blit(rperson, (mright + 8, y - 8))
			y += 220
		
		if y < 0:
			self.next = scenefactory.build_scene('title', [])
	def process_input(self, events, pressed):
		for event in events:
			
			if event.type == 'key' and event.down and event.action in ('action', 'back', 'build'):
				self.page += 1
		
		if self.page == len(self.images):
			self.page -= 1
			self.next = scenefactory.build_scene('title', [])
    def process_input(self, events, pressed):
        for event in events:

            if event.type == 'key' and event.down and event.action in (
                    'action', 'back', 'build'):
                self.page += 1

        if self.page == len(self.images):
            self.page -= 1
            self.next = scenefactory.build_scene('title', [])
 def process_input(self, events, pressed):
     if self.skippable:
         if pressed['action'] or pressed['back'] or pressed['build']:
             self.next = scenefactory.build_scene('title', [])
	def process_input(self, events, pressed):
		if self.skippable:
			if pressed['action'] or pressed['back'] or pressed['build']:
				self.next = scenefactory.build_scene('title', [])