Module game_qu.platformer.platform
Expand source code
from game_qu.base.important_variables import (
SCREEN_HEIGHT,
SCREEN_LENGTH,
)
from game_qu.base.velocity_calculator import VelocityCalculator
from game_qu.gui_components.component import Component
from game_qu.platformer.game_object import GameObject
class Platform(GameObject):
"""The platform that the players can jump onto and interact with"""
color = (150, 75, 0)
object_type = "Platform"
def __init__(self, left_edge=0, top_edge=0, length=0, height=0):
"""Initializes the object"""
super().__init__("")
self.number_set_dimensions(left_edge, top_edge, length, height)
Classes
class Platform (left_edge=0, top_edge=0, length=0, height=0)-
The platform that the players can jump onto and interact with
Initializes the object
Expand source code
class Platform(GameObject): """The platform that the players can jump onto and interact with""" color = (150, 75, 0) object_type = "Platform" def __init__(self, left_edge=0, top_edge=0, length=0, height=0): """Initializes the object""" super().__init__("") self.number_set_dimensions(left_edge, top_edge, length, height)Ancestors
Subclasses
Class variables
var colorvar object_type
Inherited members
GameObject:bottom_edgeget_all_componentsget_collidable_componentsget_scaled_dimensionsgot_clickedhorizontal_midpointmouse_enter_functionmouse_exit_functionnumber_set_dimensionspercentage_set_dimensionsrenderright_edgerunrun_collisionsset_colorset_dimensions_within_componentset_mouse_enter_functionset_mouse_exit_functionset_mouse_functionsupdate_for_side_scrollingvertical_midpoint