From 9391f82df87aa794c82156b3b3d92c5ef36972fe Mon Sep 17 00:00:00 2001 From: Compiler Date: Mon, 5 Apr 2021 19:40:57 +0200 Subject: [PATCH] New code added --- .vscode/settings.json | 5 +++++ __pycache__/settings.cpython-39.pyc | Bin 0 -> 619 bytes __pycache__/ship.cpython-39.pyc | Bin 0 -> 882 bytes alien_invasion.py | 9 +++++---- settings.py | 4 +++- ship.py | 3 ++- 6 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 __pycache__/settings.cpython-39.pyc create mode 100644 __pycache__/ship.cpython-39.pyc diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..7ed3b48 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "python.linting.pylintArgs": [ + "--extension-pkg-whitelist=pygame" + ] +} \ No newline at end of file diff --git a/__pycache__/settings.cpython-39.pyc b/__pycache__/settings.cpython-39.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f2f13d3a515db360983d3aeec001e51c6322d76f GIT binary patch literal 619 zcmY*Xy>8nu5I$0hs~UEIEJ3$2Q=!E|_aJbP07Wx+$)@F^h_pmh788XpQum2K0cAtZCCekpW%L4hEMuxZ=#p#Yy>2VF`g$(Prf^Pp zBb+x@iK1zQ+lIy5SaN993f(>wPMda8($YH#?=bX&bh9vf2BcL9X;nhL8M*rWz13b* zuay$MR-!5v>WkY=n&`I}Knr4@Mt}cMI~xwMhFKbQBUf6bT71-A);p_Kx~jY6w!+dh z#-^-`ooeQJ>GW*hl{C{2lI!!NMjaSuKQ oUpQtU?&unju$Zqsvy|JzKD<{FSlUq6C8wK_XW@&u&?V;o0k}1lfB*mh literal 0 HcmV?d00001 diff --git a/__pycache__/ship.cpython-39.pyc b/__pycache__/ship.cpython-39.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7aeed064eb525868ae084901935d481e7c17aa8e GIT binary patch literal 882 zcmY*Xy^a$x5VpO}?sAvh2?;1DkQ<6^E~2AAr$d~Cph$DwHpW?-WW)Xh+c|Wrblfu_ z(OpVj$t@MHK*h{1Il@RY{>C29d^5J1OpXZ1_xGPZd}DF@& zG2}`Dzgm{-?&)h$RLVKwTT!bBOII+m~k(Nk?R{!cMfJtS7b|MzuwUuV&OVqu1*Ob0gRoVS3DO96{GhUS53FnpdWwQ|L)Qc{J z@7p?Kfjd)u%o9~g4F5sw1bY1aa=L75GxhDYu}ig>Ube-iHjQ`FMd_^pVpC|qG_q{2 zl>>?cwe?L%CG3@6$`l9I{{fcLadZOOO>p#Q`-p-<$X*b0(0{Iky(^o_FbDWvOCLsa)17DZb4FCWD literal 0 HcmV?d00001 diff --git a/alien_invasion.py b/alien_invasion.py index e977fed..f16e789 100644 --- a/alien_invasion.py +++ b/alien_invasion.py @@ -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() diff --git a/settings.py b/settings.py index eac204d..7cf0845 100644 --- a/settings.py +++ b/settings.py @@ -1,3 +1,5 @@ +"""test""" + class Settings: """A class to store all settings for alien invasion.""" @@ -6,4 +8,4 @@ class Settings: # Screen settings self.screen_witdh = 1200 self.screen_heigh = 800 - self.bg_color =(230, 230, 230) \ No newline at end of file + self.bg_color =(230, 230, 230) diff --git a/ship.py b/ship.py index 8f6d692..929a952 100644 --- a/ship.py +++ b/ship.py @@ -1,3 +1,5 @@ +"""test""" + import pygame class Ship: @@ -18,4 +20,3 @@ class Ship: def blitme(self): """Draw the ship at its current location""" self.screen.blit(self.image, self.rect) -