Task: MIL-003#1 Task: MIL-003#2 Task: MIL-003#3 Task: MIL-003#4 Task: MIL-003#5 Task: MIL-003#6
1006 B
1006 B
English · Dansk · Bahasa Malaysia
Step 1: Game screen
What we built
A black 800 by 600 window titled "Space Invaders" and a frame loop. Animation is switched off with tracer(0), so the game draws a frame itself with update(), and ontimer calls the next frame without blocking the window.
What we gained
- Setting up a turtle
Screen: size, background colour and title - Turning automatic animation off with
tracer(0)and drawing withupdate() - Running a loop with
ontimerso the window stays responsive and can be closed - Putting every number in
constants.pyfrom the first line
Try it
Start the game; an empty black window opens.
Where the code is
src/main.py: create_screen, main
