def Render(self, screen): OptimizationScene.Render(self, screen) #self.pusherSprite.render(0,-2,0x222&self.base_color) #self.pusherSprite.render(0,-1,0x666&self.base_color) self.pusherDownSprite.render(0, 0, 0xfff & self.base_color) self.pusherUpSprite.render(0, 0, 0xfff & self.base_color) graphics.render()
def RenderBody(self, screen): self.debugKnobLeft.RenderWithAlpha(screen) self.debugKnobRight.RenderWithAlpha(screen) graphics.setColor(0xf22) graphics.plotLine(self.point['x'], 0, self.point['x'], 7) graphics.plotLine(0, self.point['y'], 7, self.point['y']) graphics.render()
def Render(self, screen): screen.fill(constants.PALLETE_BACKGROUND_BLUE) self.subtitle_shadow.render_multiline(screen) self.subtitle.render_multiline(screen) graphics.render()
def Render(self, screen): screen.fill((0x1B, 0x0C, 0x43)) self.logo.RenderWithAlpha(screen) self.testSprite.render() #graphics.setColor(0xf0f) #self.label.render() graphics.render() self.title.RenderWithAlpha(screen)
def Render(self, screen): screen.fill((0x1B, 0x0C, 0x43)) self.mimo_blueprint.RenderWithAlpha(screen) self.printer01.RenderWithAlpha(screen) self.printer02.RenderWithAlpha(screen) self.printer03.RenderWithAlpha(screen) self.materialL1.RenderWithAlpha(screen) self.materialL2.RenderWithAlpha(screen) self.materialL3.RenderWithAlpha(screen) self.materialR1.RenderWithAlpha(screen) self.materialR2.RenderWithAlpha(screen) self.materialR3.RenderWithAlpha(screen) self.opt_knobs.RenderWithAlpha(screen) self.opt_buttons.RenderWithAlpha(screen) self.title.RenderWithAlpha(screen) self.subtitle.render_multiline(screen) #self.torca.render() graphics.render()
def RenderBody(self, screen): index = 0 for figure in FIGURES[self.level]: self.DrawFigure(screen, figure, index) index += 1 if self.detected_contact: if self.countdown_shadow <= 0: self.display_figure_shadow() self.progress.RenderWithAlpha(screen) if self.playing == False: return self.draw_color_line(0xfff&self.line_color, self.index) self.draw_color_line(0xddd&self.line_color, self.index-self.direction) self.draw_color_line(0xbbb&self.line_color, self.index-self.direction*2) self.draw_color_line(0x999&self.line_color, self.index-self.direction*3) self.draw_color_line(0x777&self.line_color, self.index-self.direction*4) self.draw_color_line(0x555&self.line_color, self.index-self.direction*5) self.draw_color_line(0x333&self.line_color, self.index-self.direction*6) self.draw_color_line(0x111&self.line_color, self.index-self.direction*7) self.draw_color_line(0x0&self.line_color, self.index-self.direction*8) if self.guess_color and not self.detected_contact: for j in range(0, 8): y = j for i in range(0, 8): x = i if self.mode == 2: y = i x = j if self.direction == -1: y = 7-y elif self.direction == -1: x = 7-x if self.radar_matrix[y][x]==1: self.Lock() graphics.render()
def Render(self, screen): screen.fill((0x1B, 0x0C, 0x43)) self.logo.RenderWithAlpha(screen) self.testSprite.render() graphics.render() self.title.RenderWithAlpha(screen)