Raylib Bubbles
C++11 Raylib bubble shooter game.
GameHUD::Arrow Struct Reference

The data structure used to handle the player's arrow. More...

#include <hud.hpp>

Public Attributes

std::array< ArrowPiece, 3 > pieces
 
float direction
 
float scale
 

Detailed Description

The data structure used to handle the player's arrow.

Parameters
piecesThe pieces of the arrow, hardcoded amount.
directionThe direction of the arrow, in radians and zeroed to the upwards direction.
scaleThe scale of the arrow.

This struct holds information about the arrow that the player controls to shoot bubbles. The arrow is currently set to hold exactly three pieces: the core, the tip, and the spring, in that order. Indexing the pieces array of ArrowPiece will give you the corresponding piece information.

See also
ArrowPiece

The documentation for this struct was generated from the following file: