Cactus

Cactus class

Constructors

this
this(uint _cactus_id, float _horizontal_offset)

Constructs a cactus with given type and position

Members

Functions

move
void move(float distance)

Moves a cactus by a given distance

position
Vector2f position()

Position of the cactus

texture
const(Texture) texture()

Texture of the cactus

Variables

horizontal_offset
float horizontal_offset;

Distance from the left side of the window

window_height
float window_height;

Height of the game window

Inherited Members

From Collidable

collider
Collider collider()

Returns a rectangle to be used for collision detection;

Meta