示例#1
0
 def render(self):
     canvas = pygame.Surface(self.size)
     canvas.fill(background_color)
     inst_msg = utils.build_text_surface(INSTRUCTION_MESSAGE,
                                         self.size[0] * .90, self.font,
                                         text_color, background_color)
     canvas.blit(inst_msg, utils.center_surface(inst_msg, canvas))
     return canvas
示例#2
0
 def render(self):
     canvas = pygame.Surface(self.size)
     canvas.fill(background_color)
     msgview = self.font.render(CONNECTING_MESSAGE, True, text_color)
     canvas.blit(msgview, utils.center_surface(msgview, canvas))
     return canvas
示例#3
0
	def render(self):
		canvas = pygame.Surface(self.size)
		canvas.fill(background_color)
		msgview = self.font.render(CONNECTING_MESSAGE, True, text_color)
		canvas.blit(msgview, utils.center_surface(msgview, canvas))
		return canvas
示例#4
0
	def render(self):
		canvas = pygame.Surface(self.size)
		canvas.fill(background_color)
		inst_msg = utils.build_text_surface(INSTRUCTION_MESSAGE, self.size[0] * .90, self.font, text_color, background_color)
		canvas.blit(inst_msg, utils.center_surface(inst_msg, canvas))
		return canvas