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 color
var object_type

Inherited members