def move(self):
        # Add gravity to speed
        self.speed = self.speed + self.gravity
        # Add speed to y location
        self.y = self.y + self.speed
        # If square reaches the bottom
        # Reverse speed
        if self.y > height:
            # Dampening
            self.speed = self.speed * -0.8
            self.y = height

        self.life -= 1
dataset/ETHPy150Open jdf/processing.py/examples.py/Topics/AdvancedData/list_example.py/Ball.move/original