tornem al pc d'anit
This commit is contained in:
@@ -26,6 +26,10 @@ enum class BulletMoveStatus : Uint8
|
||||
class Bullet
|
||||
{
|
||||
public:
|
||||
// Constantes
|
||||
static constexpr float WIDTH = 12.0f;
|
||||
static constexpr float HEIGHT = 12.0f;
|
||||
|
||||
// Constructor y Destructor
|
||||
Bullet(float x, float y, BulletType bullet_type, bool powered, int owner);
|
||||
~Bullet() = default;
|
||||
@@ -44,11 +48,9 @@ public:
|
||||
|
||||
private:
|
||||
// Constantes
|
||||
static constexpr float BULLET_WIDTH_ = 12.0f;
|
||||
static constexpr float BULLET_HEIGHT_ = 12.0f;
|
||||
static constexpr float BULLET_VEL_Y_ = -3.0f;
|
||||
static constexpr float BULLET_VEL_X_LEFT_ = -2.0f;
|
||||
static constexpr float BULLET_VEL_X_RIGHT_ = 2.0f;
|
||||
static constexpr float VEL_Y_ = -3.0f;
|
||||
static constexpr float VEL_X_LEFT_ = -2.0f;
|
||||
static constexpr float VEL_X_RIGHT_ = 2.0f;
|
||||
|
||||
// Propiedades
|
||||
std::unique_ptr<AnimatedSprite> sprite_; // Sprite con los gráficos
|
||||
|
||||
Reference in New Issue
Block a user