Example #1
0
	def draw(self, screen):
		#~ pos = Physics.to_pygame(self.body.position)
		#~ screen.blit(self.image, (pos[0], pos[1]-self.height)) # Draw at bottom left
		
		self.v1 = Physics.to_pygame(Vec2d(self.p1[0], self.p1[1]))
		self.v2 = Physics.to_pygame(Vec2d(self.p2[0], self.p2[1]))
		pygame.draw.line(screen, self.color, self.v1, self.v2, 20)
Example #2
0
	def draw(self, screen):
		pos = Physics.to_pygame(self.body.position)
		#~ screen.blit(self.image, (pos[0], pos[1]-Physics.to_px(self.height)))
		#~ pos = self.body.position
		screen.blit(self.image, (pos[0], pos[1]-self.height))
Example #3
0
	def draw(self, screen):
		if(self.visible == True):
			#~ super(Powerup, self).draw(screen)
			pos = Physics.to_pygame(self.body.position)
			screen.blit(self.image, (pos[0], pos[1]-self.height))
Example #4
0
	def draw(self, screen):
		pos = Physics.to_pygame(self.body.position)
		#~ pos = self.body.position
		screen.blit(self.image, (pos[0]-self._animation.get_width()/2, 
								pos[1]-self._animation.get_height()))
Example #5
0
 def draw(self, surface):
     surface.blit(self.image, Physics.to_pygame(self.body.position))