예제 #1
0
파일: enemy.py 프로젝트: wolmir/cristina
 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
파일: enemy.py 프로젝트: wolmir/cristina
 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
파일: twinkler.py 프로젝트: pombredanne/Obb
	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
파일: twinkler.py 프로젝트: wolmir/cristina
 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))