diff --git a/images/playership1_blue.png b/images/playership1_blue.png new file mode 100644 index 0000000..cecbbed Binary files /dev/null and b/images/playership1_blue.png differ diff --git a/images/ufored.png b/images/ufored.png new file mode 100644 index 0000000..62dd549 Binary files /dev/null and b/images/ufored.png differ diff --git a/main.py b/main.py index e69de29..c3716d4 100644 --- a/main.py +++ b/main.py @@ -0,0 +1,19 @@ +import pgzrun + +WIDTH = 800 +HEIGHT = 600 + +ship = Actor('playership1_blue') +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(): + ship.draw() + +pgzrun.go() # Must be last line \ No newline at end of file