ADD A NEW ONE

This commit is contained in:
anna
2026-05-29 14:26:09 +08:00
parent 1eb52fbcff
commit c01c614c27
4 changed files with 143 additions and 65 deletions

20
main1.py Normal file
View File

@@ -0,0 +1,20 @@
import pgzrun
WIDTH = 800
HEIGHT = 600
ship = Actor('dead8')
ship.x = 370
ship.y = 550
def update():
if keyboard.left:
ship.x = ship.x - 5
if keyboard.right:
ship.x = ship.x + 5
def draw():
screen.fill((80,0,70))
ship.draw()
pgzrun.go() # Must be last line