This commit is contained in:
2026-05-13 07:58:59 +02:00
parent d9769bdbbb
commit 892d8f22eb
18 changed files with 242 additions and 77 deletions

View File

@@ -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;

View File

@@ -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()
}

View File

@@ -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()
}

View File

@@ -17,6 +17,7 @@ namespace Game {
using clock = std::chrono::steady_clock;
enum class GameStateEnum {
MENU,
RUNNING,
PAUSED,
STOPPED