Пример #1
0
 def draw(self):
     pos = vista.worldtoview((self.x, self.y))
     img = graphics.shipimg(self.traj)
     vista.screen.blit(img, img.get_rect(center=pos))
Пример #2
0
 def draw(self):
     pos = vista.worldtoview((self.x, self.y))
     img = getshotimg(vista.zoom, self.angle)
     vista.screen.blit(img, img.get_rect(center=pos))
Пример #3
0
	def draw(self):
		pos = vista.worldtoview((self.x, self.y))
		alpha = 1 if self.sucker else min(self.t / 0.5, (5 - self.t) / 0.5, 1)
		img = graphics.twinkler(self.t, alpha)
		vista.screen.blit(img, img.get_rect(center = pos))
Пример #4
0
 def draw(self):
     pos = vista.worldtoview((self.x, self.y))
     img = getshotimg(vista.zoom, self.angle)
     vista.screen.blit(img, img.get_rect(center = pos))
Пример #5
0
 def draw(self):
     pos = vista.worldtoview((self.x, self.y))
     img = graphics.shipimg(self.traj)
     vista.screen.blit(img, img.get_rect(center = pos))
Пример #6
0
 def draw(self):
     for img in graphics.gettwinklerimgs(self.t):
         pos = vista.worldtoview((self.x, self.y))
         vista.screen.blit(img, img.get_rect(center=pos))
Пример #7
0
 def draw(self):
     for img in graphics.gettwinklerimgs(self.t):
         pos = vista.worldtoview((self.x, self.y))
         vista.screen.blit(img, img.get_rect(center = pos))