test
This commit is contained in:
@@ -27,7 +27,7 @@ GAME_ENTITY(Background)
|
||||
int mPendingLevelStage = 0;
|
||||
// Periodic friendly spawn settings
|
||||
float mFriendlySpawnAvgInterval = 6.f; // average seconds between spawns
|
||||
int mMaxAutoFriendlies = 7; // hard cap for total active friendlies
|
||||
int mMaxAutoFriendlies = 2; // hard cap for total active friendlies
|
||||
std::shared_ptr<Game::Renderer::Texture> mSeaTex;
|
||||
std::shared_ptr<Game::Renderer::Texture> mEnemyTex;
|
||||
std::shared_ptr<Game::Renderer::Texture> mTrashTex;
|
||||
|
||||
@@ -16,5 +16,8 @@ namespace Game::AGame {
|
||||
float mMoveSpeedY = 0.f;
|
||||
float mDirectionChangeTimer = 0.f;
|
||||
float mShoreSpawnCooldown = 0.f;
|
||||
bool mFollowingPlayer = false;
|
||||
static constexpr float FOLLOW_DISTANCE = 300.f;
|
||||
static constexpr float FOLLOW_SPEED = 35.f;
|
||||
END_GAME_ENTITY()
|
||||
}
|
||||
@@ -14,5 +14,11 @@ namespace Game::AGame {
|
||||
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()
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ namespace Game {
|
||||
using clock = std::chrono::steady_clock;
|
||||
|
||||
enum class GameStateEnum {
|
||||
MENU,
|
||||
RUNNING,
|
||||
PAUSED,
|
||||
STOPPED
|
||||
|
||||
Reference in New Issue
Block a user