Constructs the Obstacle with the given image.
starting position of the obstacle
width of the obstacle
height of the obstacle
path to the image to be used
Private Readonly paddingPrivate pipePrivate pipePrivate Readonly speedStatic Private _distanceStatic Private _startXGet height.
Set height.
Get the hitbox's visibility.
Set the hitbox's visibility.
Get width.
Set width.
Static distanceStatic startXPrivate createPrivate randomGenerated using TypeDoc
Obstacle of the game. Built from 2 pipes, one at the bottom, one at the top.