New code added

This commit is contained in:
2021-04-05 19:40:57 +02:00
parent a60378bcc0
commit 9391f82df8
6 changed files with 15 additions and 6 deletions

View File

@ -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()