merge develop in no_clip_bonus

This commit is contained in:
Askou
2021-06-15 12:23:39 +02:00
50 changed files with 707 additions and 168 deletions

View File

@@ -17,6 +17,17 @@ namespace BBM
class ControllableComponent : public WAL::Component
{
public:
enum Layout
{
NONE,
KEYBOARD_0,
KEYBOARD_1,
GAMEPAD_0,
GAMEPAD_1,
GAMEPAD_2,
GAMEPAD_3
};
//! @brief The X and Z abscis of the movement.
Vector2f move;
//! @brief input value for jump
@@ -27,6 +38,8 @@ namespace BBM
bool pause = false;
//! @brief The speed applied to every controllable entities.
float speed = .15f;
//! @brief The layout used for this controllable.
Layout layout = NONE;
//! @inherit
WAL::Component *clone(WAL::Entity &entity) const override;