# 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.