Changelog - v1.1.0:
Key Changes
-
Import Statements:
- The updated version adds an import for
MagicNumbersfromlib.parameters.
- The updated version adds an import for
-
Ground Class:
- A method
place_groundis added with detailed comments explaining the code. get_collision_coordsmethod is added for collision detection.
- A method
-
Player Class:
self.powerstateinitialization now usesMagicNumbers.STARTING_POWERSTATEinstead of a hardcoded0.self.fire_cooldowninitialization remains unchanged.- In the
coin_checkmethod, the condition for incrementingpowerstateis modified to check thatpowerstateis less than2.
-
Level Initialization:
- The
GROUND_WIDTHis now set usingMagicNumbers.GROUND_WIDTHinstead of a hardcoded value.
- The
-
Rendering Logic:
- Minor changes in the
Brickclass for rendering and updating the screen.
- Minor changes in the