Book
Module 8 - Section 5 - spaceship
Module 8 - Section 5 - spaceship
Completion requirements
View
After the completion of this module the students will be able to:
- identify various classes inside Python code game
- describe the parts of the class and it's use
- identify the objects of a class
- recognize the characteristics and the values of the objects
- modify the code of the game to make it easier or harder
8.5.3 - Initialization of position
In lines 32 to 35 is the code of initialization of the spaceship (starting position and speed)
In lines 77 to 92 is the code to keep the spaceship inside the screen.
The code is here to download (avoid_v0.6.0.py)
In lines 77 to 92 is the code to keep the spaceship inside the screen.
The code is here to download (avoid_v0.6.0.py)