# highriseHoldout.atmosphere
Night falls with the waves in Highrise Holdout. `require("highriseHoldout.atmosphere").start()` runs on every peer (the scene entrypoint calls it) and reads Holdfast's synced Director (`phase`, `wave`, `gameSeq`, `outcome`):
- **Hour**: the shared worldClockKit (Skyclock) clock eases to `R.HOURS[wave]` over about 18 s (the host runs the clock at a speed that gets there, then pauses it on the hour). During the shop break it moves toward the coming wave's hour. A new game snaps back to the first dusk. If the scene holds no `WorldClock`, the host spawns one (synced) under `Atmosphere`.
- **Weather**: `R.WEATHER[wave]` picks one of four worldClockKit weathers defined here (`hh_clear`, `hh_overcast`, `hh_rain`, `hh_storm`), each carrying its Cloudburst look; the clock owner writes it into the scene's Cloudburst component, so rain, wet ground, lightning and thunder are Cloudburst's.
- **Sky**: the `vantor` sky look (burnt-amber dusk, violet zenith, teal-violet night with a readable fill).
- **City lights**: `highriseHoldout.arena`'s `setLights(t)` from `R.CITY_LIGHTS_WAVE`, fully on two waves later. Warm sodium practical lights hang over the roof's shop spots and doors and brighten as it darkens.
- **Picture**: exposure lifts and bloom grows with darkness, so night is dark but readable.
- **Music** (soundstage, local per peer from the shared Director): set `highrise` with states `menu` (title), `shop` (calm, tensing as the countdown ends), `action` (intensity rising with the wave), `boss` (wave 10); victory and defeat stings at the results.
- **Ambience**: rooftop wind (follows the weather's wind), distant city with sirens, rain drumming on the roof while it rains.
`A.report()` returns what this peer shows: hour, target hour, weather, darkness, music state, ambience levels. `A.setTitleShown(on)` is called by `highriseHoldout.screens`.
Waves 2 to 3 (`overcast`) are the gathering storm: Cloudburst kind `hh_gathering` (defined here on every peer: heavy rolling cloud, dry, lightning flickering inside far clouds, style `sheet`) under a burnt-amber tinted clock sky. From wave 4 (`rain`) the rain comes with the same distant sheet lightning (Cloudburst `thunderstorm` at low intensity), and the full storm from wave 7.
# highriseHoldout.game
Highrise Holdout's gameplay glue, started on every peer by the scene's entrypoint (`require("highriseHoldout.game").start()`).
- Every peer: defines the weapons (`highriseHoldout.weapons`) and the Gutter Climbers (`highriseHoldout.monsters`), defines the `highriseRamp` difficulty ramp, plays the climb scrape and screech when a climber appears.
- Host (the Holdfast Director's owner): sets the Director's `theme` to `gutterClimbers` and `ramp` to `highriseRamp`; whenever the roof changes (`highriseHoldout.arena`'s `onChanged`, or the placeholder roof when that module is absent) it places, removing the previous roof's:
- a spawnerKit spawn point at every climb point (`HR_Climb_*`, at the climb's `to`) and behind every door and hatch (`HR_Door_*`), and points the Director at them;
- buyStationKit stations (look `military`) on the shop spots: Breaker and Arc Lance racks, ammo, armour, medic, revive kit and the Iron Hide, Field Medic, Steady Hand and Carpenter perks (`Game.STOCK`, prices from `highriseHoldout.rules`);
- boardwork barricades on the doors (`scrap`) and hatches (`military`).
- The climb: a climber spawned at a climb point starts on the facade below the ledge (the climb's `from`) and rises onto the roof (`to`) through spawnerKit's `rise` entrance, posed in hordeKit's climbing pose; hordeKit's brain takes over on the roof. Door spawns walk to their barricade, tear it and climb through.
```lua
local Game = require("highriseHoldout.game")
Game.start()
Game.anchors() -- the anchors in use
Game.placed() -- { stations, boards, points } the host placed
```
Solo: when only one player is in the match the `highriseRamp` scales by `Game.SOLO` (count 0.62, damage 0.7, health 0.9). Two to four players play the squad ramp `Game.SQUAD` (count 0.58 + 0.11 per wave, damage x0.85, pace 1.2 + 0.05 per wave), with Holdfast's per-player share (+60% climbers per extra player) on top.
# Highrise Holdout
A co-op rooftop horde shooter for 2 to 4 players. Hold the roof of a skyscraper in the city of Vantor Heights while ten waves of Gutter Climbers come up the walls, the fire escapes and the stairwells. Between waves there is a 20 second shopping break: buy guns, ammo, armour and perks, and board the broken doors and hatches back up. Dusk turns into a stormy neon night, and wave 10 is the Spire Warden, a two-phase boss. Pick your friends up when they go down. Everyone sees the same monsters, waves, boss, prices and scores.
## How the game is put together
The game is installed parts plus a thin layer of glue. This package (`highriseHoldout`) holds only the game's own rules and the glue modules; the scene is `scenes/main.scene`.
| Part of the game | Comes from (installed) | Glue here |
|---|---|---|
| Waves, buy phase, points, perks, revive rules, results, survivor ranks | Holdfast `survivalArenaKit` 1.0.11 | mode `highrise` in `rules.module` |
| Wave spawning and enemy pooling | spawnerKit (Wavecaller) | |
| Monsters and their brains | hordeKit 1.0.8 (Holdfast) | `monsters.module` defines the Gutter Climbers theme |
| Doors and hatches monsters break and you repair | boardwork (Holdfast) | `game.module` places them |
| Shop stations | buyStationKit (Holdfast), economyKit bank | `game.module` stocks them |
| Guns, hits, crosshair, ammo HUD | weaponsKit (Loadout), markersKit | `weapons.module`: Warden, Breaker, Arc Lance |
| Health, downed, revive | SecondWind, Lifeline | |
| Keyboard, gamepad, touch | controlsKit (Thumbstick Studio) | |
| Hit feedback, screen shake | juiceKit | |
| The generated roof and the city around it | **rooftopArenaKit** (Rooftops) | `arena.module` regenerates it per match seed |
| The wave 10 boss | **bossFightKit** (Bossfight) | `boss.module` |
| Night falling, sky, city lights | worldClockKit (Skyclock) | `atmosphere.module` |
| Rain and storm | Cloudburst | `atmosphere.module` |
| Music and ambience | soundstage | `atmosphere.module`, tracks in `audio/` |
| Title, pause, settings | menusKit | `screens.module` |
rooftopArenaKit and bossFightKit were made for this game as their own installable packages, each in its own public world, so any world can install them.
How much of the game is reused, and a 1 to 5 rating of every installed part with the reason, is in `reuse-review.md` beside this README.
### Modules
- `rules.module`: every number and choice of the game (mode, pacing, weapons, prices, hour and weather per wave, boss wave and boss choices, arena layout and look, match seed).
- `arena.module`: builds the roof with rooftopArenaKit on every machine from `R.matchSeed(gameSeq)`, so only the seed crosses the network. Play again gives a new roof and rotates the layout.
- `game.module`: weapons and monsters on every machine; on the host, spawn points at the roof's climb points and doors, shop stations on the shop spots, barricades on doors and hatches, climbers rising up the wall.
- `weapons.module`, `monsters.module`: the three guns and the Gutter Climbers.
- `boss.module`: wave 10 becomes the Spire Warden plus four climbers.
- `atmosphere.module`: hour, weather, city lights, picture, music and ambience follow the wave.
- `screens.module`: title, how to play, HUD colours, the results ribbon.
The scene's `build.luau` makes the player prototype (first person, health, the Warden rifle, an audio listener), four player spawns, a placeholder roof, the weather entity and Holdfast's Director, Spawner, health rules and HUD. `entrypoint.luau` starts the modules above on every machine.
## How to change it
All of these are one edit in `rules.module` unless said otherwise.
- **Number of waves:** `R.MODE.waves` (and `R.BOSS_WAVE` to move the boss). Add an hour and a weather for each new wave to `R.HOURS` and `R.WEATHER`.
- **Shop break length, start points, health, bleed out:** `R.MODE.buySeconds`, `startPoints`, `playerHealth`, `bleedOut`.
- **How hard each wave is:** the `highriseRamp` in `game.module` (`count`, `health`, `speed`, `damage`, `pace` per wave), or set `R.MODE.ramp` to one of Holdfast's ramps (`gentle`, `standard`, `brutal`, `stepped`, `surge`, `steady`, `breather`, `crowdScaled`).
- **Swap a weapon:** change the `base` and tuning of an entry in `weapons.module` `W.DEFS` (any weaponsKit weapon: `smg`, `sniper`, `railgun`, `flamethrower`, `rocketLauncher` ...), and its price in `R.WEAPONS` / the stock in `game.module`.
- **Change the boss:** `R.BOSS.id` to any bossFightKit boss (`spireWarden`, `voidSentinel`, `hollowMaw`, `thornKing`, `jellyBaron`, `glitchKing`, `tidewyrm`, `brassColossus`), `R.BOSS.entrance` (`climb`, `drop`, `rise`, `portal`, `roar`), `R.BOSS.transition` (`armourBreak`, `enrage`, `transform`, `summon`, `shield`) and `R.BOSS.phase2At`.
- **Change the roof or the city:** `R.ARENA.look` (`neonDowntown`, `oldTown`, `industrial`, `rainyHarbour`, `snowy`, `scifi`, `desertSprawl`, `sunsetResort`) and `R.ARENA_LAYOUTS` (`wideRoof`, `bridgedRoofs`, `terraces`, `constructionSite`, `helipadTower`, `courtyardRing`, `billboardDeck`, `industrialChimneys`, `greenhouseRoof`).
- **Monsters:** colours, health, speed and body proportions in `monsters.module` `M.DEF`; or set the Director's theme to a hordeKit theme (`risenDead`, `scrapBots`, ...).
- **Night and weather:** `R.HOURS`, `R.WEATHER`, `R.CITY_LIGHTS_WAVE`.
See the guide `guides/how-highrise-holdout-was-built-and-how-to-change-it` for the step by step version.
## Controls
| | Keyboard and mouse | Gamepad | Touch |
|---|---|---|---|
| Move / look | WASD / mouse | left stick / right stick | left stick / drag |
| Fire / aim / reload / swap | left / right mouse / R / X or Tab | RT / LT / Y / RB | Fire, Aim, Reload, Swap |
| Buy, repair a door, revive (hold) | E | X (west) | Interact |
| Ready (skip the shop break), Play again | G or Enter | View | Ready |
| Go down on purpose (Practice and Boss fight only) | K | | |
## Practice and Boss fight
The title offers **Play**, **Practice** and **Boss fight**. Whoever picks first starts that match for everyone (the host runs it; anyone else's pick is sent to the host on channel `highrise:start`); a player joining a running match just drops in.
- **Practice**: a normal match where K knocks your own operative down, so two players can practise picking each other up (hold E / X / Interact on the downed player).
- **Boss fight**: a short prep, then straight to wave 10, the Spire Warden, with 4000 extra points each to buy the Breaker or the Arc Lance first. K works here too. Play again on the results replays the boss.
The kind of match is `highriseHoldout.game`'s `Game.matchKind()` (a synced value `hrMatch` on Holdfast's Director); `Game.startMatch("normal" | "practice" | "boss")` starts one on the host. Tune `Game.BOSS_POINTS` and `Game.PRACTICE_KEY` there.
## Version
0.3.3
### What's new in 0.3.3
- **Installing the game brings its weather.** The package now lists Cloudburst under `dependencies` and reaches it by name (`cloudburst.weather`, component `cloudburst.Cloudburst`), and this world holds Cloudburst 1.6.8 as an installed package instead of mounting it as the `@cloudburst` library. An install never carries a library, so 0.3.2 installed into a new world without Cloudburst and the rain, lightning and storm clouds were missing until Cloudburst was added by hand. The game's test fails when any Cloudburst reference does not resolve inside this world's own tree.
- The gathering-storm weather is defined through a plain `require` of Cloudburst; a missing Cloudburst is now an error at load, not a warning that left the sky dry.
### What's new in 0.3.2
- The published scene records the installed Cloudburst by its current identity, so a fresh install of the game resolves every reference (0.3.1 pinned an identity the Cloudburst library no longer carries and did not install into a new world).
### What's new in 0.3.1
- **The Warden Rifle starts every match full and always deals damage.** A match replayed with Play again used to inherit the last match's rounds, so a gun fired dry started the next match empty and the host refused its shots. Every new match now hands each player a full Warden Rifle (32 rounds, 224 in reserve) and refills the host's count of it. The game's test plays two matches in a row and checks the ammo and a monster's health after hits.
- **The kill feed shows names, never internal ids.** The Spire Warden reads as Spire Warden (bossFightKit 1.1.1), and every monster carries the game's name for it (Gutter Climber, Ledge Runner, ...), never a kind id like `boss_spireWarden`.
- **Wave 10 no longer drops to a slideshow.** Cloudburst's landing map now casts under a time budget (Cloudburst 1.6.6 and later), and worldClockKit 1.7.12 runs on the Cloudburst library instead of carrying an older copy of it.
- The saved main scene records the installed Cloudburst its build names; the unused Tidewater library is gone.
## Known issues
- **Every first-person player logs an error when they spawn.** The engine's own first-person camera module (`@builtin::modules.firstPersonView`) overflows its stack in `update()` once per spawned first-person player and logs `stack overflow` from `@builtin::controller.first_person`. The camera still works and the game plays normally. It is an engine defect, reported to the Zero team with a repro as ZeroMind report `01M8MMDB8CW19S97KYB9N3HB6V`; this note goes when the engine release that fixes it lands.
- Generated textures can draw white after a very long editor session on one machine (the engine stops waiting for them). A fresh start of the client brings them back. Reported to the Zero team.