From 93b522647c54a5be3616e329f9047affd6307fc4 Mon Sep 17 00:00:00 2001 From: 206530234 Date: Fri, 18 Jun 2021 23:05:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'=E8=AE=A9=E5=A4=96?= =?UTF-8?q?=E6=98=9F=E4=BA=BA=E7=BE=A4=E9=87=8C=E7=A7=BB=E5=8A=A8'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 让外星人群里移动 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 让外星人群里移动 diff --git a/让外星人群里移动 b/让外星人群里移动 new file mode 100644 index 0000000..dcf95c0 --- /dev/null +++ b/让外星人群里移动 @@ -0,0 +1,19 @@ +import random + +class spaceInvader(pygame.sprite.Sprite): + +def __init__(self): + +self.image = pygame.image.load("spaceInvader.png") + +self.x = 200 + +self.y = 390 + +self.shots = [] + +def handle_keys(self): + +key = pygame.key.get_pressed() + +dist = 5 \ No newline at end of file