A12: Tutorial
A short, skippable tutorial on an island of your own: leave the barge, glide down, walk and jump, cut materials with the boathook, place a wall, aim and fire, and get above the line the tide will reach after its next rise. - MatchRules.tutorial(): one player, no bots, last_team_wins off (alone is not a win, only the tide or a fall ends it) and starting_kit (a dock carbine with a full magazine and 60 cartridges, Tuning.TUTORIAL_KIT). Both rules go in command logs; older logs read with the defaults. - Tutorial watches the client's own view (predicted player, world copy, FX) and moves on when each step is done. Instructions name the player's own key bindings. TutorialCard shows it under the minimap. - TutorialPilot plays it through ClientInput for --tutorial --autoplay, the tests and make tutorial-check (12 seeds, all finish). - First launch offers it (welcome screen, remembered in settings); it is always on the main menu; Leave in the pause menu skips it. Finishing is saved. --tutorial on the command line. - make tutorial-captures; PLAY.md, the man page, ARCHITECTURE.md and CLAUDE.md updated. Closes #52 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -16,6 +16,11 @@ var countdown_ticks: int = roundi(Tuning.MATCH_COUNTDOWN_SECONDS * Tuning.TICK_R
|
||||
var results_ticks: int = roundi(Tuning.MATCH_RESULTS_SECONDS * Tuning.TICK_RATE_HZ)
|
||||
## Fill empty places with bots when the match starts.
|
||||
var fill_with_bots: bool = true
|
||||
## The match ends when one team is left standing. The tutorial (A12) turns this off,
|
||||
## so a player alone on the island plays on until the tide ends it.
|
||||
var last_team_wins: bool = true
|
||||
## Every player starts with Tuning.TUTORIAL_KIT in hand (A12).
|
||||
var starting_kit: bool = false
|
||||
|
||||
|
||||
## Rules for a server that skips the lobby: the match starts on the first tick.
|
||||
@@ -24,3 +29,15 @@ static func immediate() -> MatchRules:
|
||||
rules.lobby_ticks = 0
|
||||
rules.countdown_ticks = 0
|
||||
return rules
|
||||
|
||||
|
||||
## Rules for the tutorial (A12): one player alone, straight onto the barge, with a
|
||||
## weapon to learn on, and no ending until the tide's own.
|
||||
static func tutorial() -> MatchRules:
|
||||
var rules: MatchRules = MatchRules.immediate()
|
||||
rules.max_players = 1
|
||||
rules.min_players = 1
|
||||
rules.fill_with_bots = false
|
||||
rules.last_team_wins = false
|
||||
rules.starting_kit = true
|
||||
return rules
|
||||
|
||||
Reference in New Issue
Block a user