25 lines
730 B
C++
25 lines
730 B
C++
#pragma once
|
|
|
|
#include <game/gamemanager.hpp>
|
|
#include <object/entity.hpp>
|
|
#include <renderer/texture.hpp>
|
|
#include <renderer/font.hpp>
|
|
#include <object/sound.hpp>
|
|
|
|
namespace Game::AGame {
|
|
GAME_ENTITY(Friendly)
|
|
public:
|
|
void onCollisionEnter(Object::Entity* other) override;
|
|
private:
|
|
float mMoveSpeedX = 0.f;
|
|
float mMoveSpeedY = 0.f;
|
|
float mDirectionChangeTimer = 0.f;
|
|
bool mOnSea = false;
|
|
static constexpr float CLEANUP_RADIUS = 50.f;
|
|
static constexpr int CLEANUP_SCORE_BONUS = 5;
|
|
static constexpr float LAND_SPEED_MIN = 20.f;
|
|
static constexpr float LAND_SPEED_MAX = 50.f;
|
|
static constexpr float SEA_SPEED = 14.f;
|
|
END_GAME_ENTITY()
|
|
}
|