Skip to content

Conversation

@zack-the-coding-actuary
Copy link
Contributor

@zack-the-coding-actuary zack-the-coding-actuary commented Jan 5, 2026

Swapped the map generation order from place barbs -> place players to place players -> place barbs. Added control flow gate to invalidate any barbarian spawn candidate that's less than 6 tiles away from an already placed player location.

Waiting to finalize PR until older PR's are good to go (i.e. the world size option update)

away from barb camps.

Added GameMap parameter to
TileIsTooCloseToOtherStarts(), created minimum
barb camp distance logic with magic numbers, added
enumerable all function to make sure that player
spawns are required minimum distance from barb
camps.
Game places too many barb camps to place player spawns a small distance away if we do barbs first.
@TomWerner
Copy link
Contributor

Looks good to me! I'll take a look at the other PR you mention too.

@zack-the-coding-actuary zack-the-coding-actuary marked this pull request as ready for review January 6, 2026 03:24
@zack-the-coding-actuary
Copy link
Contributor Author

Staging this one as ready to merge if desired since the world sizes issue may have a bit more nuance to iron out. Thanks!

Copy link
Contributor

@TomWerner TomWerner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@TomWerner TomWerner merged commit 25be85a into C7-Game:Development Jan 6, 2026
3 checks passed
@zack-the-coding-actuary zack-the-coding-actuary deleted the min-barb-distance branch January 6, 2026 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants