Changed background color.

This commit is contained in:
2013-01-09 21:22:33 -04:30
parent 1e635f3d10
commit 453584c7f6

View File

@@ -16,6 +16,7 @@ class IntroState(BaseState):
screen_center = self.get_screen_center()
self.rectangle = pygame.Rect(screen_center[0] - 50, screen_center[1] - 50, 100, 100)
self.next_transition = VALID_STATES['STAY']
self.background_color = (139, 210, 228)
def input(self):
for event in pygame.event.get():
@@ -40,4 +41,5 @@ class IntroState(BaseState):
return self.next_transition
def render(self, canvas):
canvas.fill(self.background_color)
pygame.draw.rect(canvas, (255, 255, 255), self.rectangle)