diff --git a/README.md b/README.md index e977131a..4bca052c 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the Collision rules (keep them if you touch movement): you and the Entity are boxes 0.72 m wide and 1.95 m tall; map walls, posts, pillars (0.9 m and 1.5 m), office partitions (1.25 m tall, 12 cm thick: jump onto or over them) and built walls and floors are solid boxes. A ramp is solid too (`inRamp`): a sloping sheet 0.33 m thick whose top you walk on. With the middle of a body over a ramp, the body is clear of it only on top (feet no more than a 0.6 m step below the surface, which is how you step onto the low end or land on it from a jump) or underneath with its head under the ramp's underside; anything between counts as inside the ramp, and movement never goes there: walking or jumping into a ramp from the side or from behind stops you (`rampBlocks`), under one you can only stand where there is head room (the 1.5 m under the high end) and a jump there stops at the underside, and nothing gets up through a ramp from below. (Until November 2026 ramps were walkable surfaces only and could be walked and jumped through.) Movement goes one axis at a time so you slide along walls; a move that would enter a solid is dropped unless it is a step of up to 0.6 m onto something with head room; and a frame that would move you more than 0.25 m (below about 25 fps; frames are capped at 50 ms) is split into shorter steps, so nothing as thin as a wall can be skipped over. You stand on anything your box overlaps and fall only once you are clear of it, and walking up a ramp into a floor stops you under it (if a floor dropped on you pushed you down below a ramp's surface, you can still walk back down the ramp, just not further up). The only way into a solid is a build landing on you (your own, the Entity's or another player's), and the game then shoves you out the shortest way (sideways out of a wall, up onto or down from under a floor) that ends inside the map without passing through any other wall or build on the way, rather than trapping you or letting you walk through it; the same push-out runs at spawn and on every step. A ramp that lands on you (`rampOut`) lifts you onto it if that is no more than 2 m up, so a ramp placed in the cell you are standing in puts you on it ready to climb; otherwise you are moved the shortest free way: along the slope to where there is head room underneath or to where it is low enough to step onto, out of a side, or up or down. Other players' drawn positions are clamped to the map and pushed out of solid boxes too (not ramps: each player's own page keeps them out of those), so a corner cut between two updates, or a late update carried on, never draws (or lets you shoot) someone inside a wall. Shots are rays tested against every solid, ramp surface, the floor and the ceiling before players, so they can't pass through walls or builds. - `e63334287a3deaa3/ironwing/`: Ironwing (**preview, admin page only**; Back Room folder; the display name lives in ONE constant, `IW.GAME_NAME` in `js/core.js`), the air entry in the Midnight Ops war series: a single-player campaign of carrier-fighter missions over the sea and the islands, flown from a third-person chase camera (three.js r187 with the r128 compatibility layer from `/lib/three/`, plus `../autores.js`; Web Audio; no Firebase, nothing online). **Preview gate:** like Midnight Ops, `window.IW_PREVIEW = true` at the top of `index.html` lets the game run only in a browser holding `ironwing:preview` = `1` (set by the "Ironwing (preview)" button on the admin page); without it the page says "Not available yet" and loads none of the game. While the preview is on, every mission is open for testing (`IW.unlocked`); set `IW_PREVIEW` to false to open the game, which also turns on the normal unlock order and play-time counting (`stats.js`), and then give it its card, phone row and What's new entry. **Missions** (`js/missions/`, registered as data with `IW.missions.register({id, num, title, kind, line, mood, briefing, loadout: {bombs, rockets}, build(M, data), setup(M, cp, data), medals})`, the same shape as Midnight Ops'): 0 **Flight School** (training: catapult launch from the carrier Resolute, five ring gates, four target drones, a practice raft to bomb, land back aboard), 1 **Dawn Strike** (carrier strike: sink two destroyers of a flotilla steaming west, a cruiser for the bonus, fighters overhead), 2 **Hold the Atoll** (base defence: scramble from Kestrel Field and break up three raids of level and dive bombers with escorts; the base is lost under 35% integrity), 3 **Fleet Shield** (fleet defence: torpedo bombers low from the west, dive bombers from the clouds, then both; keep the Resolute afloat), 4 **Fire on Kalder Reef** (base attack at sunset: fuel tanks, radar mast and heavy flak, fighters scrambling from the runway, then home to land). The script API is `M.obj/done/lose/when/after/say/checkpoint/fail/complete`; `M.ship()` and `M.structure()` spawn things that stay destroyed when a checkpoint is restored (each has a `uid`, and the checkpoint keeps the list of uids destroyed so far); three medal goals give gold, silver or bronze. To add a mission, copy one in `js/missions/`, give it the next `num`, and add its `