roamwright 0.61.25 → 0.61.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/examples/troops.html +56 -0
- package/examples/troops.js +309 -0
- package/geometry/crater-profile.js +27 -0
- package/geometry/ground-drape.js +220 -0
- package/geometry/index.js +171 -0
- package/geometry/plant-tuft.js +68 -1
- package/geometry/room-halls.js +244 -0
- package/geometry/ruins-crater.js +2 -5
- package/geometry/ruins-rubble.js +28 -0
- package/geometry/scatter-instances.js +103 -0
- package/index.js +6 -450
- package/math/index.js +8 -0
- package/motion/index.js +100 -0
- package/motion/troop-director.js +482 -0
- package/motion/troop-volleys.js +197 -0
- package/package.json +1 -1
- package/rendering/ground-drape.js +267 -0
- package/rendering/index.js +178 -0
- package/rendering/paved-ground.js +7 -1
- package/rendering/scatter-instances.js +151 -1
- package/rendering/troop-director.js +374 -0
- package/rendering/troop-mounts.js +326 -0
- package/rendering/troop-standards.js +259 -0
- package/rendering/troop-volleys.js +143 -0
- package/runtime/index.js +95 -0
- package/runtime/lazy-sets.js +69 -0
package/index.js
CHANGED
|
@@ -1,457 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Public entry points of Roamwright, grouped by subsystem: context and core geometry,
|
|
2
|
+
* Public entry points of Roamwright, listed by area in geometry/, math/, motion/, rendering/ and runtime/ index.js, each grouped by subsystem: context and core geometry,
|
|
3
3
|
* spaces and player motion, terrain and land baking, settlements and fortifications,
|
|
4
4
|
* vessels, figures and animals, crowds, and effects, audio and runtime helpers.
|
|
5
5
|
* Import these names directly from `roamwright`, or import specialized modules by subpath.
|
|
6
6
|
* @module
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
createMatchingRenderTarget,
|
|
15
|
-
describeRenderTargetFormat,
|
|
16
|
-
isUnsignedFloatInternalFormat,
|
|
17
|
-
} from './rendering/target-format.js';
|
|
18
|
-
export { createPipelineWarmup } from './rendering/warm-pipelines.js';
|
|
19
|
-
export { createNextTask } from './runtime/next-task.js';
|
|
20
|
-
export { createDaylightSky, createSkyPanorama, createSkyTexture } from './rendering/daylight-sky.js';
|
|
21
|
-
export { bindKeyboardOrbit, createOrbitCamera } from './rendering/orbit-camera.js';
|
|
22
|
-
export { createDayCycle, luminanceOf } from './rendering/day-cycle.js';
|
|
23
|
-
export { DEFAULT_DAY_CYCLE, DEFAULT_SKY_PALETTE } from './rendering/day-cycle-defaults.js';
|
|
24
|
-
export { createSurfaceMaterialFactory } from './rendering/surface-material.js';
|
|
25
|
-
export { createClothMaterial } from './rendering/cloth-material.js';
|
|
26
|
-
export { createFacadeGlassMaterial, DEFAULT_ROOM_SHADE } from './rendering/facade-glass-material.js';
|
|
27
|
-
export { createStainMaterial } from './rendering/stain-material.js';
|
|
28
|
-
export { createNoise } from './math/noise.js';
|
|
29
|
-
export { mulberry32 } from './math/random.js';
|
|
30
|
-
export { GB as GeometryBuilder, geometryOf } from './geometry/builder.js';
|
|
31
|
-
export { stillMesh } from './geometry/still-mesh.js';
|
|
32
|
-
export { createUnitShapes, createFigureUnitShapes } from './geometry/primitives.js';
|
|
33
|
-
|
|
34
|
-
// ── Spaces & player motion ───────────────────────────────────────────────
|
|
35
|
-
export { createSpaces } from './motion/spaces.js';
|
|
36
|
-
export { createTriangleHeightField } from './motion/triangle-height-field.js';
|
|
37
|
-
export { createPlayer } from './motion/player.js';
|
|
38
|
-
|
|
39
|
-
// ── Terrain & land baking ────────────────────────────────────────────────
|
|
40
|
-
export { createLandSheet } from './geometry/land-sheet.js';
|
|
41
|
-
export { createLandBake } from './runtime/land-bake.js';
|
|
42
|
-
export { createLandWaters } from './geometry/land-waters.js';
|
|
43
|
-
export { createEarthworks } from './geometry/land-earthworks.js';
|
|
44
|
-
export { createDitchedGround } from './geometry/land-ditches.js';
|
|
45
|
-
export { createMoundFaces } from './geometry/land-mound-faces.js';
|
|
46
|
-
export { createTownGround } from './geometry/land-town-ground.js';
|
|
47
|
-
export { createDryBasin } from './geometry/land-dry-basin.js';
|
|
48
|
-
export { landEdgeGrid } from './geometry/land-edge.js';
|
|
49
|
-
export { createSimpleWater } from './rendering/water-simple.js';
|
|
50
|
-
export { rockSheet } from './geometry/creased-sheet.js';
|
|
51
|
-
export { createStrataCliffs } from './rendering/strata-cliffs.js';
|
|
52
|
-
export { planTalusStones } from './geometry/strata-talus.js';
|
|
53
|
-
export { meshTalusStones } from './rendering/strata-talus.js';
|
|
54
|
-
export {
|
|
55
|
-
OUTCROP_SEEDS,
|
|
56
|
-
OUTCROP_SHAPE,
|
|
57
|
-
SCREE_STONE_FORMS,
|
|
58
|
-
WORN_STONE_FOOT,
|
|
59
|
-
WORN_STONE_FORMS,
|
|
60
|
-
beddedOutcrop,
|
|
61
|
-
cragRock,
|
|
62
|
-
createCragLibrary,
|
|
63
|
-
createRockShapes,
|
|
64
|
-
fallenStone,
|
|
65
|
-
flatQuad,
|
|
66
|
-
jointed,
|
|
67
|
-
wornStone,
|
|
68
|
-
} from './geometry/strata-rocks.js';
|
|
69
|
-
export { MESA_CLIFF, buildMesaCliff } from './geometry/strata-mesa.js';
|
|
70
|
-
export { HILL_RUIN, buildHillRuin } from './geometry/ruins-hill.js';
|
|
71
|
-
export { MOUND_RUINS, buildMoundRuins, buildMoundSherds, buildMoundWalls, createMoundRuins } from './geometry/ruins-mound.js';
|
|
72
|
-
export { MOUND_RUINS_LOD, raiseMoundRuins, registerMoundRuins } from './rendering/ruins-mound.js';
|
|
73
|
-
export { RUBBLE_HEAP, RUBBLE_SCATTER, buildRubbleHeap, scatterRubble } from './geometry/ruins-rubble.js';
|
|
74
|
-
export { RUIN_WALL, buildRuinWall, coursedWall, tumbleBlock } from './geometry/ruins-walls.js';
|
|
75
|
-
export {
|
|
76
|
-
ASHLAR_COURSE,
|
|
77
|
-
COLUMN_DRUM,
|
|
78
|
-
MASONRY_METAL,
|
|
79
|
-
buildAshlarWall,
|
|
80
|
-
buildColumnDrum,
|
|
81
|
-
buildFlagstones,
|
|
82
|
-
buildLampStandGeometry,
|
|
83
|
-
buildWallLanternGeometry,
|
|
84
|
-
} from './geometry/ruins-masonry.js';
|
|
85
|
-
export {
|
|
86
|
-
LIGHT_POOL,
|
|
87
|
-
addLampStand,
|
|
88
|
-
addLightPool,
|
|
89
|
-
addStillPool,
|
|
90
|
-
addWallLantern,
|
|
91
|
-
createLightPoolTexture,
|
|
92
|
-
} from './rendering/ruins-fittings.js';
|
|
93
|
-
export { DEFAULT_SCORCH_PALETTE, addEmberSkin, buildBreachFan, buildRubbleMound } from './geometry/ruins-breach.js';
|
|
94
|
-
export { CRATER_PALETTE, buildCraterBowl, buildFallenBoulder } from './geometry/ruins-crater.js';
|
|
95
|
-
export { createShapeBatches } from './geometry/instances.js';
|
|
96
|
-
export { planStreamBanks } from './geometry/stream-banks.js';
|
|
97
|
-
export { meshStreamBanks } from './rendering/stream-banks.js';
|
|
98
|
-
export { SPRING_COLOURS, SPRING_HEAD, planSpringRocks, planSprings, springFrame, springWetGround } from './geometry/stream-springs.js';
|
|
99
|
-
export { meshSprings } from './rendering/stream-springs.js';
|
|
100
|
-
export { planShoreReeds } from './geometry/shore-reeds.js';
|
|
101
|
-
export { roadRibbon } from './geometry/road-ribbon.js';
|
|
102
|
-
export { bridgeSpanPath, bridgeSpanPaths, planBridgeFrame, planRoadBridges } from './geometry/road-bridges.js';
|
|
103
|
-
export { layRoads } from './rendering/road-ribbons.js';
|
|
104
|
-
export {
|
|
105
|
-
AVENUE_CEDAR,
|
|
106
|
-
PAVED_ROAD,
|
|
107
|
-
avenueBoleRadius,
|
|
108
|
-
buildAvenueCedar,
|
|
109
|
-
buildFarRoadPaving,
|
|
110
|
-
buildRoadArch,
|
|
111
|
-
buildRoadMilestones,
|
|
112
|
-
buildRoadPaving,
|
|
113
|
-
planRoadAvenue,
|
|
114
|
-
roadLine,
|
|
115
|
-
} from './geometry/paved-road.js';
|
|
116
|
-
export { createAvenueHandover, farRoadPavingMaterial, layPavedRoad, layRoadAvenue } from './rendering/paved-road.js';
|
|
117
|
-
export { PAVED_GROUND_LIMITS, createPavedGroundMaterial } from './rendering/paved-ground.js';
|
|
118
|
-
export { createRoadTraffic, ROAD_TRAFFIC } from './motion/road-traffic.js';
|
|
119
|
-
export { createFieldSurvey, FIELD_SURVEY, FIELD_USE } from './geometry/field-survey.js';
|
|
120
|
-
export { FIELD_BITS, NO_PATH_DISTANCE, createFieldCoverCache, packFieldBits, packSparsePlain } from './geometry/field-map.js';
|
|
121
|
-
export { DEFAULT_FLOWER_LOOKS, FLOWER_KINDS, TUFT_SHAPE, tuftGeometry } from './geometry/plant-tuft.js';
|
|
122
|
-
export { TUFT_SHADER, createGrassTuft, createTuftMaterial } from './rendering/plant-tuft.js';
|
|
123
|
-
export { LAND_TRAILS, LAND_TRAIL_MARKS, boundsOverlap, createLandTrails, rasterizeTrailMarks } from './geometry/land-trails.js';
|
|
124
|
-
export { createTrailMarks, trailMarksGLSL } from './rendering/land-trail-surface.js';
|
|
125
|
-
export { createIrrigatedFields, IRRIGATED_FIELDS } from './geometry/irrigated-fields.js';
|
|
126
|
-
export { DEFAULT_CROP_STANDS, FARM_CROPS, createCropPlacer } from './geometry/farm-crops.js';
|
|
127
|
-
export { createIrrigatedFieldSurface, IRRIGATED_FIELD_KIND, IRRIGATED_FIELD_SURFACE } from './rendering/irrigated-field-surface.js';
|
|
128
|
-
export { DRYSTONE_WALL, FIELD_STONE, drystoneStone, planDrystoneWall } from './geometry/drystone-wall.js';
|
|
129
|
-
export { DEFAULT_FENCE_STYLE, addFenceRing, buildFenceRing } from './geometry/timber-fence.js';
|
|
130
|
-
export { planScatterInstances } from './geometry/scatter-instances.js';
|
|
131
|
-
export { scatterInstances, scatterTrees, scatterTussocks } from './rendering/scatter-instances.js';
|
|
132
|
-
export { FARM_BOUNDARIES, planFieldBoundaries } from './geometry/farm-boundaries.js';
|
|
133
|
-
export { meshFarmCells, scatterFarmLots } from './rendering/farm-cells.js';
|
|
134
|
-
export { DEFAULT_LIVESTOCK_CASTS, createLivestockCache } from './rendering/farm-livestock.js';
|
|
135
|
-
export {
|
|
136
|
-
DEFAULT_OX_COATS,
|
|
137
|
-
DEFAULT_PLOUGHMAN_LOOK,
|
|
138
|
-
PLOUGHMAN_SEEN_DISTANCE,
|
|
139
|
-
PLOUGHMAN_STANCE,
|
|
140
|
-
buildPloughman,
|
|
141
|
-
createPloughTeam,
|
|
142
|
-
posePloughman,
|
|
143
|
-
} from './rendering/farm-plough.js';
|
|
144
|
-
export { DEFAULT_FARM_HERDS, FARM_LIFE, herdPlaces, parcelPlaces, planFarmLife, ploughSite } from './geometry/farm-life.js';
|
|
145
|
-
export { STOOK, createStook } from './geometry/prop-stook.js';
|
|
146
|
-
export { PLOUGH, ploughGear } from './geometry/prop-plough.js';
|
|
147
|
-
export { FARM_BARN_DOORS, FARM_HAYSTACK, FARM_STONE_PILE, buildBarnDoors, buildHaystacks, buildStonePile } from './geometry/farm-props.js';
|
|
148
|
-
|
|
149
|
-
// ── Settlements, houses, fortifications & interiors ──────────────────────
|
|
150
|
-
export { createHouseKit } from './geometry/house-kit.js';
|
|
151
|
-
export { createHouseKitMaterials, createHouseKitMeshes } from './rendering/house-kit-meshes.js';
|
|
152
|
-
export { createPooledKit } from './geometry/house-kit-pool.js';
|
|
153
|
-
export { createQuarterStream } from './rendering/settlement-quarter.js';
|
|
154
|
-
export { createTowns } from './rendering/settlement-town.js';
|
|
155
|
-
export { createSettlementApproach } from './rendering/settlement-approach.js';
|
|
156
|
-
export { createSettlementSwitch } from './rendering/settlement-switch.js';
|
|
157
|
-
export { createRegionPass } from './runtime/region-pass.js';
|
|
158
|
-
export { createRegionPasses } from './runtime/region-pass-lay.js';
|
|
159
|
-
export { layVillage } from './geometry/village-layout.js';
|
|
160
|
-
export { TOWN_CELL, districtAt, layTown, rectFree, stampArea, stampDisc, stampLine, stampRect, townPlan } from './geometry/town-plan.js';
|
|
161
|
-
export { townLots } from './geometry/town-lots.js';
|
|
162
|
-
export { paintTown } from './geometry/town-ground.js';
|
|
163
|
-
export { createTownHouses } from './geometry/town-houses.js';
|
|
164
|
-
export { ARCADE_BAY, ARCADE_WALK, createTownWorks, townFacing } from './geometry/town-works.js';
|
|
165
|
-
export { createTownLights, distantTownLights } from './geometry/town-lights.js';
|
|
166
|
-
export { createCourtyardInn } from './geometry/town-courtyard-inn.js';
|
|
167
|
-
export { alongRim, createTownGarden } from './geometry/town-garden.js';
|
|
168
|
-
export { createGardenPlantShapes, createPlantList, GARDEN_PLANT_LOBES, GARDEN_PLANT_SEEN } from './geometry/plant-garden.js';
|
|
169
|
-
export { createGardenPlants } from './rendering/plant-garden.js';
|
|
170
|
-
export { CITY_GLOW_FALLOFF, createCityGlow, createStreetLampNight, createStreetLamps } from './rendering/street-lamps.js';
|
|
171
|
-
export { createLampLightMap } from './rendering/lamp-light-map.js';
|
|
172
|
-
export { createCityLamplight, createNearestLampMaps, lampMapTexture } from './rendering/lamp-maps.js';
|
|
173
|
-
export { createWallRuns } from './geometry/wall-runs.js';
|
|
174
|
-
export {
|
|
175
|
-
addBattlement,
|
|
176
|
-
addMerlonRow,
|
|
177
|
-
addPortcullis,
|
|
178
|
-
addRadialMerlons,
|
|
179
|
-
addRampDeck,
|
|
180
|
-
addRoundTower,
|
|
181
|
-
wallGateFrames,
|
|
182
|
-
} from './geometry/fort-parts.js';
|
|
183
|
-
export { createGreatWalls, greatGateMouth } from './geometry/fort-great-walls.js';
|
|
184
|
-
export { createCityFortification } from './geometry/fort-city-walls.js';
|
|
185
|
-
export { buildPortalGateway, portalGatewayLights } from './geometry/fort-portal.js';
|
|
186
|
-
export {
|
|
187
|
-
addCrenelRun,
|
|
188
|
-
addDressedSlit,
|
|
189
|
-
buildArchedKeepDoor,
|
|
190
|
-
buildFlaggedWallWalk,
|
|
191
|
-
buildFlaredRoundTower,
|
|
192
|
-
buildKeepCitadel,
|
|
193
|
-
buildKeepTowers,
|
|
194
|
-
} from './geometry/fort-keep.js';
|
|
195
|
-
export { buildRingCurtain, buildRingFortification, buildRingGate, buildRingTower } from './geometry/fort-ring-wall.js';
|
|
196
|
-
export { buildPolylineWall, buildWallCulverts } from './geometry/fort-polyline.js';
|
|
197
|
-
export { buildGateApron, buildGateCauseway } from './geometry/fort-gate-approach.js';
|
|
198
|
-
export { createSeawall } from './geometry/fort-seawall.js';
|
|
199
|
-
export { TERRACE_DEFAULTS, createTerraceFrame, planTerrace, wallAt } from './geometry/fort-terrace-plan.js';
|
|
200
|
-
export { createTerraceWall } from './geometry/fort-terrace-wall.js';
|
|
201
|
-
export { createTerraceGates } from './geometry/fort-terrace-gates.js';
|
|
202
|
-
export { createRoomKit } from './geometry/room-kit.js';
|
|
203
|
-
export { createRoomMaterials } from './rendering/room-materials.js';
|
|
204
|
-
export { finishRoom } from './rendering/room-space.js';
|
|
205
|
-
|
|
206
|
-
// ── Vessels ──────────────────────────────────────────────────────────────
|
|
207
|
-
export { CRANE_EDGE, HARBOUR_WATERFRONT, craneX, createHarbourKit, quayDeck } from './geometry/harbour-kit.js';
|
|
208
|
-
export { createShipKit } from './geometry/ship-kit.js';
|
|
209
|
-
export { SHIP_PRESETS } from './geometry/ship-presets.js';
|
|
210
|
-
export { createShipMeshes } from './rendering/ship-meshes.js';
|
|
211
|
-
|
|
212
|
-
// ── Figures, animals & fliers ────────────────────────────────────────────
|
|
213
|
-
export { createFigureBuilder } from './geometry/figure-body.js';
|
|
214
|
-
export { createFigureAssembler } from './rendering/figure-skeleton.js';
|
|
215
|
-
export { createShields } from './rendering/figure-shield.js';
|
|
216
|
-
export { createBodyOrders } from './runtime/figure-orders.js';
|
|
217
|
-
export { createFigurePose, figureActor } from './motion/figure-pose.js';
|
|
218
|
-
export { actorNameSeed, createCastActor, extractFigureParts } from './motion/cast-actors.js';
|
|
219
|
-
export { createCastManager } from './motion/cast-manager.js';
|
|
220
|
-
export { createCastStage, createStandIn, uploadCastMeshes, warmFigureShaders } from './rendering/cast-stage.js';
|
|
221
|
-
export { createNameplateGroups } from './rendering/nameplate-groups.js';
|
|
222
|
-
export { createNameplates, renderNameplateCanvas, wrapSubtitle } from './rendering/nameplates.js';
|
|
223
|
-
export { rigHorse } from './rendering/animal-horse-figure.js';
|
|
224
|
-
export { buildCattle } from './rendering/animal-cattle-figure.js';
|
|
225
|
-
export { buildCamel } from './rendering/animal-camel-figure.js';
|
|
226
|
-
export { buildCanine } from './rendering/animal-canine-figure.js';
|
|
227
|
-
export { catBodies, catRig } from './geometry/animal-cat-body.js';
|
|
228
|
-
export { horsePose } from './motion/animal-bearing.js';
|
|
229
|
-
export { caninePose } from './motion/animal-canine-bearing.js';
|
|
230
|
-
export { catPose } from './motion/animal-cat-bearing.js';
|
|
231
|
-
export { herdArrays } from './motion/animal-herd-cast.js';
|
|
232
|
-
export { createFlierShapes, createSwarm, FLY_WINGS } from './rendering/flier-swarm.js';
|
|
233
|
-
export { CARPET_LEVELS, canineStrideSteps, createCanineStrideCast, createCarpetSwarm } from './rendering/flier-carpet.js';
|
|
234
|
-
export { FLY_LOOK, flyShape } from './geometry/flier-shapes.js';
|
|
235
|
-
export {
|
|
236
|
-
ANT_LOOK,
|
|
237
|
-
BEETLE_LOOK,
|
|
238
|
-
RAT_LOOK,
|
|
239
|
-
SNAKE_LOOK,
|
|
240
|
-
SPIDER_LOOK,
|
|
241
|
-
antGeometry,
|
|
242
|
-
beetleGeometry,
|
|
243
|
-
ratGeometry,
|
|
244
|
-
snakeGeometry,
|
|
245
|
-
spiderGeometry,
|
|
246
|
-
} from './geometry/crawl-shapes.js';
|
|
247
|
-
export { GIANT_SPIDER_GAIT, GIANT_SPIDER_LOOK, giantSpiderMoment, giantSpiderMoments } from './geometry/crawler-giant-spider.js';
|
|
248
|
-
export { CRAWLER_PACK_DEFAULTS, createCrawlerPackMotion } from './motion/crawler-pack.js';
|
|
249
|
-
export { createCrawlerPack, createGiantSpiderPack } from './rendering/crawler-pack.js';
|
|
250
|
-
export { createCrawlFlight } from './motion/flier-swarm-flight.js';
|
|
251
|
-
export { CARPET_DEFAULTS, createCarpetFlight } from './motion/flier-carpet-flight.js';
|
|
252
|
-
export { createLampSwarmFlight, pickNearestAnchors } from './motion/flier-lamp-swarm.js';
|
|
253
|
-
export { createEchelonFlight, createEchelonPatrol } from './motion/flier-flight-echelon.js';
|
|
254
|
-
export { createLandAirFlight, fitGridSpots } from './motion/flier-flight-air.js';
|
|
255
|
-
export { bindFlockOrbit, createFlockCloud, pickHearthSites } from './motion/flier-flight-roost.js';
|
|
256
|
-
export { updateNearGroups } from './rendering/detail-range.js';
|
|
257
|
-
export { createPenFlocks, packPenAnimals } from './rendering/pen-flocks.js';
|
|
258
|
-
export { createLongFlierCompany } from './rendering/flier-long-body-company.js';
|
|
259
|
-
export { createCorvidFigure } from './rendering/flier-corvid-figure.js';
|
|
260
|
-
export { corvidPose } from './motion/flier-corvid-pose.js';
|
|
261
|
-
|
|
262
|
-
// ── Crowds ───────────────────────────────────────────────────────────────
|
|
263
|
-
export { buildCrowdLook, createCrowdLookBuilder } from './geometry/crowd-look.js';
|
|
264
|
-
export { farCrowdFigure } from './geometry/crowd-far.js';
|
|
265
|
-
export { CrowdFigure } from './motion/crowd-figure.js';
|
|
266
|
-
export { createCrowdPoser, crowdMotion, crowdPose } from './motion/crowd-pose.js';
|
|
267
|
-
export { grazeRound } from './motion/crowd-herd.js';
|
|
268
|
-
export { createStreetBeasts } from './motion/crowd-beasts.js';
|
|
269
|
-
export { createCampGrid, planCampWalkers } from './motion/crowd-camp.js';
|
|
270
|
-
export { planCrewAtStations, planTownsfolk } from './motion/crowd-town.js';
|
|
271
|
-
export { driveToWater, trekToWater, waterNear } from './motion/crowd-water.js';
|
|
272
|
-
export { createCrowdVisibility } from './rendering/crowd-visibility.js';
|
|
273
|
-
export { createHerdRenderer, createHerdSkins } from './rendering/crowd-herd.js';
|
|
274
|
-
export {
|
|
275
|
-
DEFAULT_BEARERS,
|
|
276
|
-
DEFAULT_BY_ROLE,
|
|
277
|
-
DEFAULT_CROWD_HAIR,
|
|
278
|
-
DEFAULT_CROWD_LOOKS,
|
|
279
|
-
DEFAULT_CROWD_SKINS,
|
|
280
|
-
DEFAULT_SOLDIER_BEARER,
|
|
281
|
-
DEFAULT_UNIFORMS,
|
|
282
|
-
bakeCrowdWalks,
|
|
283
|
-
createCrowdBatches,
|
|
284
|
-
createLookPicker,
|
|
285
|
-
} from './rendering/crowd-batches.js';
|
|
286
|
-
export { createCrowdUpdater, registerCrowd } from './rendering/crowd-update.js';
|
|
287
|
-
export { createCrowdLifecycle } from './rendering/crowd-lifecycle.js';
|
|
288
|
-
export { ContactShadows, createFootShadows } from './rendering/contact-shadows.js';
|
|
289
|
-
export { createCrowdSystem } from './rendering/crowd-system.js';
|
|
290
|
-
|
|
291
|
-
// ── Effects, audio, pacing & runtime ─────────────────────────────────────
|
|
292
|
-
export { DEFAULT_PARTICLE_LOOK, createParticleNoiseTexture, createParticleSystem } from './rendering/particles.js';
|
|
293
|
-
export { createFireLightWatch } from './rendering/fire-light-watch.js';
|
|
294
|
-
export { createEffectsFrame, syncEffectsUniforms } from './rendering/effects-frame.js';
|
|
295
|
-
export { createRippleRingMaterial, createWaterRises, fishGeometry } from './rendering/effects-water-rises.js';
|
|
296
|
-
export { STORM_WALL_DEFAULTS, stormWallArrays } from './geometry/storm-wall.js';
|
|
297
|
-
export { STORM_WALL_COLORS, createStormWall, stormWallGeometry, stormWallNoise } from './rendering/storm-wall.js';
|
|
298
|
-
export { createPracticalFlame, createSceneLights } from './rendering/scene-lights.js';
|
|
299
|
-
export { createSiteSchedule } from './runtime/effect-sites.js';
|
|
300
|
-
export { createSoundscape } from './runtime/soundscape.js';
|
|
301
|
-
export { createStrideFoley } from './runtime/foley-strides.js';
|
|
302
|
-
export { createScriptFoley } from './runtime/foley-script.js';
|
|
303
|
-
export { createPool } from './runtime/pool.js';
|
|
304
|
-
export { describeDevice, readDevice } from './runtime/device.js';
|
|
305
|
-
export { choosePostPipeline, createDeviceQuality, groundRenderOrder, resolveDevicePresets } from './runtime/device-quality.js';
|
|
306
|
-
export { LEVELS, createQualityStore } from './runtime/quality-store.js';
|
|
307
|
-
export { createQualityFit } from './runtime/quality-fit.js';
|
|
308
|
-
export { createSteadyFrames } from './runtime/steady-frames.js';
|
|
309
|
-
export { createFramePacingMonitor } from './runtime/frame-pacing.js';
|
|
310
|
-
export { createPerfWatch, formatLongFrameAttribution, formatLongFrameMessage } from './runtime/perf-watch.js';
|
|
311
|
-
export { createPerfBoxState, formatPerfBoxLines } from './runtime/perf-box-text.js';
|
|
312
|
-
export { createPerfBox } from './rendering/perf-box.js';
|
|
313
|
-
export { PERF_BOX_DEFAULTS, attachPerfBoxWorker, createPerfBoxRenderer } from './rendering/perf-box-worker.js';
|
|
314
|
-
export { createFrameSampler } from './runtime/perf-probe.js';
|
|
315
|
-
export { flyProbeRoute, runSelfProbe } from './rendering/perf-probe.js';
|
|
316
|
-
|
|
317
|
-
// ── Scene playback, melee, projectiles, beams, props & markers ───────────
|
|
318
|
-
export {
|
|
319
|
-
DEFAULT_CUTS,
|
|
320
|
-
DEFAULT_CUT_STYLES,
|
|
321
|
-
DEFAULT_DODGE_STEP,
|
|
322
|
-
MELEE_MEET,
|
|
323
|
-
MELEE_THRU,
|
|
324
|
-
SPEAR_ACROSS,
|
|
325
|
-
SPEAR_PARRY,
|
|
326
|
-
deathOf,
|
|
327
|
-
dodgeBody,
|
|
328
|
-
dodgeOf,
|
|
329
|
-
parryBody,
|
|
330
|
-
pickCut,
|
|
331
|
-
swingBody,
|
|
332
|
-
swingRow,
|
|
333
|
-
woundBody,
|
|
334
|
-
woundDrive,
|
|
335
|
-
} from './motion/melee-cuts.js';
|
|
336
|
-
export { createBladeTrailPool } from './rendering/blade-trails.js';
|
|
337
|
-
export { fellMount, raiseFallenMount, updateFallenMount } from './motion/fallen-mount.js';
|
|
338
|
-
export { createMeleeDuels } from './motion/melee-duels.js';
|
|
339
|
-
export { createMeleeReactions } from './motion/melee-reactions.js';
|
|
340
|
-
export { createMeleeExchanges, flankOf, sideOn } from './motion/melee-exchange.js';
|
|
341
|
-
export {
|
|
342
|
-
AT_HORSE_GAP,
|
|
343
|
-
BODY_GAP,
|
|
344
|
-
DEFAULT_WEAPON_LENGTHS,
|
|
345
|
-
HORSES_GAP,
|
|
346
|
-
RIDER_GAP,
|
|
347
|
-
addBattleWear,
|
|
348
|
-
createSceneCombat,
|
|
349
|
-
duelMeasure,
|
|
350
|
-
fightFx,
|
|
351
|
-
horseGap,
|
|
352
|
-
resetBattleWear,
|
|
353
|
-
strikeReach,
|
|
354
|
-
} from './motion/melee-combat.js';
|
|
355
|
-
export { buildArrowGeometry, buildKnifeGeometry, buildQuarrelGeometry } from './geometry/projectile-shapes.js';
|
|
356
|
-
export { createProjectilePool } from './rendering/scene-projectiles.js';
|
|
357
|
-
export { DEFAULT_BEAM_COLORS, DEFAULT_BEAM_STYLE, DEFAULT_BEAM_STYLES, createEnergyBeams } from './rendering/scene-beams.js';
|
|
358
|
-
export { applyBurstWear, resolveScenePos, resolveSceneY, stepRidesProp, stepWalksOn } from './runtime/scene-script.js';
|
|
359
|
-
export { DEFAULT_ZONE_STRIDE, captionIndexAt, collectSceneZones, prepareSceneZones, resolveSceneAnchor } from './runtime/scene-zones.js';
|
|
360
|
-
export { createSurfaceClassifier } from './runtime/foley-surface.js';
|
|
361
|
-
export { DEFAULT_POSE_SHOTS, actorHeadTop, createSceneCoverage } from './rendering/scene-coverage.js';
|
|
362
|
-
export { createSceneShots, gallopTremorLevel, protectMasterHeadroom, trackOrigin } from './rendering/scene-shots.js';
|
|
363
|
-
export { createPropContact } from './motion/prop-contact.js';
|
|
364
|
-
export { createSceneProps } from './rendering/scene-props.js';
|
|
365
|
-
export { createSceneFlash } from './rendering/scene-flash.js';
|
|
366
|
-
export { createSceneMarkers, createShaftLabel, DEFAULT_MARKER_COLORS, projectWaypoint } from './rendering/scene-markers.js';
|
|
367
|
-
|
|
368
|
-
// ── Map kit ──────────────────────────────────────────────────────────────
|
|
369
|
-
export {
|
|
370
|
-
clampViewCenter,
|
|
371
|
-
clusterMapPoints,
|
|
372
|
-
fitMapDimensions,
|
|
373
|
-
frameMapSheet,
|
|
374
|
-
pickMapHit,
|
|
375
|
-
rectUnionOutline,
|
|
376
|
-
sheetMaxZoom,
|
|
377
|
-
sheetMinZoom,
|
|
378
|
-
} from './runtime/map-view.js';
|
|
379
|
-
export { COMPASS_WINDS, describeMapSpot, findLandAtAtlas, formatSpotCard, isOnLand, landOffCentre } from './runtime/map-spot.js';
|
|
380
|
-
export {
|
|
381
|
-
brokenCoast,
|
|
382
|
-
buildAtlasMarks,
|
|
383
|
-
rangePeaks,
|
|
384
|
-
routeLength,
|
|
385
|
-
routeMidpoint,
|
|
386
|
-
scatterReliefMarks,
|
|
387
|
-
shadeTerrainPixel,
|
|
388
|
-
} from './runtime/map-relief.js';
|
|
389
|
-
export {
|
|
390
|
-
DEFAULT_MAP_FONT,
|
|
391
|
-
MAP_COLORS,
|
|
392
|
-
MAP_GLYPHS,
|
|
393
|
-
drawDune,
|
|
394
|
-
drawMapArch,
|
|
395
|
-
drawMapCompass,
|
|
396
|
-
drawMapDisc,
|
|
397
|
-
drawMapGlyph,
|
|
398
|
-
drawMapLabel,
|
|
399
|
-
drawMapNote,
|
|
400
|
-
drawMapPoly,
|
|
401
|
-
drawMapScaleBar,
|
|
402
|
-
drawPeak,
|
|
403
|
-
drawTree,
|
|
404
|
-
} from './rendering/map-glyphs.js';
|
|
405
|
-
export { createMapLabelSet, spacedCaps, turnAlongLine } from './rendering/map-labels.js';
|
|
406
|
-
export { paintMapPick, paintMapVisitor } from './rendering/map-signs.js';
|
|
407
|
-
export { createAtlasRelief, paintTerrainSheet } from './rendering/map-relief.js';
|
|
408
|
-
export { bindMapInput, fitMapCanvas } from './rendering/map-input.js';
|
|
409
|
-
|
|
410
|
-
// ── Controls, HUD & wayfinding ───────────────────────────────────────────
|
|
411
|
-
export { createStageFrame } from './runtime/stage-frame.js';
|
|
412
|
-
export { createWorldControls } from './runtime/world-controls.js';
|
|
413
|
-
export { COMPASS_POINTS, compassStripHtml, createCompassStrip } from './runtime/compass-strip.js';
|
|
414
|
-
export { createWayBack } from './runtime/way-back.js';
|
|
415
|
-
export { createHudFrame, formatDayClock } from './runtime/hud-frame.js';
|
|
416
|
-
export { createHudRoom } from './runtime/hud-room.js';
|
|
417
|
-
export {
|
|
418
|
-
ARTICLE_LINK,
|
|
419
|
-
collectArticleLinks,
|
|
420
|
-
createArticleCatalog,
|
|
421
|
-
formatArticleText,
|
|
422
|
-
parseArticle,
|
|
423
|
-
plainArticleParagraph,
|
|
424
|
-
} from './runtime/articles.js';
|
|
425
|
-
export { createArticlePageRenderer, escapeHtml, renderArticleParagraph } from './runtime/article-page.js';
|
|
426
|
-
export { createJourneyStore } from './runtime/journey.js';
|
|
427
|
-
export { createSitePages, slugify } from './runtime/site-pages.js';
|
|
428
|
-
export {
|
|
429
|
-
DEFAULT_BACKDROP_RANGES,
|
|
430
|
-
DEFAULT_BACKDROP_SKY,
|
|
431
|
-
DEFAULT_BACKDROP_VEIL,
|
|
432
|
-
applyBackdropFinish,
|
|
433
|
-
createCanvasSprite,
|
|
434
|
-
createTitleBackdrop,
|
|
435
|
-
paintCumulusSprite,
|
|
436
|
-
paintMountainRange,
|
|
437
|
-
paintSkyGradient,
|
|
438
|
-
ridgeNoise,
|
|
439
|
-
} from './rendering/title-backdrop.js';
|
|
440
|
-
export {
|
|
441
|
-
COMPASS_CARDINALS,
|
|
442
|
-
DEFAULT_PLACE_KINDS,
|
|
443
|
-
bearingOf,
|
|
444
|
-
createWhereabouts,
|
|
445
|
-
distanceText,
|
|
446
|
-
inSentence,
|
|
447
|
-
roundedDistance,
|
|
448
|
-
} from './runtime/whereabouts.js';
|
|
449
|
-
export { createUrlRouter, defaultSlug, normalizeSlash, parseRoutePath } from './runtime/url-router.js';
|
|
450
|
-
export { DEFAULT_PLACE_TAG_STYLES, DEFAULT_SMALL_TAG_STYLES, createPlaceNames } from './rendering/place-names.js';
|
|
451
|
-
export { createPanelShell, scrollItemIntoView } from './runtime/panel-shell.js';
|
|
452
|
-
export { DEFAULT_PORTRAIT_GROUND, convertPortraitPixels, createPortraitStudio } from './rendering/portrait-studio.js';
|
|
453
|
-
export { boxesOverlapOBB, placeLinkLabel, renderRelationGraph } from './runtime/relation-graph.js';
|
|
454
|
-
export { lowerQualityLevel, watchContextLost } from './runtime/context-lost.js';
|
|
455
|
-
export { extractBuildId, watchBuildFreshness } from './runtime/build-freshness.js';
|
|
456
|
-
export { pickScreenActor, pickScreenTag } from './rendering/screen-pick.js';
|
|
457
|
-
export { findClearExit, stepDoorwayTrigger } from './runtime/doorways.js';
|
|
9
|
+
export * from './rendering/index.js';
|
|
10
|
+
export * from './math/index.js';
|
|
11
|
+
export * from './geometry/index.js';
|
|
12
|
+
export * from './motion/index.js';
|
|
13
|
+
export * from './runtime/index.js';
|
package/math/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Roamwright's public math helpers, grouped by subsystem. Re-exported whole from `roamwright`.
|
|
3
|
+
* @module
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
// ── Context, math & core geometry ────────────────────────────────────────
|
|
7
|
+
export { createNoise } from './noise.js';
|
|
8
|
+
export { mulberry32 } from './random.js';
|
package/motion/index.js
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Roamwright's public motion, placement and simulation, grouped by subsystem. Re-exported whole from `roamwright`.
|
|
3
|
+
* @module
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
// ── Spaces & player motion ───────────────────────────────────────────────
|
|
7
|
+
export { createSpaces } from './spaces.js';
|
|
8
|
+
export { createTriangleHeightField } from './triangle-height-field.js';
|
|
9
|
+
export { createPlayer } from './player.js';
|
|
10
|
+
|
|
11
|
+
// ── Terrain & land baking ────────────────────────────────────────────────
|
|
12
|
+
export { createRoadTraffic, ROAD_TRAFFIC } from './road-traffic.js';
|
|
13
|
+
|
|
14
|
+
// ── Figures, animals & fliers ────────────────────────────────────────────
|
|
15
|
+
export { createFigurePose, figureActor } from './figure-pose.js';
|
|
16
|
+
export { actorNameSeed, createCastActor, extractFigureParts } from './cast-actors.js';
|
|
17
|
+
export { createCastManager } from './cast-manager.js';
|
|
18
|
+
export { horsePose } from './animal-bearing.js';
|
|
19
|
+
export { caninePose } from './animal-canine-bearing.js';
|
|
20
|
+
export { catPose } from './animal-cat-bearing.js';
|
|
21
|
+
export { herdArrays } from './animal-herd-cast.js';
|
|
22
|
+
export { CRAWLER_PACK_DEFAULTS, createCrawlerPackMotion } from './crawler-pack.js';
|
|
23
|
+
export { createCrawlFlight } from './flier-swarm-flight.js';
|
|
24
|
+
export { CARPET_DEFAULTS, createCarpetFlight } from './flier-carpet-flight.js';
|
|
25
|
+
export { createLampSwarmFlight, pickNearestAnchors } from './flier-lamp-swarm.js';
|
|
26
|
+
export { createEchelonFlight, createEchelonPatrol } from './flier-flight-echelon.js';
|
|
27
|
+
export { createLandAirFlight, fitGridSpots } from './flier-flight-air.js';
|
|
28
|
+
export { bindFlockOrbit, createFlockCloud, pickHearthSites } from './flier-flight-roost.js';
|
|
29
|
+
export { corvidPose } from './flier-corvid-pose.js';
|
|
30
|
+
|
|
31
|
+
// ── Crowds ───────────────────────────────────────────────────────────────
|
|
32
|
+
export { CrowdFigure } from './crowd-figure.js';
|
|
33
|
+
export { createCrowdPoser, crowdMotion, crowdPose } from './crowd-pose.js';
|
|
34
|
+
export { grazeRound } from './crowd-herd.js';
|
|
35
|
+
export { createStreetBeasts } from './crowd-beasts.js';
|
|
36
|
+
export { createCampGrid, planCampWalkers } from './crowd-camp.js';
|
|
37
|
+
export { planCrewAtStations, planTownsfolk } from './crowd-town.js';
|
|
38
|
+
export { driveToWater, trekToWater, waterNear } from './crowd-water.js';
|
|
39
|
+
export {
|
|
40
|
+
TROOP_ARMED_KINDS,
|
|
41
|
+
TROOP_DUST_DEFAULTS,
|
|
42
|
+
TROOP_EASE,
|
|
43
|
+
TROOP_ENGAGE_MAX_GAP,
|
|
44
|
+
TROOP_ENGAGE_TARGET_GAP,
|
|
45
|
+
TROOP_FALL_TIME,
|
|
46
|
+
TROOP_RANGED_NAME,
|
|
47
|
+
TROOP_SADDLE,
|
|
48
|
+
TROOP_SEEN_FROM,
|
|
49
|
+
TROOP_TEAM,
|
|
50
|
+
TROOP_UNSEEN,
|
|
51
|
+
applyTroopCue,
|
|
52
|
+
defaultTroopRole,
|
|
53
|
+
marchPace,
|
|
54
|
+
musterTroop,
|
|
55
|
+
refreshTroopOpponents,
|
|
56
|
+
sendTroopMember,
|
|
57
|
+
standTroop,
|
|
58
|
+
stepTroopMember,
|
|
59
|
+
troopSlot,
|
|
60
|
+
} from './troop-director.js';
|
|
61
|
+
export { TROOP_VOLLEY_DEFAULTS, createVolleyState } from './troop-volleys.js';
|
|
62
|
+
|
|
63
|
+
// ── Scene playback, melee, projectiles, beams, props & markers ───────────
|
|
64
|
+
export {
|
|
65
|
+
DEFAULT_CUTS,
|
|
66
|
+
DEFAULT_CUT_STYLES,
|
|
67
|
+
DEFAULT_DODGE_STEP,
|
|
68
|
+
MELEE_MEET,
|
|
69
|
+
MELEE_THRU,
|
|
70
|
+
SPEAR_ACROSS,
|
|
71
|
+
SPEAR_PARRY,
|
|
72
|
+
deathOf,
|
|
73
|
+
dodgeBody,
|
|
74
|
+
dodgeOf,
|
|
75
|
+
parryBody,
|
|
76
|
+
pickCut,
|
|
77
|
+
swingBody,
|
|
78
|
+
swingRow,
|
|
79
|
+
woundBody,
|
|
80
|
+
woundDrive,
|
|
81
|
+
} from './melee-cuts.js';
|
|
82
|
+
export { fellMount, raiseFallenMount, updateFallenMount } from './fallen-mount.js';
|
|
83
|
+
export { createMeleeDuels } from './melee-duels.js';
|
|
84
|
+
export { createMeleeReactions } from './melee-reactions.js';
|
|
85
|
+
export { createMeleeExchanges, flankOf, sideOn } from './melee-exchange.js';
|
|
86
|
+
export {
|
|
87
|
+
AT_HORSE_GAP,
|
|
88
|
+
BODY_GAP,
|
|
89
|
+
DEFAULT_WEAPON_LENGTHS,
|
|
90
|
+
HORSES_GAP,
|
|
91
|
+
RIDER_GAP,
|
|
92
|
+
addBattleWear,
|
|
93
|
+
createSceneCombat,
|
|
94
|
+
duelMeasure,
|
|
95
|
+
fightFx,
|
|
96
|
+
horseGap,
|
|
97
|
+
resetBattleWear,
|
|
98
|
+
strikeReach,
|
|
99
|
+
} from './melee-combat.js';
|
|
100
|
+
export { createPropContact } from './prop-contact.js';
|