Cactus

Cactus class

Constructors

this
this(uint _cactus_id, float _horizontal_offset)

Constructs a cactus with given type and position

Members

Functions

collider
Collider collider()
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(RenderTarget window, RenderStates states)
Undocumented in source. Be warned that the author may not have intended to support it.
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