changeset 15:7711c8c1224f

Changed the plane icon to a plane and made it rotate to show the heading committer: Jeff Sipek <jeffpc@jeff.(none)> 1120874113 -0400
author Jeff Sipek <jeffpc@jeff.(none)>
date Sat, 09 Jul 2005 01:55:13 -0400
parents d9c394a5ef77
children c28ae64fcb6e
files atc_plane.py data/image/plane.png
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/atc_plane.py	Sat Jul 09 01:48:39 2005 -0400
+++ b/atc_plane.py	Sat Jul 09 01:55:13 2005 -0400
@@ -206,7 +206,8 @@
 	
 	def display(self,screen):
 		""" Put everything onto the screen """
-		screen.blit(self.image, (int(1024/2+m2pix(self.pos["X"])), int(768/2-m2pix(self.pos["Y"]))))
+		rotimage = pygame.transform.rotate(self.image, 360-self.vel["heading"])
+		screen.blit(rotimage, (int(1024/2+m2pix(self.pos["X"])), int(768/2-m2pix(self.pos["Y"]))))
 		
 		# Plane info
 		font = pygame.font.Font(None, 16)
Binary file data/image/plane.png has changed