changeset 31:6ac02ee10233 v0.10-pre2

Renamed the map screen layer var
author Josef "Jeff" Sipek <jeffpc@optonline.net>
date Tue, 16 Aug 2005 00:16:34 -0500
parents a7f6404800ad
children edf40115de4e
files atc_single.py
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/atc_single.py	Fri Aug 12 22:45:03 2005 -0500
+++ b/atc_single.py	Tue Aug 16 00:16:34 2005 -0500
@@ -37,21 +37,21 @@
 	#atc_utils.playmusic("some.mp3");
 
 	# Set background
-	background = pygame.Surface(screen.get_size()).convert()
-	background.fill(atc_colors.black)
+	screen_map = pygame.Surface(screen.get_size()).convert()
+	screen_map.fill(atc_colors.black)
 	
 	(back_image, back_rect) = atc_utils.load_png(MAPS[0]["image"])
-	background.blit(back_image, (0, 0))
+	screen_map.blit(back_image, (0, 0))
 
 	# Some text
 #	font = pygame.font.Font(None, 36)
 #	text = font.render("Air Traffic Controller", 1, atc_colors.red)
 #	textpos = text.get_rect()
-#	textpos.centerx = background.get_rect().centerx
-#	background.blit(text, textpos)
+#	textpos.centerx = screen_map.get_rect().centerx
+#	screen_map.blit(text, textpos)
 
 	#blit!
-	screen.blit(background, (0, 0))
+	screen.blit(screen_map, (0, 0))
 	pygame.display.flip()
 
 	planes = [atc_plane.Plane(callsign="N12422",flightno="Delta 79",vel=(50, 50, 10)),]
@@ -185,7 +185,7 @@
 						
 						cmd = ""
 		
-		screen.blit(background, (0, 0))
+		screen.blit(screen_map, (0, 0))
 		
 		for plane in planes:
 			plane.display(screen)