New code added
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
"""test"""
|
||||
import sys
|
||||
|
||||
import pygame
|
||||
@ -13,8 +14,9 @@ class AlienInvasion:
|
||||
pygame.init()
|
||||
self.settings = Settings()
|
||||
|
||||
self.screen = pygame.display.set_mode((self.settings.screen_witdh, self.settings.screen_heigh))
|
||||
pygame.display.set.caption("Alien Invasion")
|
||||
self.screen = pygame.display.set_mode(
|
||||
(self.settings.screen_witdh, self.settings.screen_heigh))
|
||||
pygame.display.set_caption("Alien Invasion")
|
||||
|
||||
self.ship = Ship(self)
|
||||
|
||||
@ -39,5 +41,4 @@ class AlienInvasion:
|
||||
if __name__ == '__main__':
|
||||
# Make a game instance, and run the game.get()
|
||||
ai = AlienInvasion()
|
||||
ai.run.game()
|
||||
|
||||
ai.run_game()
|
||||
|
||||
Reference in New Issue
Block a user