@verticopolis/components 0.0.0-stage → 0.2.0
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/ASSETS-LICENSE.md +49 -0
- package/LICENSE +21 -0
- package/README.md +121 -2
- package/lib/audio/Audio.d.ts +110 -0
- package/lib/audio/Audio.js +199 -0
- package/lib/audio/Audio.js.map +1 -0
- package/lib/audio/ToneAudioEngine.d.ts +125 -0
- package/lib/audio/ToneAudioEngine.js +452 -0
- package/lib/audio/ToneAudioEngine.js.map +1 -0
- package/lib/audio/audioAssets.d.ts +25 -0
- package/lib/audio/audioAssets.js +28 -0
- package/lib/audio/audioAssets.js.map +1 -0
- package/lib/audio/awayWatch.d.ts +17 -0
- package/lib/audio/awayWatch.js +33 -0
- package/lib/audio/awayWatch.js.map +1 -0
- package/lib/audio/firstCueLatch.d.ts +18 -0
- package/lib/audio/firstCueLatch.js +34 -0
- package/lib/audio/firstCueLatch.js.map +1 -0
- package/lib/audio/lightEnvelope.d.ts +64 -0
- package/lib/audio/lightEnvelope.js +124 -0
- package/lib/audio/lightEnvelope.js.map +1 -0
- package/lib/audio/lightSynth.d.ts +125 -0
- package/lib/audio/lightSynth.js +203 -0
- package/lib/audio/lightSynth.js.map +1 -0
- package/lib/audio/toneContext.d.ts +30 -0
- package/lib/audio/toneContext.js +79 -0
- package/lib/audio/toneContext.js.map +1 -0
- package/lib/audio/toneCrowd.d.ts +62 -0
- package/lib/audio/toneCrowd.js +429 -0
- package/lib/audio/toneCrowd.js.map +1 -0
- package/lib/audio/toneCrowdData.d.ts +144 -0
- package/lib/audio/toneCrowdData.js +317 -0
- package/lib/audio/toneCrowdData.js.map +1 -0
- package/lib/audio/toneCrowdPrograms.d.ts +71 -0
- package/lib/audio/toneCrowdPrograms.js +273 -0
- package/lib/audio/toneCrowdPrograms.js.map +1 -0
- package/lib/audio/toneCrowdVoices.d.ts +49 -0
- package/lib/audio/toneCrowdVoices.js +212 -0
- package/lib/audio/toneCrowdVoices.js.map +1 -0
- package/lib/audio/toneMusicVoices.d.ts +11 -0
- package/lib/audio/toneMusicVoices.js +31 -0
- package/lib/audio/toneMusicVoices.js.map +1 -0
- package/lib/audio/tonePercussion.d.ts +45 -0
- package/lib/audio/tonePercussion.js +97 -0
- package/lib/audio/tonePercussion.js.map +1 -0
- package/lib/audio/toneRain.d.ts +23 -0
- package/lib/audio/toneRain.js +39 -0
- package/lib/audio/toneRain.js.map +1 -0
- package/lib/audio/toneRecordingMock.d.ts +89 -0
- package/lib/audio/toneRecordingMock.js +145 -0
- package/lib/audio/toneRecordingMock.js.map +1 -0
- package/lib/audio/toneRoomTone.d.ts +11 -0
- package/lib/audio/toneRoomTone.js +27 -0
- package/lib/audio/toneRoomTone.js.map +1 -0
- package/lib/audio/toneScenes.d.ts +57 -0
- package/lib/audio/toneScenes.js +208 -0
- package/lib/audio/toneScenes.js.map +1 -0
- package/lib/audio/toneTracks.d.ts +50 -0
- package/lib/audio/toneTracks.js +356 -0
- package/lib/audio/toneTracks.js.map +1 -0
- package/lib/audio/toneVoices.d.ts +57 -0
- package/lib/audio/toneVoices.js +208 -0
- package/lib/audio/toneVoices.js.map +1 -0
- package/lib/catalog/catalogTypes.d.ts +428 -0
- package/lib/catalog/catalogTypes.js +102 -0
- package/lib/catalog/catalogTypes.js.map +1 -0
- package/lib/catalog/skyBridgeTypes.d.ts +25 -0
- package/lib/catalog/skyBridgeTypes.js +7 -0
- package/lib/catalog/skyBridgeTypes.js.map +1 -0
- package/lib/catalog/starDutyTypes.d.ts +22 -0
- package/lib/catalog/starDutyTypes.js +7 -0
- package/lib/catalog/starDutyTypes.js.map +1 -0
- package/lib/catalog/towerCatalog.d.ts +32 -0
- package/lib/catalog/towerCatalog.js +44 -0
- package/lib/catalog/towerCatalog.js.map +1 -0
- package/lib/engineBinding/binding.d.ts +36 -0
- package/lib/engineBinding/binding.js +90 -0
- package/lib/engineBinding/binding.js.map +1 -0
- package/lib/engineBinding/catalog.d.ts +24 -0
- package/lib/engineBinding/catalog.js +267 -0
- package/lib/engineBinding/catalog.js.map +1 -0
- package/lib/engineBinding/engine.d.ts +866 -0
- package/lib/engineBinding/exportTiers.d.ts +289 -0
- package/lib/engineBinding/exportTiers.js +283 -0
- package/lib/engineBinding/exportTiers.js.map +1 -0
- package/lib/engineBinding/toolingMethods.d.ts +12 -0
- package/lib/engineBinding/toolingMethods.js +20 -0
- package/lib/engineBinding/toolingMethods.js.map +1 -0
- package/lib/events/gameplayCatalog.d.ts +57 -0
- package/lib/events/gameplayCatalog.js +214 -0
- package/lib/events/gameplayCatalog.js.map +1 -0
- package/lib/events/gameplayEventRules.d.ts +4 -0
- package/lib/events/gameplayEventRules.js +32 -0
- package/lib/events/gameplayEventRules.js.map +1 -0
- package/lib/events/gameplayEvents.d.ts +284 -0
- package/lib/presentation/clockText.d.ts +28 -0
- package/lib/presentation/clockText.js +38 -0
- package/lib/presentation/clockText.js.map +1 -0
- package/lib/presentation/facilityPresentation.d.ts +20 -0
- package/lib/presentation/facilityPresentation.js +164 -0
- package/lib/presentation/facilityPresentation.js.map +1 -0
- package/lib/presentation/statsCopy.d.ts +20 -0
- package/lib/presentation/statsCopy.js +37 -0
- package/lib/presentation/statsCopy.js.map +1 -0
- package/lib/presentation/traffic.d.ts +75 -0
- package/lib/presentation/traffic.js +79 -0
- package/lib/presentation/traffic.js.map +1 -0
- package/lib/presentation/viewKinds.d.ts +33 -0
- package/lib/presentation/viewKinds.js +88 -0
- package/lib/presentation/viewKinds.js.map +1 -0
- package/lib/presentation/viewWorld.d.ts +29 -0
- package/lib/presentation/viewWorld.js +31 -0
- package/lib/presentation/viewWorld.js.map +1 -0
- package/lib/render/atlas/archive.d.ts +78 -0
- package/lib/render/atlas/archive.js +427 -0
- package/lib/render/atlas/archive.js.map +1 -0
- package/lib/render/atlas/bake.d.ts +132 -0
- package/lib/render/atlas/bake.js +331 -0
- package/lib/render/atlas/bake.js.map +1 -0
- package/lib/render/atlas/bakeAdditions.d.ts +24 -0
- package/lib/render/atlas/bakeAdditions.js +46 -0
- package/lib/render/atlas/bakeAdditions.js.map +1 -0
- package/lib/render/atlas/browserEntry.d.ts +12 -0
- package/lib/render/atlas/browserEntry.js +222 -0
- package/lib/render/atlas/browserEntry.js.map +1 -0
- package/lib/render/atlas/catalog.d.ts +118 -0
- package/lib/render/atlas/catalog.js +253 -0
- package/lib/render/atlas/catalog.js.map +1 -0
- package/lib/render/atlas/catalogExtras.d.ts +45 -0
- package/lib/render/atlas/catalogExtras.js +217 -0
- package/lib/render/atlas/catalogExtras.js.map +1 -0
- package/lib/render/atlas/compose.d.ts +30 -0
- package/lib/render/atlas/compose.js +125 -0
- package/lib/render/atlas/compose.js.map +1 -0
- package/lib/render/atlas/cycles.d.ts +25 -0
- package/lib/render/atlas/cycles.js +41 -0
- package/lib/render/atlas/cycles.js.map +1 -0
- package/lib/render/atlas/lookup.d.ts +65 -0
- package/lib/render/atlas/lookup.js +83 -0
- package/lib/render/atlas/lookup.js.map +1 -0
- package/lib/render/atlas/pack.d.ts +23 -0
- package/lib/render/atlas/pack.js +50 -0
- package/lib/render/atlas/pack.js.map +1 -0
- package/lib/render/atlas/paint.d.ts +120 -0
- package/lib/render/atlas/paint.js +154 -0
- package/lib/render/atlas/paint.js.map +1 -0
- package/lib/render/atlas/pixels.d.ts +46 -0
- package/lib/render/atlas/pixels.js +158 -0
- package/lib/render/atlas/pixels.js.map +1 -0
- package/lib/render/atlas/png.d.ts +3 -0
- package/lib/render/atlas/png.js +102 -0
- package/lib/render/atlas/png.js.map +1 -0
- package/lib/render/atlas/raster.d.ts +34 -0
- package/lib/render/atlas/raster.js +114 -0
- package/lib/render/atlas/raster.js.map +1 -0
- package/lib/render/atlas/recyclingFill.d.ts +5 -0
- package/lib/render/atlas/recyclingFill.js +65 -0
- package/lib/render/atlas/recyclingFill.js.map +1 -0
- package/lib/render/atlas/samples.d.ts +24 -0
- package/lib/render/atlas/samples.js +75 -0
- package/lib/render/atlas/samples.js.map +1 -0
- package/lib/render/atlas/scenery.d.ts +230 -0
- package/lib/render/atlas/scenery.js +242 -0
- package/lib/render/atlas/scenery.js.map +1 -0
- package/lib/render/atlas/schema.d.ts +189 -0
- package/lib/render/atlas/schema.js +31 -0
- package/lib/render/atlas/schema.js.map +1 -0
- package/lib/render/atlas/shellMarks.d.ts +16 -0
- package/lib/render/atlas/shellMarks.js +72 -0
- package/lib/render/atlas/shellMarks.js.map +1 -0
- package/lib/render/atlas/store.d.ts +75 -0
- package/lib/render/atlas/store.js +127 -0
- package/lib/render/atlas/store.js.map +1 -0
- package/lib/render/atlas/verify.d.ts +43 -0
- package/lib/render/atlas/verify.js +87 -0
- package/lib/render/atlas/verify.js.map +1 -0
- package/lib/render/atlas/verifyExtras.d.ts +19 -0
- package/lib/render/atlas/verifyExtras.js +310 -0
- package/lib/render/atlas/verifyExtras.js.map +1 -0
- package/lib/render/cameraBounds.d.ts +71 -0
- package/lib/render/cameraBounds.js +107 -0
- package/lib/render/cameraBounds.js.map +1 -0
- package/lib/render/carIndicator.d.ts +41 -0
- package/lib/render/carIndicator.js +45 -0
- package/lib/render/carIndicator.js.map +1 -0
- package/lib/render/carMotion.d.ts +33 -0
- package/lib/render/carMotion.js +42 -0
- package/lib/render/carMotion.js.map +1 -0
- package/lib/render/catalogScale.d.ts +40 -0
- package/lib/render/catalogScale.js +33 -0
- package/lib/render/catalogScale.js.map +1 -0
- package/lib/render/climbPath.d.ts +59 -0
- package/lib/render/climbPath.js +115 -0
- package/lib/render/climbPath.js.map +1 -0
- package/lib/render/depthPlanes.d.ts +55 -0
- package/lib/render/depthPlanes.js +58 -0
- package/lib/render/depthPlanes.js.map +1 -0
- package/lib/render/excalibur/TowerEngine.d.ts +348 -0
- package/lib/render/excalibur/TowerEngine.js +415 -0
- package/lib/render/excalibur/TowerEngine.js.map +1 -0
- package/lib/render/excalibur/cabGraphics.d.ts +75 -0
- package/lib/render/excalibur/cabGraphics.js +108 -0
- package/lib/render/excalibur/cabGraphics.js.map +1 -0
- package/lib/render/excalibur/cabParts.d.ts +32 -0
- package/lib/render/excalibur/cabParts.js +79 -0
- package/lib/render/excalibur/cabParts.js.map +1 -0
- package/lib/render/excalibur/cabRiders.d.ts +72 -0
- package/lib/render/excalibur/cabRiders.js +176 -0
- package/lib/render/excalibur/cabRiders.js.map +1 -0
- package/lib/render/excalibur/crowdCull.d.ts +34 -0
- package/lib/render/excalibur/crowdCull.js +72 -0
- package/lib/render/excalibur/crowdCull.js.map +1 -0
- package/lib/render/excalibur/crowdFigure.d.ts +42 -0
- package/lib/render/excalibur/crowdFigure.js +99 -0
- package/lib/render/excalibur/crowdFigure.js.map +1 -0
- package/lib/render/excalibur/crowdLook.d.ts +137 -0
- package/lib/render/excalibur/crowdLook.js +186 -0
- package/lib/render/excalibur/crowdLook.js.map +1 -0
- package/lib/render/excalibur/frameHold.d.ts +23 -0
- package/lib/render/excalibur/frameHold.js +30 -0
- package/lib/render/excalibur/frameHold.js.map +1 -0
- package/lib/render/excalibur/guardPosition.d.ts +17 -0
- package/lib/render/excalibur/guardPosition.js +37 -0
- package/lib/render/excalibur/guardPosition.js.map +1 -0
- package/lib/render/excalibur/keyboardHost.d.ts +15 -0
- package/lib/render/excalibur/keyboardHost.js +22 -0
- package/lib/render/excalibur/keyboardHost.js.map +1 -0
- package/lib/render/excalibur/longPress.d.ts +16 -0
- package/lib/render/excalibur/longPress.js +71 -0
- package/lib/render/excalibur/longPress.js.map +1 -0
- package/lib/render/excalibur/peopleGfx.d.ts +16 -0
- package/lib/render/excalibur/peopleGfx.js +46 -0
- package/lib/render/excalibur/peopleGfx.js.map +1 -0
- package/lib/render/excalibur/peopleWindow.d.ts +35 -0
- package/lib/render/excalibur/peopleWindow.js +38 -0
- package/lib/render/excalibur/peopleWindow.js.map +1 -0
- package/lib/render/excalibur/personFocus.d.ts +36 -0
- package/lib/render/excalibur/personFocus.js +169 -0
- package/lib/render/excalibur/personFocus.js.map +1 -0
- package/lib/render/excalibur/pointerButtonGuard.d.ts +35 -0
- package/lib/render/excalibur/pointerButtonGuard.js +86 -0
- package/lib/render/excalibur/pointerButtonGuard.js.map +1 -0
- package/lib/render/excalibur/pressLifecycle.d.ts +26 -0
- package/lib/render/excalibur/pressLifecycle.js +66 -0
- package/lib/render/excalibur/pressLifecycle.js.map +1 -0
- package/lib/render/excalibur/rainShelter.d.ts +16 -0
- package/lib/render/excalibur/rainShelter.js +94 -0
- package/lib/render/excalibur/rainShelter.js.map +1 -0
- package/lib/render/excalibur/roomSignature.d.ts +30 -0
- package/lib/render/excalibur/roomSignature.js +49 -0
- package/lib/render/excalibur/roomSignature.js.map +1 -0
- package/lib/render/excalibur/sceneBake.d.ts +9 -0
- package/lib/render/excalibur/sceneBake.js +12 -0
- package/lib/render/excalibur/sceneBake.js.map +1 -0
- package/lib/render/excalibur/thiefSpan.d.ts +18 -0
- package/lib/render/excalibur/thiefSpan.js +51 -0
- package/lib/render/excalibur/thiefSpan.js.map +1 -0
- package/lib/render/excalibur/towerBridgeTiles.d.ts +30 -0
- package/lib/render/excalibur/towerBridgeTiles.js +43 -0
- package/lib/render/excalibur/towerBridgeTiles.js.map +1 -0
- package/lib/render/excalibur/towerCrowd.d.ts +73 -0
- package/lib/render/excalibur/towerCrowd.js +464 -0
- package/lib/render/excalibur/towerCrowd.js.map +1 -0
- package/lib/render/excalibur/towerCrowdLayout.d.ts +40 -0
- package/lib/render/excalibur/towerCrowdLayout.js +77 -0
- package/lib/render/excalibur/towerCrowdLayout.js.map +1 -0
- package/lib/render/excalibur/towerFireResponse.d.ts +25 -0
- package/lib/render/excalibur/towerFireResponse.js +89 -0
- package/lib/render/excalibur/towerFireResponse.js.map +1 -0
- package/lib/render/excalibur/towerFrame.d.ts +8 -0
- package/lib/render/excalibur/towerFrame.js +57 -0
- package/lib/render/excalibur/towerFrame.js.map +1 -0
- package/lib/render/excalibur/towerGhostLabel.d.ts +9 -0
- package/lib/render/excalibur/towerGhostLabel.js +37 -0
- package/lib/render/excalibur/towerGhostLabel.js.map +1 -0
- package/lib/render/excalibur/towerHallDoors.d.ts +42 -0
- package/lib/render/excalibur/towerHallDoors.js +129 -0
- package/lib/render/excalibur/towerHallDoors.js.map +1 -0
- package/lib/render/excalibur/towerHaloRings.d.ts +34 -0
- package/lib/render/excalibur/towerHaloRings.js +45 -0
- package/lib/render/excalibur/towerHaloRings.js.map +1 -0
- package/lib/render/excalibur/towerInputCamera.d.ts +90 -0
- package/lib/render/excalibur/towerInputCamera.js +480 -0
- package/lib/render/excalibur/towerInputCamera.js.map +1 -0
- package/lib/render/excalibur/towerMetro.d.ts +31 -0
- package/lib/render/excalibur/towerMetro.js +115 -0
- package/lib/render/excalibur/towerMetro.js.map +1 -0
- package/lib/render/excalibur/towerNoiseReach.d.ts +32 -0
- package/lib/render/excalibur/towerNoiseReach.js +75 -0
- package/lib/render/excalibur/towerNoiseReach.js.map +1 -0
- package/lib/render/excalibur/towerOverlay.d.ts +59 -0
- package/lib/render/excalibur/towerOverlay.js +453 -0
- package/lib/render/excalibur/towerOverlay.js.map +1 -0
- package/lib/render/excalibur/towerReconcile.d.ts +17 -0
- package/lib/render/excalibur/towerReconcile.js +404 -0
- package/lib/render/excalibur/towerReconcile.js.map +1 -0
- package/lib/render/excalibur/towerRegions.d.ts +61 -0
- package/lib/render/excalibur/towerRegions.js +193 -0
- package/lib/render/excalibur/towerRegions.js.map +1 -0
- package/lib/render/excalibur/towerScene.d.ts +66 -0
- package/lib/render/excalibur/towerScene.js +443 -0
- package/lib/render/excalibur/towerScene.js.map +1 -0
- package/lib/render/excalibur/towerScenery.d.ts +12 -0
- package/lib/render/excalibur/towerScenery.js +299 -0
- package/lib/render/excalibur/towerScenery.js.map +1 -0
- package/lib/render/excalibur/towerSceneryDraw.d.ts +86 -0
- package/lib/render/excalibur/towerSceneryDraw.js +288 -0
- package/lib/render/excalibur/towerSceneryDraw.js.map +1 -0
- package/lib/render/excalibur/towerShaftNumbers.d.ts +23 -0
- package/lib/render/excalibur/towerShaftNumbers.js +90 -0
- package/lib/render/excalibur/towerShaftNumbers.js.map +1 -0
- package/lib/render/excalibur/towerStructTiles.d.ts +56 -0
- package/lib/render/excalibur/towerStructTiles.js +238 -0
- package/lib/render/excalibur/towerStructTiles.js.map +1 -0
- package/lib/render/excalibur/towerSyncSchedule.d.ts +84 -0
- package/lib/render/excalibur/towerSyncSchedule.js +137 -0
- package/lib/render/excalibur/towerSyncSchedule.js.map +1 -0
- package/lib/render/excalibur/towerWalkerBuild.d.ts +30 -0
- package/lib/render/excalibur/towerWalkerBuild.js +126 -0
- package/lib/render/excalibur/towerWalkerBuild.js.map +1 -0
- package/lib/render/excalibur/trafficSpotlight.d.ts +29 -0
- package/lib/render/excalibur/trafficSpotlight.js +64 -0
- package/lib/render/excalibur/trafficSpotlight.js.map +1 -0
- package/lib/render/facadeGeometry.d.ts +50 -0
- package/lib/render/facadeGeometry.js +79 -0
- package/lib/render/facadeGeometry.js.map +1 -0
- package/lib/render/groundEntrances.d.ts +44 -0
- package/lib/render/groundEntrances.js +118 -0
- package/lib/render/groundEntrances.js.map +1 -0
- package/lib/render/lateNight.d.ts +14 -0
- package/lib/render/lateNight.js +18 -0
- package/lib/render/lateNight.js.map +1 -0
- package/lib/render/lobbyHalls.d.ts +44 -0
- package/lib/render/lobbyHalls.js +63 -0
- package/lib/render/lobbyHalls.js.map +1 -0
- package/lib/render/metroTrainSchedule.d.ts +20 -0
- package/lib/render/metroTrainSchedule.js +65 -0
- package/lib/render/metroTrainSchedule.js.map +1 -0
- package/lib/render/overviewMap/drawList.d.ts +67 -0
- package/lib/render/overviewMap/drawList.js +103 -0
- package/lib/render/overviewMap/drawList.js.map +1 -0
- package/lib/render/overviewMap/extent.d.ts +70 -0
- package/lib/render/overviewMap/extent.js +155 -0
- package/lib/render/overviewMap/extent.js.map +1 -0
- package/lib/render/overviewMap/floorSpans.d.ts +27 -0
- package/lib/render/overviewMap/floorSpans.js +32 -0
- package/lib/render/overviewMap/floorSpans.js.map +1 -0
- package/lib/render/overviewMap/gaps.d.ts +48 -0
- package/lib/render/overviewMap/gaps.js +148 -0
- package/lib/render/overviewMap/gaps.js.map +1 -0
- package/lib/render/overviewMap/geometry.d.ts +139 -0
- package/lib/render/overviewMap/geometry.js +245 -0
- package/lib/render/overviewMap/geometry.js.map +1 -0
- package/lib/render/overviewMap/heatView.d.ts +91 -0
- package/lib/render/overviewMap/heatView.js +143 -0
- package/lib/render/overviewMap/heatView.js.map +1 -0
- package/lib/render/overviewMap/hotelView.d.ts +82 -0
- package/lib/render/overviewMap/hotelView.js +136 -0
- package/lib/render/overviewMap/hotelView.js.map +1 -0
- package/lib/render/overviewMap/model.d.ts +97 -0
- package/lib/render/overviewMap/model.js +116 -0
- package/lib/render/overviewMap/model.js.map +1 -0
- package/lib/render/overviewMap/paint.d.ts +63 -0
- package/lib/render/overviewMap/paint.js +168 -0
- package/lib/render/overviewMap/paint.js.map +1 -0
- package/lib/render/overviewMap/style.d.ts +46 -0
- package/lib/render/overviewMap/style.js +117 -0
- package/lib/render/overviewMap/style.js.map +1 -0
- package/lib/render/overviewMap/tierView.d.ts +103 -0
- package/lib/render/overviewMap/tierView.js +209 -0
- package/lib/render/overviewMap/tierView.js.map +1 -0
- package/lib/render/overviewMap/viewMark.d.ts +69 -0
- package/lib/render/overviewMap/viewMark.js +103 -0
- package/lib/render/overviewMap/viewMark.js.map +1 -0
- package/lib/render/overviewMap/views.d.ts +24 -0
- package/lib/render/overviewMap/views.js +29 -0
- package/lib/render/overviewMap/views.js.map +1 -0
- package/lib/render/pinchTracker.d.ts +91 -0
- package/lib/render/pinchTracker.js +145 -0
- package/lib/render/pinchTracker.js.map +1 -0
- package/lib/render/pixelSprites/amusements.d.ts +32 -0
- package/lib/render/pixelSprites/amusements.js +243 -0
- package/lib/render/pixelSprites/amusements.js.map +1 -0
- package/lib/render/pixelSprites/artScale.d.ts +97 -0
- package/lib/render/pixelSprites/artScale.js +151 -0
- package/lib/render/pixelSprites/artScale.js.map +1 -0
- package/lib/render/pixelSprites/boutique.d.ts +30 -0
- package/lib/render/pixelSprites/boutique.js +244 -0
- package/lib/render/pixelSprites/boutique.js.map +1 -0
- package/lib/render/pixelSprites/clinic.d.ts +30 -0
- package/lib/render/pixelSprites/clinic.js +184 -0
- package/lib/render/pixelSprites/clinic.js.map +1 -0
- package/lib/render/pixelSprites/common.d.ts +185 -0
- package/lib/render/pixelSprites/common.js +449 -0
- package/lib/render/pixelSprites/common.js.map +1 -0
- package/lib/render/pixelSprites/daycare.d.ts +3 -0
- package/lib/render/pixelSprites/daycare.js +99 -0
- package/lib/render/pixelSprites/daycare.js.map +1 -0
- package/lib/render/pixelSprites/dollhouse.d.ts +45 -0
- package/lib/render/pixelSprites/dollhouse.js +110 -0
- package/lib/render/pixelSprites/dollhouse.js.map +1 -0
- package/lib/render/pixelSprites/fitness.d.ts +30 -0
- package/lib/render/pixelSprites/fitness.js +176 -0
- package/lib/render/pixelSprites/fitness.js.map +1 -0
- package/lib/render/pixelSprites/food.d.ts +27 -0
- package/lib/render/pixelSprites/food.interiors.d.ts +38 -0
- package/lib/render/pixelSprites/food.interiors.js +516 -0
- package/lib/render/pixelSprites/food.interiors.js.map +1 -0
- package/lib/render/pixelSprites/food.js +36 -0
- package/lib/render/pixelSprites/food.js.map +1 -0
- package/lib/render/pixelSprites/food.kit.d.ts +50 -0
- package/lib/render/pixelSprites/food.kit.js +140 -0
- package/lib/render/pixelSprites/food.kit.js.map +1 -0
- package/lib/render/pixelSprites/food.looks.d.ts +45 -0
- package/lib/render/pixelSprites/food.looks.js +56 -0
- package/lib/render/pixelSprites/food.looks.js.map +1 -0
- package/lib/render/pixelSprites/layers.d.ts +49 -0
- package/lib/render/pixelSprites/layers.js +61 -0
- package/lib/render/pixelSprites/layers.js.map +1 -0
- package/lib/render/pixelSprites/nightclub.d.ts +3 -0
- package/lib/render/pixelSprites/nightclub.js +108 -0
- package/lib/render/pixelSprites/nightclub.js.map +1 -0
- package/lib/render/pixelSprites/people.d.ts +168 -0
- package/lib/render/pixelSprites/people.js +431 -0
- package/lib/render/pixelSprites/people.js.map +1 -0
- package/lib/render/pixelSprites/residential.d.ts +5 -0
- package/lib/render/pixelSprites/residential.js +506 -0
- package/lib/render/pixelSprites/residential.js.map +1 -0
- package/lib/render/pixelSprites/residential.looks.d.ts +40 -0
- package/lib/render/pixelSprites/residential.looks.js +43 -0
- package/lib/render/pixelSprites/residential.looks.js.map +1 -0
- package/lib/render/pixelSprites/residential.roaches.d.ts +38 -0
- package/lib/render/pixelSprites/residential.roaches.js +88 -0
- package/lib/render/pixelSprites/residential.roaches.js.map +1 -0
- package/lib/render/pixelSprites/residentialRentalSprites.d.ts +11 -0
- package/lib/render/pixelSprites/residentialRentalSprites.js +19 -0
- package/lib/render/pixelSprites/residentialRentalSprites.js.map +1 -0
- package/lib/render/pixelSprites/shop.d.ts +14 -0
- package/lib/render/pixelSprites/shop.interiors.d.ts +50 -0
- package/lib/render/pixelSprites/shop.interiors.js +382 -0
- package/lib/render/pixelSprites/shop.interiors.js.map +1 -0
- package/lib/render/pixelSprites/shop.js +72 -0
- package/lib/render/pixelSprites/shop.js.map +1 -0
- package/lib/render/pixelSprites/shop.looks.d.ts +17 -0
- package/lib/render/pixelSprites/shop.looks.js +24 -0
- package/lib/render/pixelSprites/shop.looks.js.map +1 -0
- package/lib/render/pixelSprites/skyBar.d.ts +11 -0
- package/lib/render/pixelSprites/skyBar.js +125 -0
- package/lib/render/pixelSprites/skyBar.js.map +1 -0
- package/lib/render/pixelSprites/spa.d.ts +3 -0
- package/lib/render/pixelSprites/spa.js +88 -0
- package/lib/render/pixelSprites/spa.js.map +1 -0
- package/lib/render/pixelSprites.d.ts +33 -0
- package/lib/render/pixelSprites.js +167 -0
- package/lib/render/pixelSprites.js.map +1 -0
- package/lib/render/regionGrid.d.ts +49 -0
- package/lib/render/regionGrid.js +82 -0
- package/lib/render/regionGrid.js.map +1 -0
- package/lib/render/regionPaint.d.ts +15 -0
- package/lib/render/regionPaint.js +33 -0
- package/lib/render/regionPaint.js.map +1 -0
- package/lib/render/renderSim.d.ts +104 -0
- package/lib/render/renderSim.js +2 -0
- package/lib/render/renderSim.js.map +1 -0
- package/lib/render/roomPortrait.d.ts +35 -0
- package/lib/render/roomPortrait.js +142 -0
- package/lib/render/roomPortrait.js.map +1 -0
- package/lib/render/roomShading.d.ts +29 -0
- package/lib/render/roomShading.js +43 -0
- package/lib/render/roomShading.js.map +1 -0
- package/lib/render/scale.d.ts +31 -0
- package/lib/render/scale.js +34 -0
- package/lib/render/scale.js.map +1 -0
- package/lib/render/sceneryLayout.d.ts +234 -0
- package/lib/render/sceneryLayout.js +199 -0
- package/lib/render/sceneryLayout.js.map +1 -0
- package/lib/render/sprites/common.d.ts +41 -0
- package/lib/render/sprites/common.js +46 -0
- package/lib/render/sprites/common.js.map +1 -0
- package/lib/render/sprites/escalator.d.ts +27 -0
- package/lib/render/sprites/escalator.js +156 -0
- package/lib/render/sprites/escalator.js.map +1 -0
- package/lib/render/sprites/events.d.ts +56 -0
- package/lib/render/sprites/events.js +280 -0
- package/lib/render/sprites/events.js.map +1 -0
- package/lib/render/sprites/facilities/garage.d.ts +23 -0
- package/lib/render/sprites/facilities/garage.js +230 -0
- package/lib/render/sprites/facilities/garage.js.map +1 -0
- package/lib/render/sprites/facilities/recycling.d.ts +3 -0
- package/lib/render/sprites/facilities/recycling.js +210 -0
- package/lib/render/sprites/facilities/recycling.js.map +1 -0
- package/lib/render/sprites/facilities/recyclingLook.d.ts +49 -0
- package/lib/render/sprites/facilities/recyclingLook.js +52 -0
- package/lib/render/sprites/facilities/recyclingLook.js.map +1 -0
- package/lib/render/sprites/facilities/service.d.ts +14 -0
- package/lib/render/sprites/facilities/service.js +437 -0
- package/lib/render/sprites/facilities/service.js.map +1 -0
- package/lib/render/sprites/facilities/serviceKit.d.ts +61 -0
- package/lib/render/sprites/facilities/serviceKit.js +113 -0
- package/lib/render/sprites/facilities/serviceKit.js.map +1 -0
- package/lib/render/sprites/facilities/vehicles.d.ts +38 -0
- package/lib/render/sprites/facilities/vehicles.js +276 -0
- package/lib/render/sprites/facilities/vehicles.js.map +1 -0
- package/lib/render/sprites/facilities/venue.d.ts +28 -0
- package/lib/render/sprites/facilities/venue.js +211 -0
- package/lib/render/sprites/facilities/venue.js.map +1 -0
- package/lib/render/sprites/facilities/weddingHall.d.ts +9 -0
- package/lib/render/sprites/facilities/weddingHall.js +410 -0
- package/lib/render/sprites/facilities/weddingHall.js.map +1 -0
- package/lib/render/sprites/facilities.d.ts +22 -0
- package/lib/render/sprites/facilities.js +24 -0
- package/lib/render/sprites/facilities.js.map +1 -0
- package/lib/render/sprites/helicopter.d.ts +11 -0
- package/lib/render/sprites/helicopter.js +60 -0
- package/lib/render/sprites/helicopter.js.map +1 -0
- package/lib/render/sprites/sky.d.ts +67 -0
- package/lib/render/sprites/sky.js +85 -0
- package/lib/render/sprites/sky.js.map +1 -0
- package/lib/render/sprites/spiralStair.d.ts +19 -0
- package/lib/render/sprites/spiralStair.js +111 -0
- package/lib/render/sprites/spiralStair.js.map +1 -0
- package/lib/render/sprites/structure/entrance.d.ts +35 -0
- package/lib/render/sprites/structure/entrance.js +347 -0
- package/lib/render/sprites/structure/entrance.js.map +1 -0
- package/lib/render/sprites/structure/lobby.d.ts +88 -0
- package/lib/render/sprites/structure/lobby.js +350 -0
- package/lib/render/sprites/structure/lobby.js.map +1 -0
- package/lib/render/sprites/structure/revolvingDoor.d.ts +53 -0
- package/lib/render/sprites/structure/revolvingDoor.js +184 -0
- package/lib/render/sprites/structure/revolvingDoor.js.map +1 -0
- package/lib/render/sprites/structure/rooftop.d.ts +93 -0
- package/lib/render/sprites/structure/rooftop.js +302 -0
- package/lib/render/sprites/structure/rooftop.js.map +1 -0
- package/lib/render/sprites/structure/shell.d.ts +19 -0
- package/lib/render/sprites/structure/shell.js +142 -0
- package/lib/render/sprites/structure/shell.js.map +1 -0
- package/lib/render/sprites/structure/skyBridge.d.ts +28 -0
- package/lib/render/sprites/structure/skyBridge.js +259 -0
- package/lib/render/sprites/structure/skyBridge.js.map +1 -0
- package/lib/render/sprites/structure/tallLobby.d.ts +8 -0
- package/lib/render/sprites/structure/tallLobby.js +166 -0
- package/lib/render/sprites/structure/tallLobby.js.map +1 -0
- package/lib/render/sprites/structure/tallLobbyPieces.d.ts +18 -0
- package/lib/render/sprites/structure/tallLobbyPieces.js +82 -0
- package/lib/render/sprites/structure/tallLobbyPieces.js.map +1 -0
- package/lib/render/sprites/structure.d.ts +15 -0
- package/lib/render/sprites/structure.js +16 -0
- package/lib/render/sprites/structure.js.map +1 -0
- package/lib/render/sprites/transport.d.ts +30 -0
- package/lib/render/sprites/transport.js +376 -0
- package/lib/render/sprites/transport.js.map +1 -0
- package/lib/render/sprites.d.ts +16 -0
- package/lib/render/sprites.js +108 -0
- package/lib/render/sprites.js.map +1 -0
- package/lib/render/venueFlights.d.ts +61 -0
- package/lib/render/venueFlights.js +50 -0
- package/lib/render/venueFlights.js.map +1 -0
- package/lib/shared/engineTypes.d.ts +256 -0
- package/lib/shared/engineTypes.js +8 -0
- package/lib/shared/engineTypes.js.map +1 -0
- package/lib/shared/floorRuns.d.ts +22 -0
- package/lib/shared/floorRuns.js +39 -0
- package/lib/shared/floorRuns.js.map +1 -0
- package/lib/shared/inputEvents.d.ts +18 -0
- package/lib/shared/inputEvents.js +23 -0
- package/lib/shared/inputEvents.js.map +1 -0
- package/lib/shared/serializedGame.d.ts +142 -0
- package/lib/shared/serializedGame.js +2 -0
- package/lib/shared/serializedGame.js.map +1 -0
- package/lib/shared/types.d.ts +298 -0
- package/lib/shared/types.js +47 -0
- package/lib/shared/types.js.map +1 -0
- package/lib/shared/unitState.d.ts +36 -0
- package/lib/shared/unitState.js +42 -0
- package/lib/shared/unitState.js.map +1 -0
- package/lib/shared/vacateReasonText.d.ts +20 -0
- package/lib/shared/vacateReasonText.js +23 -0
- package/lib/shared/vacateReasonText.js.map +1 -0
- package/lib/shared/viewZoom.d.ts +14 -0
- package/lib/shared/viewZoom.js +17 -0
- package/lib/shared/viewZoom.js.map +1 -0
- package/lib/shared/wellFormed.d.ts +14 -0
- package/lib/shared/wellFormed.js +19 -0
- package/lib/shared/wellFormed.js.map +1 -0
- package/lib/simport/cards.d.ts +26 -0
- package/lib/simport/cards.js +138 -0
- package/lib/simport/cards.js.map +1 -0
- package/lib/simport/clockView.d.ts +24 -0
- package/lib/simport/clockView.js +43 -0
- package/lib/simport/clockView.js.map +1 -0
- package/lib/simport/commands.d.ts +215 -0
- package/lib/simport/commands.js +2 -0
- package/lib/simport/commands.js.map +1 -0
- package/lib/simport/emergencyReads.d.ts +19 -0
- package/lib/simport/emergencyReads.js +47 -0
- package/lib/simport/emergencyReads.js.map +1 -0
- package/lib/simport/enginePort.d.ts +433 -0
- package/lib/simport/enginePort.js +11 -0
- package/lib/simport/enginePort.js.map +1 -0
- package/lib/simport/fixtures/catalog.classic.json +2137 -0
- package/lib/simport/fixtures/catalog.modern.json +2515 -0
- package/lib/simport/fixtures/viewLayout.json +927 -0
- package/lib/simport/headerClock.d.ts +31 -0
- package/lib/simport/headerClock.js +29 -0
- package/lib/simport/headerClock.js.map +1 -0
- package/lib/simport/panels.d.ts +243 -0
- package/lib/simport/panels.js +2 -0
- package/lib/simport/panels.js.map +1 -0
- package/lib/simport/personCards.d.ts +63 -0
- package/lib/simport/personCards.js +55 -0
- package/lib/simport/personCards.js.map +1 -0
- package/lib/simport/portCodes.d.ts +41 -0
- package/lib/simport/portCodes.js +49 -0
- package/lib/simport/portCodes.js.map +1 -0
- package/lib/simport/portEvents.d.ts +39 -0
- package/lib/simport/portEvents.js +43 -0
- package/lib/simport/portEvents.js.map +1 -0
- package/lib/simport/portRenderSim.d.ts +70 -0
- package/lib/simport/portRenderSim.js +129 -0
- package/lib/simport/portRenderSim.js.map +1 -0
- package/lib/simport/queries.d.ts +64 -0
- package/lib/simport/queries.js +30 -0
- package/lib/simport/queries.js.map +1 -0
- package/lib/simport/recyclingPort.d.ts +13 -0
- package/lib/simport/recyclingPort.js +2 -0
- package/lib/simport/recyclingPort.js.map +1 -0
- package/lib/simport/request.d.ts +44 -0
- package/lib/simport/request.js +214 -0
- package/lib/simport/request.js.map +1 -0
- package/lib/simport/roomTiers.d.ts +102 -0
- package/lib/simport/roomTiers.js +122 -0
- package/lib/simport/roomTiers.js.map +1 -0
- package/lib/simport/scheduleSlots.d.ts +19 -0
- package/lib/simport/scheduleSlots.js +87 -0
- package/lib/simport/scheduleSlots.js.map +1 -0
- package/lib/simport/skyBridgePort.d.ts +20 -0
- package/lib/simport/skyBridgePort.js +2 -0
- package/lib/simport/skyBridgePort.js.map +1 -0
- package/lib/simport/skyBridgeView.d.ts +15 -0
- package/lib/simport/skyBridgeView.js +42 -0
- package/lib/simport/skyBridgeView.js.map +1 -0
- package/lib/simport/statsSheet.d.ts +15 -0
- package/lib/simport/statsSheet.js +101 -0
- package/lib/simport/statsSheet.js.map +1 -0
- package/lib/simport/tdtRecords.d.ts +9 -0
- package/lib/simport/tdtRecords.js +112 -0
- package/lib/simport/tdtRecords.js.map +1 -0
- package/lib/simport/tdtReportFacts.d.ts +110 -0
- package/lib/simport/tdtReportFacts.js +8 -0
- package/lib/simport/tdtReportFacts.js.map +1 -0
- package/lib/simport/trafficPort.d.ts +22 -0
- package/lib/simport/trafficPort.js +2 -0
- package/lib/simport/trafficPort.js.map +1 -0
- package/lib/simport/view.d.ts +275 -0
- package/lib/simport/view.js +2 -0
- package/lib/simport/view.js.map +1 -0
- package/lib/simport/viewReader.d.ts +89 -0
- package/lib/simport/viewReader.js +426 -0
- package/lib/simport/viewReader.js.map +1 -0
- package/lib/styles/game/appearance.css +108 -0
- package/lib/styles/game/base.css +68 -0
- package/lib/styles/game/components.css +69 -0
- package/lib/styles/game/desk-title.css +183 -0
- package/lib/styles/game/desk.css +487 -0
- package/lib/styles/game/dialogs.css +360 -0
- package/lib/styles/game/editor-sidebar.css +116 -0
- package/lib/styles/game/elevator-schedule.css +217 -0
- package/lib/styles/game/file-dialog.css +470 -0
- package/lib/styles/game/help.css +141 -0
- package/lib/styles/game/launch-fireworks.css +17 -0
- package/lib/styles/game/media-landscape.css +333 -0
- package/lib/styles/game/media-phone.css +303 -0
- package/lib/styles/game/media-tablet-touch.css +177 -0
- package/lib/styles/game/menubar.css +158 -0
- package/lib/styles/game/new-tower.css +219 -0
- package/lib/styles/game/onboarding.css +32 -0
- package/lib/styles/game/screen-saver.css +85 -0
- package/lib/styles/game/splash.css +413 -0
- package/lib/styles/game/stats-saves.css +106 -0
- package/lib/styles/game/tools-stage.css +340 -0
- package/lib/styles/game/topbar.css +191 -0
- package/lib/styles/menu-bar.css +108 -0
- package/lib/styles/not-found.css +335 -0
- package/lib/styles/overview-map-views.css +88 -0
- package/lib/styles/overview-map.css +195 -0
- package/lib/styles/retro-components.css +179 -0
- package/lib/styles/retro-page.css +254 -0
- package/lib/styles/retro-tokens.css +122 -0
- package/lib/styles/schemes/high-contrast.css +173 -0
- package/lib/styles/schemes/skyline.css +134 -0
- package/lib/styles.css +66 -0
- package/lib/ui/desk/deskGeometry.d.ts +59 -0
- package/lib/ui/desk/deskGeometry.js +106 -0
- package/lib/ui/desk/deskGeometry.js.map +1 -0
- package/lib/ui/desk/deskWindow.d.ts +90 -0
- package/lib/ui/desk/deskWindow.js +253 -0
- package/lib/ui/desk/deskWindow.js.map +1 -0
- package/lib/ui/desk/deskWindowMenu.d.ts +55 -0
- package/lib/ui/desk/deskWindowMenu.js +143 -0
- package/lib/ui/desk/deskWindowMenu.js.map +1 -0
- package/lib/ui/escape.d.ts +1 -0
- package/lib/ui/escape.js +14 -0
- package/lib/ui/escape.js.map +1 -0
- package/lib/ui/format.d.ts +14 -0
- package/lib/ui/format.js +36 -0
- package/lib/ui/format.js.map +1 -0
- package/lib/ui/iconPaths.generated.d.ts +4 -0
- package/lib/ui/iconPaths.generated.js +68 -0
- package/lib/ui/iconPaths.generated.js.map +1 -0
- package/lib/ui/icons.d.ts +83 -0
- package/lib/ui/icons.js +156 -0
- package/lib/ui/icons.js.map +1 -0
- package/lib/ui/menuBar.d.ts +94 -0
- package/lib/ui/menuBar.js +361 -0
- package/lib/ui/menuBar.js.map +1 -0
- package/lib/ui/modalPrecedence.d.ts +108 -0
- package/lib/ui/modalPrecedence.js +165 -0
- package/lib/ui/modalPrecedence.js.map +1 -0
- package/lib/ui/movableWindow.d.ts +124 -0
- package/lib/ui/movableWindow.js +247 -0
- package/lib/ui/movableWindow.js.map +1 -0
- package/lib/ui/overviewMapInput.d.ts +109 -0
- package/lib/ui/overviewMapInput.js +135 -0
- package/lib/ui/overviewMapInput.js.map +1 -0
- package/lib/ui/uiModal.d.ts +38 -0
- package/lib/ui/uiModal.js +70 -0
- package/lib/ui/uiModal.js.map +1 -0
- package/lib/wasmhost/buildSection.d.ts +54 -0
- package/lib/wasmhost/buildSection.js +143 -0
- package/lib/wasmhost/buildSection.js.map +1 -0
- package/lib/wasmhost/catalogCheck.d.ts +11 -0
- package/lib/wasmhost/catalogCheck.js +43 -0
- package/lib/wasmhost/catalogCheck.js.map +1 -0
- package/lib/wasmhost/engineAssets.d.ts +57 -0
- package/lib/wasmhost/engineAssets.js +63 -0
- package/lib/wasmhost/engineAssets.js.map +1 -0
- package/lib/wasmhost/engineBoot.d.ts +165 -0
- package/lib/wasmhost/engineBoot.js +254 -0
- package/lib/wasmhost/engineBoot.js.map +1 -0
- package/lib/wasmhost/engineChoice.d.ts +6 -0
- package/lib/wasmhost/engineChoice.js +2 -0
- package/lib/wasmhost/engineChoice.js.map +1 -0
- package/lib/wasmhost/engineDiagnostics.d.ts +66 -0
- package/lib/wasmhost/engineDiagnostics.js +189 -0
- package/lib/wasmhost/engineDiagnostics.js.map +1 -0
- package/lib/wasmhost/engineDiagnosticsLive.d.ts +15 -0
- package/lib/wasmhost/engineDiagnosticsLive.js +31 -0
- package/lib/wasmhost/engineDiagnosticsLive.js.map +1 -0
- package/lib/wasmhost/engineIdentity.d.ts +30 -0
- package/lib/wasmhost/engineIdentity.js +59 -0
- package/lib/wasmhost/engineIdentity.js.map +1 -0
- package/lib/wasmhost/engineLabel.d.ts +40 -0
- package/lib/wasmhost/engineLabel.js +50 -0
- package/lib/wasmhost/engineLabel.js.map +1 -0
- package/lib/wasmhost/engineLoad.d.ts +48 -0
- package/lib/wasmhost/engineLoad.js +53 -0
- package/lib/wasmhost/engineLoad.js.map +1 -0
- package/lib/wasmhost/enginePackageCheck.d.ts +77 -0
- package/lib/wasmhost/enginePackageCheck.js +274 -0
- package/lib/wasmhost/enginePackageCheck.js.map +1 -0
- package/lib/wasmhost/enginePackageNames.d.ts +25 -0
- package/lib/wasmhost/enginePackageNames.js +28 -0
- package/lib/wasmhost/enginePackageNames.js.map +1 -0
- package/lib/wasmhost/enginePackageRecord.d.ts +78 -0
- package/lib/wasmhost/enginePackageRecord.js +108 -0
- package/lib/wasmhost/enginePackageRecord.js.map +1 -0
- package/lib/wasmhost/engineRepair.d.ts +55 -0
- package/lib/wasmhost/engineRepair.js +183 -0
- package/lib/wasmhost/engineRepair.js.map +1 -0
- package/lib/wasmhost/frameView.d.ts +87 -0
- package/lib/wasmhost/frameView.js +133 -0
- package/lib/wasmhost/frameView.js.map +1 -0
- package/lib/wasmhost/hostFault.d.ts +40 -0
- package/lib/wasmhost/hostFault.js +94 -0
- package/lib/wasmhost/hostFault.js.map +1 -0
- package/lib/wasmhost/loadEngineModule.d.ts +79 -0
- package/lib/wasmhost/loadEngineModule.js +66 -0
- package/lib/wasmhost/loadEngineModule.js.map +1 -0
- package/lib/wasmhost/packageHash.d.ts +48 -0
- package/lib/wasmhost/packageHash.js +436 -0
- package/lib/wasmhost/packageHash.js.map +1 -0
- package/lib/wasmhost/rustEngine.d.ts +49 -0
- package/lib/wasmhost/rustEngine.js +63 -0
- package/lib/wasmhost/rustEngine.js.map +1 -0
- package/lib/wasmhost/slotPopulation.d.ts +19 -0
- package/lib/wasmhost/slotPopulation.js +69 -0
- package/lib/wasmhost/slotPopulation.js.map +1 -0
- package/lib/wasmhost/telemetry.d.ts +31 -0
- package/lib/wasmhost/telemetry.js +13 -0
- package/lib/wasmhost/telemetry.js.map +1 -0
- package/package.json +80 -4
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import * as ex from 'excalibur';
|
|
2
|
+
import { Z } from '../depthPlanes.js';
|
|
3
|
+
import { viewWorld } from '../../presentation/viewWorld.js';
|
|
4
|
+
import { TILE, FLOOR } from '../scale.js';
|
|
5
|
+
import { sceneryPieces, STRIP_ABOVE, STRIP_BELOW, apronRange, plantVisible, SKYLINE_FILLS, skylineRects, plantSpots, plantRect } from '../sceneryLayout.js';
|
|
6
|
+
import { drawSidewalk, drawRoundabout, drawFountain, drawPlazaLamp, lampAlpha, drawRoad, drawForecourt, drawStreetLamp, drawPlanter, drawTree, drawBush, drawStripTile } from './towerSceneryDraw.js';
|
|
7
|
+
|
|
8
|
+
const recs = new WeakMap();
|
|
9
|
+
// Z order, back to front (sky sits at -60, dirt at -50, ground line at -49):
|
|
10
|
+
const Z_SKY_FAR = Z.skylineFar;
|
|
11
|
+
const Z_SKY_NEAR = Z.skylineNear;
|
|
12
|
+
const Z_STRIP = Z.strip;
|
|
13
|
+
const Z_EDGE = Z.groundEdge;
|
|
14
|
+
const Z_PLANT = Z.plant;
|
|
15
|
+
// Ground strip canvas geometry (world px, STRIP_ABOVE and STRIP_BELOW from
|
|
16
|
+
// towerSceneryDraw). The strip straddles the ground line: blades rise above
|
|
17
|
+
// it, a soil lip hangs just below.
|
|
18
|
+
/** Longest strip canvas in world px, under the 2048 mobile texture cap. Strips
|
|
19
|
+
* past this split into `ceil(total / STRIP_MAX_SEG)` segments, so the SEGMENT
|
|
20
|
+
* COUNT moves with `TILE`: a smaller tile shortens every strip and can drop a
|
|
21
|
+
* segment. Exported so tests derive that count rather than hardcode one that
|
|
22
|
+
* quietly rots the next time the world scale changes. */
|
|
23
|
+
const STRIP_MAX_SEG = 1800;
|
|
24
|
+
function makeScenery(engine) {
|
|
25
|
+
const pieces = sceneryPieces();
|
|
26
|
+
const rec = {
|
|
27
|
+
sim: null,
|
|
28
|
+
seed: NaN,
|
|
29
|
+
seeded: [],
|
|
30
|
+
plants: [],
|
|
31
|
+
stripCanvases: [],
|
|
32
|
+
apron: null,
|
|
33
|
+
lastRevision: -1,
|
|
34
|
+
};
|
|
35
|
+
recs.set(engine, rec);
|
|
36
|
+
// ---- static pieces (identical for every tower) --------------------------
|
|
37
|
+
// Left edge: sidewalk off the lot line, then a fountain roundabout where
|
|
38
|
+
// arriving traffic turns around, then the road off the scene's left side.
|
|
39
|
+
{
|
|
40
|
+
const { x, y, w, h } = pieces.plazaSidewalk;
|
|
41
|
+
const cv = new ex.Canvas({ width: w, height: h, cache: true, draw: (ctx) => drawSidewalk(ctx, w) });
|
|
42
|
+
const a = new ex.Actor({ pos: ex.vec(x, y), width: w, height: h, anchor: ex.vec(0, 0), z: Z_EDGE });
|
|
43
|
+
a.graphics.use(cv);
|
|
44
|
+
engine.engine.add(a);
|
|
45
|
+
}
|
|
46
|
+
{
|
|
47
|
+
// Roundabout: an elliptical drive around a grassy center island.
|
|
48
|
+
const { x, y, w, h } = pieces.roundabout;
|
|
49
|
+
const cv = new ex.Canvas({ width: w, height: h, cache: true, draw: (ctx) => drawRoundabout(ctx, w) });
|
|
50
|
+
const a = new ex.Actor({ pos: ex.vec(x, y), width: w, height: h, anchor: ex.vec(0, 0), z: Z_EDGE });
|
|
51
|
+
a.graphics.use(cv);
|
|
52
|
+
engine.engine.add(a);
|
|
53
|
+
}
|
|
54
|
+
{
|
|
55
|
+
// The fountain on the island, in front of the ring's back edge. LIVE:
|
|
56
|
+
// cache:false (the sky's pattern) so the water re-rasters each frame from
|
|
57
|
+
// the decorative clock; it freezes with pause and reduced motion, and the
|
|
58
|
+
// stepped clock keeps screenshots deterministic. The canvas is tiny, so
|
|
59
|
+
// the per-frame cost is noise.
|
|
60
|
+
const { x, y, w, h } = pieces.fountain;
|
|
61
|
+
const cv = new ex.Canvas({ width: w, height: h, cache: false, draw: (ctx) => drawFountain(ctx, w, h, engine.d.anim) });
|
|
62
|
+
const a = new ex.Actor({ pos: ex.vec(x, y), width: w, height: h, anchor: ex.vec(0, 0), z: Z_PLANT });
|
|
63
|
+
a.graphics.use(cv);
|
|
64
|
+
engine.engine.add(a);
|
|
65
|
+
}
|
|
66
|
+
{
|
|
67
|
+
// Plaza lamps flanking the drive. Live like the fountain (cache:false):
|
|
68
|
+
// dark fixtures by day, fading in through dusk to a warm glow with a pool
|
|
69
|
+
// of light on the pavement, keyed to the sim clock so pause and the
|
|
70
|
+
// stepped screenshot clock behave.
|
|
71
|
+
for (const { x, y, w, h } of pieces.plazaLamps) {
|
|
72
|
+
const cv = new ex.Canvas({
|
|
73
|
+
width: w,
|
|
74
|
+
height: h,
|
|
75
|
+
cache: false,
|
|
76
|
+
draw: (ctx) => drawPlazaLamp(ctx, w, h, lampAlpha(engine.sim.clock.minuteOfDay / 60)),
|
|
77
|
+
});
|
|
78
|
+
const a = new ex.Actor({ pos: ex.vec(x, y), width: w, height: h, anchor: ex.vec(0, 0), z: Z_PLANT });
|
|
79
|
+
a.graphics.use(cv);
|
|
80
|
+
engine.engine.add(a);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
{
|
|
84
|
+
// Road running from the roundabout to the dirt's left edge, in
|
|
85
|
+
// texture-safe segments (the full run is far past the 2048 cap).
|
|
86
|
+
const from = pieces.leftRoad.x / TILE;
|
|
87
|
+
const to = (pieces.leftRoad.x + pieces.leftRoad.w) / TILE;
|
|
88
|
+
const total = (to - from) * TILE;
|
|
89
|
+
const segments = Math.ceil(total / STRIP_MAX_SEG);
|
|
90
|
+
const segW = Math.ceil(total / segments / TILE) * TILE;
|
|
91
|
+
for (let i = 0; i < segments; i++) {
|
|
92
|
+
const x0 = from * TILE + i * segW;
|
|
93
|
+
const w = Math.min(segW, to * TILE - x0) + 1; // 1px overlap hides seams
|
|
94
|
+
// Phase the lane dashes off WORLD x, not segment-local x, so the dash
|
|
95
|
+
// rhythm carries across segment seams unbroken.
|
|
96
|
+
const period = TILE * 4;
|
|
97
|
+
const phase = (((4 - x0) % period) + period) % period;
|
|
98
|
+
const cv = new ex.Canvas({ width: w, height: 14, cache: true, draw: (ctx) => drawRoad(ctx, w, phase) });
|
|
99
|
+
const a = new ex.Actor({ pos: ex.vec(x0, -2), width: w, height: 14, anchor: ex.vec(0, 0), z: Z_EDGE });
|
|
100
|
+
a.graphics.use(cv);
|
|
101
|
+
engine.engine.add(a);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
// Forecourt (cement, same finish as the tower apron so it reads as yours).
|
|
105
|
+
{
|
|
106
|
+
const { x, y, w, h } = pieces.forecourt;
|
|
107
|
+
const cv = new ex.Canvas({ width: w, height: h, cache: true, draw: (ctx) => drawForecourt(ctx, w) });
|
|
108
|
+
const a = new ex.Actor({ pos: ex.vec(x, y), width: w, height: h, anchor: ex.vec(0, 0), z: Z_EDGE });
|
|
109
|
+
a.graphics.use(cv);
|
|
110
|
+
engine.engine.add(a);
|
|
111
|
+
}
|
|
112
|
+
// Sidewalk with expansion joints.
|
|
113
|
+
{
|
|
114
|
+
const { x, y, w, h } = pieces.sidewalk;
|
|
115
|
+
const cv = new ex.Canvas({ width: w, height: h, cache: true, draw: (ctx) => drawSidewalk(ctx, w) });
|
|
116
|
+
const a = new ex.Actor({ pos: ex.vec(x, y), width: w, height: h, anchor: ex.vec(0, 0), z: Z_EDGE });
|
|
117
|
+
a.graphics.use(cv);
|
|
118
|
+
engine.engine.add(a);
|
|
119
|
+
}
|
|
120
|
+
// The road: asphalt a curb-step below the sidewalk, with lane dashes.
|
|
121
|
+
{
|
|
122
|
+
const { x, y, w, h } = pieces.rightRoad;
|
|
123
|
+
// Dashes from 4 px in (the first `phase - period` dash falls off the left).
|
|
124
|
+
const cv = new ex.Canvas({ width: w, height: h, cache: true, draw: (ctx) => drawRoad(ctx, w, 4) });
|
|
125
|
+
const a = new ex.Actor({ pos: ex.vec(x, y), width: w, height: h, anchor: ex.vec(0, 0), z: Z_EDGE });
|
|
126
|
+
a.graphics.use(cv);
|
|
127
|
+
engine.engine.add(a);
|
|
128
|
+
}
|
|
129
|
+
// Street lamp with the 375 ST sign, on the sidewalk. Same live day/night
|
|
130
|
+
// head as the plaza lamps; the sign reads at any hour.
|
|
131
|
+
{
|
|
132
|
+
const { x, y, w, h } = pieces.streetLamp;
|
|
133
|
+
const cv = new ex.Canvas({
|
|
134
|
+
width: w,
|
|
135
|
+
height: h,
|
|
136
|
+
cache: false,
|
|
137
|
+
draw: (ctx) => drawStreetLamp(ctx, w, h, lampAlpha(engine.sim.clock.minuteOfDay / 60)),
|
|
138
|
+
});
|
|
139
|
+
const a = new ex.Actor({
|
|
140
|
+
pos: ex.vec(x, y),
|
|
141
|
+
width: w,
|
|
142
|
+
height: h,
|
|
143
|
+
anchor: ex.vec(0, 0),
|
|
144
|
+
z: Z_PLANT,
|
|
145
|
+
});
|
|
146
|
+
a.graphics.use(cv);
|
|
147
|
+
engine.engine.add(a);
|
|
148
|
+
}
|
|
149
|
+
// Planter on the forecourt: a touch of green that survives a full-width lot.
|
|
150
|
+
{
|
|
151
|
+
const { x, y, w, h } = pieces.planter;
|
|
152
|
+
const cv = new ex.Canvas({ width: w, height: h, cache: true, draw: (ctx) => drawPlanter(ctx, w, h) });
|
|
153
|
+
const a = new ex.Actor({
|
|
154
|
+
pos: ex.vec(x, y),
|
|
155
|
+
width: w,
|
|
156
|
+
height: h,
|
|
157
|
+
anchor: ex.vec(0, 0),
|
|
158
|
+
z: Z_PLANT,
|
|
159
|
+
});
|
|
160
|
+
a.graphics.use(cv);
|
|
161
|
+
engine.engine.add(a);
|
|
162
|
+
}
|
|
163
|
+
// ---- the lot's ground strip (grass/apron), repainted on build -----------
|
|
164
|
+
{
|
|
165
|
+
const lotW = viewWorld().lotWidth * TILE;
|
|
166
|
+
const segments = Math.ceil(lotW / STRIP_MAX_SEG);
|
|
167
|
+
// Round each segment up to a whole-tile width so the per-tile draw loop
|
|
168
|
+
// never splits a tile across two canvases.
|
|
169
|
+
const segW = Math.ceil(lotW / segments / TILE) * TILE;
|
|
170
|
+
for (let i = 0; i < segments; i++) {
|
|
171
|
+
const x0 = i * segW;
|
|
172
|
+
const w = Math.min(segW, lotW - x0);
|
|
173
|
+
// One extra pixel of width overlaps the next segment (same trick as
|
|
174
|
+
// makeGround) so no hairline seam shows at fractional zoom.
|
|
175
|
+
const cv = new ex.Canvas({
|
|
176
|
+
width: w + 1,
|
|
177
|
+
height: STRIP_ABOVE + STRIP_BELOW,
|
|
178
|
+
cache: true,
|
|
179
|
+
draw: (ctx) => drawStrip(ctx, rec, x0, w),
|
|
180
|
+
});
|
|
181
|
+
const a = new ex.Actor({
|
|
182
|
+
pos: ex.vec(x0, -STRIP_ABOVE),
|
|
183
|
+
width: w + 1,
|
|
184
|
+
height: STRIP_ABOVE + STRIP_BELOW,
|
|
185
|
+
anchor: ex.vec(0, 0),
|
|
186
|
+
z: Z_STRIP,
|
|
187
|
+
});
|
|
188
|
+
a.graphics.use(cv);
|
|
189
|
+
engine.engine.add(a);
|
|
190
|
+
rec.stripCanvases.push(cv);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
return rec;
|
|
194
|
+
}
|
|
195
|
+
/** Re-derive everything the built tower or the sim identity changes: the
|
|
196
|
+
* seed-derived skyline and plants (on a founding-seed change), the apron
|
|
197
|
+
* split, and which plants are still standing. Cheap; rides every scene sync,
|
|
198
|
+
* and the first call builds the static world (see the lifecycle note above). */
|
|
199
|
+
function syncScenery(engine) {
|
|
200
|
+
const rec = recs.get(engine) ?? makeScenery(engine);
|
|
201
|
+
const sim = engine.sim;
|
|
202
|
+
if (sim !== rec.sim) {
|
|
203
|
+
// A swapped sim (adoptSim: new game, load) must re-derive the apron
|
|
204
|
+
// below even when its revision counter happens to equal the old tower's,
|
|
205
|
+
// so the cache-buster mirrors towerScene.setSim's builtRev = -1 pattern.
|
|
206
|
+
rec.sim = sim;
|
|
207
|
+
rec.lastRevision = -1;
|
|
208
|
+
if (sim.rng.initialSeed !== rec.seed)
|
|
209
|
+
rebuildSeeded(engine, rec, sim.rng.initialSeed);
|
|
210
|
+
}
|
|
211
|
+
if (sim.tower.revision === rec.lastRevision)
|
|
212
|
+
return;
|
|
213
|
+
rec.lastRevision = sim.tower.revision;
|
|
214
|
+
const apron = apronRange(sim.tower.units);
|
|
215
|
+
const changed = apron?.min !== rec.apron?.min || apron?.max !== rec.apron?.max;
|
|
216
|
+
rec.apron = apron;
|
|
217
|
+
if (changed) {
|
|
218
|
+
for (const cv of rec.stripCanvases)
|
|
219
|
+
cv.flagDirty();
|
|
220
|
+
for (const p of rec.plants)
|
|
221
|
+
p.actor.graphics.opacity = plantVisible(p.spot, apron) ? 1 : 0;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
function rebuildSeeded(engine, rec, seed) {
|
|
225
|
+
rec.seed = seed;
|
|
226
|
+
for (const a of rec.seeded)
|
|
227
|
+
a.kill();
|
|
228
|
+
rec.seeded = [];
|
|
229
|
+
rec.plants = [];
|
|
230
|
+
// Skyline: continuous behind everything, two depths. Every rect is a solid
|
|
231
|
+
// color, so all of them share ONE tiny raster per depth, stretched by actor
|
|
232
|
+
// scale (nearest sampling keeps a solid fill exact). A colored Actor would
|
|
233
|
+
// rasterize its own full-size bitmap per rect, and at city-scale heights
|
|
234
|
+
// that added up to tens of MB of GPU textures on the old mobile GPUs this
|
|
235
|
+
// renderer budgets for; two 2x2 bitmaps replace all of it.
|
|
236
|
+
const sharedFill = (css) => new ex.Canvas({
|
|
237
|
+
width: 2,
|
|
238
|
+
height: 2,
|
|
239
|
+
cache: true,
|
|
240
|
+
draw: (ctx) => {
|
|
241
|
+
ctx.fillStyle = css;
|
|
242
|
+
ctx.fillRect(0, 0, 2, 2);
|
|
243
|
+
},
|
|
244
|
+
});
|
|
245
|
+
const fills = [sharedFill(SKYLINE_FILLS[0]), sharedFill(SKYLINE_FILLS[1])];
|
|
246
|
+
for (const r of skylineRects(seed)) {
|
|
247
|
+
const h = r.hFloors * FLOOR;
|
|
248
|
+
const a = new ex.Actor({
|
|
249
|
+
pos: ex.vec(r.tile * TILE, -h),
|
|
250
|
+
width: 2,
|
|
251
|
+
height: 2,
|
|
252
|
+
anchor: ex.vec(0, 0),
|
|
253
|
+
z: r.depth === 0 ? Z_SKY_FAR : Z_SKY_NEAR,
|
|
254
|
+
scale: ex.vec((r.w * TILE) / 2, h / 2),
|
|
255
|
+
});
|
|
256
|
+
a.graphics.use(fills[r.depth]);
|
|
257
|
+
engine.engine.add(a);
|
|
258
|
+
rec.seeded.push(a);
|
|
259
|
+
}
|
|
260
|
+
// Plants: one small canvas actor per spot; visibility follows the apron.
|
|
261
|
+
for (const spot of plantSpots(seed)) {
|
|
262
|
+
const tree = spot.kind === "tree";
|
|
263
|
+
const { x, y, w, h } = plantRect(spot);
|
|
264
|
+
const cv = new ex.Canvas({
|
|
265
|
+
width: w,
|
|
266
|
+
height: h,
|
|
267
|
+
cache: true,
|
|
268
|
+
draw: (ctx) => (tree ? drawTree(ctx, w, h, seed + spot.tile) : drawBush(ctx, w, h)),
|
|
269
|
+
});
|
|
270
|
+
const a = new ex.Actor({
|
|
271
|
+
pos: ex.vec(x, y),
|
|
272
|
+
width: w,
|
|
273
|
+
height: h,
|
|
274
|
+
anchor: ex.vec(0, 0),
|
|
275
|
+
z: Z_PLANT,
|
|
276
|
+
});
|
|
277
|
+
a.graphics.use(cv);
|
|
278
|
+
engine.engine.add(a);
|
|
279
|
+
rec.seeded.push(a);
|
|
280
|
+
rec.plants.push({ spot, actor: a });
|
|
281
|
+
}
|
|
282
|
+
// A fresh rec must re-apply visibility even if the revision has not moved.
|
|
283
|
+
for (const p of rec.plants)
|
|
284
|
+
p.actor.graphics.opacity = plantVisible(p.spot, rec.apron) ? 1 : 0;
|
|
285
|
+
}
|
|
286
|
+
// ---- draw helpers (plain 2D canvas, pixel-crisp fills) ----------------------
|
|
287
|
+
function drawStrip(ctx, rec, x0, w) {
|
|
288
|
+
// The canvas is w+1 wide (segment overlap); clear it all so a repaint from
|
|
289
|
+
// grass to cement leaves no stale blade pixels above the pave line.
|
|
290
|
+
ctx.clearRect(0, 0, w + 1, STRIP_ABOVE + STRIP_BELOW);
|
|
291
|
+
const apron = rec.apron;
|
|
292
|
+
for (let px = 0; px < w; px += TILE) {
|
|
293
|
+
const tile = Math.floor((x0 + px) / TILE);
|
|
294
|
+
drawStripTile(ctx, px, tile, apron !== null && tile >= apron.min && tile < apron.max);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export { STRIP_MAX_SEG, syncScenery };
|
|
299
|
+
//# sourceMappingURL=towerScenery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"towerScenery.js","sources":["../../../src/render/excalibur/towerScenery.ts"],"sourcesContent":["import * as ex from \"excalibur\";\nimport { Z } from \"../depthPlanes\";\nimport { viewWorld } from \"../../presentation/viewWorld\";\nimport { FLOOR, TILE } from \"../scale\";\nimport {\n SKYLINE_FILLS,\n apronRange,\n plantRect,\n plantSpots,\n plantVisible,\n sceneryPieces,\n skylineRects,\n type PlantSpot,\n} from \"../sceneryLayout\";\nimport {\n STRIP_ABOVE,\n STRIP_BELOW,\n drawBush,\n drawForecourt,\n drawFountain,\n drawPlanter,\n drawPlazaLamp,\n drawRoad,\n drawRoundabout,\n drawSidewalk,\n drawStreetLamp,\n drawStripTile,\n drawTree,\n lampAlpha,\n} from \"./towerSceneryDraw\";\nimport type { RenderSim } from \"../renderSim\";\nimport type { TowerEngine } from \"./TowerEngine\";\n\n/**\n * The world outside the tower (owner-approved scenery pass, 2026-07-21): a\n * continuous two-depth skyline of city-scale towers behind everything, a\n * fountain-roundabout arrival plaza with lamps at the left lot line, a paved\n * forecourt, sidewalk, street lamp, \"375 ST\" sign and road at the right one,\n * and a living ground line on the lot\n * itself: grass that yields to a cement apron as the tower's ground floor\n * grows, with trees and bushes that stand until construction paves them over.\n *\n * Layering contract: every actor here draws BEHIND the tower (negative z, at\n * or under the ground-line strip), so scenery can never cover a built room.\n * The skyline runs continuously across the whole scene, tower included; it\n * simply shows wherever the building does not.\n *\n * Lifecycle: `syncScenery` rides every scene sync (towerReconcile), building\n * the static world lazily on its first call (engine start runs a sync, so the\n * scenery is up before the first frame) and after that only re-deriving what\n * changed (it is cheap: the apron split, the thin ground-strip repaint, plant\n * visibility). The seed-derived pieces key off `sim.rng.initialSeed`, the\n * founding seed (NOT the live RNG state, which mutates every roll), so each\n * tower gets its own skyline and greenery and keeps it for life: across\n * sessions, saves, and undo. A sim swap (adoptSim, load) is detected by\n * object identity and re-derives the apron even when the incoming tower's\n * revision counter happens to match; an undo or redo step keeps the sim and\n * re-derives it from the revision the step raised. Lazy-on-first-sync keeps\n * TowerEngine itself untouched: this module plugs in entirely through the\n * reconcile pass.\n */\n\ninterface SceneryRec {\n /** The sim these records were derived from (adoptSim swaps the instance). */\n sim: RenderSim | null;\n seed: number;\n /** Seed-derived actors, killed and rebuilt when the founding seed changes. */\n seeded: ex.Actor[];\n plants: { spot: PlantSpot; actor: ex.Actor }[];\n /** The lot's ground strip (grass/apron), repainted in place on build. */\n stripCanvases: ex.Canvas[];\n apron: { min: number; max: number } | null;\n lastRevision: number;\n}\n\nconst recs = new WeakMap<TowerEngine, SceneryRec>();\n\n// Z order, back to front (sky sits at -60, dirt at -50, ground line at -49):\nconst Z_SKY_FAR = Z.skylineFar;\nconst Z_SKY_NEAR = Z.skylineNear;\nconst Z_STRIP = Z.strip;\nconst Z_EDGE = Z.groundEdge;\nconst Z_PLANT = Z.plant;\n\n// Ground strip canvas geometry (world px, STRIP_ABOVE and STRIP_BELOW from\n// towerSceneryDraw). The strip straddles the ground line: blades rise above\n// it, a soil lip hangs just below.\n/** Longest strip canvas in world px, under the 2048 mobile texture cap. Strips\n * past this split into `ceil(total / STRIP_MAX_SEG)` segments, so the SEGMENT\n * COUNT moves with `TILE`: a smaller tile shortens every strip and can drop a\n * segment. Exported so tests derive that count rather than hardcode one that\n * quietly rots the next time the world scale changes. */\nexport const STRIP_MAX_SEG = 1800;\n\nfunction makeScenery(engine: TowerEngine): SceneryRec {\n const pieces = sceneryPieces();\n const rec: SceneryRec = {\n sim: null,\n seed: NaN,\n seeded: [],\n plants: [],\n stripCanvases: [],\n apron: null,\n lastRevision: -1,\n };\n recs.set(engine, rec);\n\n // ---- static pieces (identical for every tower) --------------------------\n\n // Left edge: sidewalk off the lot line, then a fountain roundabout where\n // arriving traffic turns around, then the road off the scene's left side.\n {\n const { x, y, w, h } = pieces.plazaSidewalk;\n const cv = new ex.Canvas({ width: w, height: h, cache: true, draw: (ctx) => drawSidewalk(ctx, w) });\n const a = new ex.Actor({ pos: ex.vec(x, y), width: w, height: h, anchor: ex.vec(0, 0), z: Z_EDGE });\n a.graphics.use(cv);\n engine.engine.add(a);\n }\n {\n // Roundabout: an elliptical drive around a grassy center island.\n const { x, y, w, h } = pieces.roundabout;\n const cv = new ex.Canvas({ width: w, height: h, cache: true, draw: (ctx) => drawRoundabout(ctx, w) });\n const a = new ex.Actor({ pos: ex.vec(x, y), width: w, height: h, anchor: ex.vec(0, 0), z: Z_EDGE });\n a.graphics.use(cv);\n engine.engine.add(a);\n }\n {\n // The fountain on the island, in front of the ring's back edge. LIVE:\n // cache:false (the sky's pattern) so the water re-rasters each frame from\n // the decorative clock; it freezes with pause and reduced motion, and the\n // stepped clock keeps screenshots deterministic. The canvas is tiny, so\n // the per-frame cost is noise.\n const { x, y, w, h } = pieces.fountain;\n const cv = new ex.Canvas({ width: w, height: h, cache: false, draw: (ctx) => drawFountain(ctx, w, h, engine.d.anim) });\n const a = new ex.Actor({ pos: ex.vec(x, y), width: w, height: h, anchor: ex.vec(0, 0), z: Z_PLANT });\n a.graphics.use(cv);\n engine.engine.add(a);\n }\n {\n // Plaza lamps flanking the drive. Live like the fountain (cache:false):\n // dark fixtures by day, fading in through dusk to a warm glow with a pool\n // of light on the pavement, keyed to the sim clock so pause and the\n // stepped screenshot clock behave.\n for (const { x, y, w, h } of pieces.plazaLamps) {\n const cv = new ex.Canvas({\n width: w,\n height: h,\n cache: false,\n draw: (ctx) => drawPlazaLamp(ctx, w, h, lampAlpha(engine.sim.clock.minuteOfDay / 60)),\n });\n const a = new ex.Actor({ pos: ex.vec(x, y), width: w, height: h, anchor: ex.vec(0, 0), z: Z_PLANT });\n a.graphics.use(cv);\n engine.engine.add(a);\n }\n }\n {\n // Road running from the roundabout to the dirt's left edge, in\n // texture-safe segments (the full run is far past the 2048 cap).\n const from = pieces.leftRoad.x / TILE;\n const to = (pieces.leftRoad.x + pieces.leftRoad.w) / TILE;\n const total = (to - from) * TILE;\n const segments = Math.ceil(total / STRIP_MAX_SEG);\n const segW = Math.ceil(total / segments / TILE) * TILE;\n for (let i = 0; i < segments; i++) {\n const x0 = from * TILE + i * segW;\n const w = Math.min(segW, to * TILE - x0) + 1; // 1px overlap hides seams\n // Phase the lane dashes off WORLD x, not segment-local x, so the dash\n // rhythm carries across segment seams unbroken.\n const period = TILE * 4;\n const phase = (((4 - x0) % period) + period) % period;\n const cv = new ex.Canvas({ width: w, height: 14, cache: true, draw: (ctx) => drawRoad(ctx, w, phase) });\n const a = new ex.Actor({ pos: ex.vec(x0, -2), width: w, height: 14, anchor: ex.vec(0, 0), z: Z_EDGE });\n a.graphics.use(cv);\n engine.engine.add(a);\n }\n }\n\n // Forecourt (cement, same finish as the tower apron so it reads as yours).\n {\n const { x, y, w, h } = pieces.forecourt;\n const cv = new ex.Canvas({ width: w, height: h, cache: true, draw: (ctx) => drawForecourt(ctx, w) });\n const a = new ex.Actor({ pos: ex.vec(x, y), width: w, height: h, anchor: ex.vec(0, 0), z: Z_EDGE });\n a.graphics.use(cv);\n engine.engine.add(a);\n }\n\n // Sidewalk with expansion joints.\n {\n const { x, y, w, h } = pieces.sidewalk;\n const cv = new ex.Canvas({ width: w, height: h, cache: true, draw: (ctx) => drawSidewalk(ctx, w) });\n const a = new ex.Actor({ pos: ex.vec(x, y), width: w, height: h, anchor: ex.vec(0, 0), z: Z_EDGE });\n a.graphics.use(cv);\n engine.engine.add(a);\n }\n\n // The road: asphalt a curb-step below the sidewalk, with lane dashes.\n {\n const { x, y, w, h } = pieces.rightRoad;\n // Dashes from 4 px in (the first `phase - period` dash falls off the left).\n const cv = new ex.Canvas({ width: w, height: h, cache: true, draw: (ctx) => drawRoad(ctx, w, 4) });\n const a = new ex.Actor({ pos: ex.vec(x, y), width: w, height: h, anchor: ex.vec(0, 0), z: Z_EDGE });\n a.graphics.use(cv);\n engine.engine.add(a);\n }\n\n // Street lamp with the 375 ST sign, on the sidewalk. Same live day/night\n // head as the plaza lamps; the sign reads at any hour.\n {\n const { x, y, w, h } = pieces.streetLamp;\n const cv = new ex.Canvas({\n width: w,\n height: h,\n cache: false,\n draw: (ctx) => drawStreetLamp(ctx, w, h, lampAlpha(engine.sim.clock.minuteOfDay / 60)),\n });\n const a = new ex.Actor({\n pos: ex.vec(x, y),\n width: w,\n height: h,\n anchor: ex.vec(0, 0),\n z: Z_PLANT,\n });\n a.graphics.use(cv);\n engine.engine.add(a);\n }\n\n // Planter on the forecourt: a touch of green that survives a full-width lot.\n {\n const { x, y, w, h } = pieces.planter;\n const cv = new ex.Canvas({ width: w, height: h, cache: true, draw: (ctx) => drawPlanter(ctx, w, h) });\n const a = new ex.Actor({\n pos: ex.vec(x, y),\n width: w,\n height: h,\n anchor: ex.vec(0, 0),\n z: Z_PLANT,\n });\n a.graphics.use(cv);\n engine.engine.add(a);\n }\n\n // ---- the lot's ground strip (grass/apron), repainted on build -----------\n {\n const lotW = viewWorld().lotWidth * TILE;\n const segments = Math.ceil(lotW / STRIP_MAX_SEG);\n // Round each segment up to a whole-tile width so the per-tile draw loop\n // never splits a tile across two canvases.\n const segW = Math.ceil(lotW / segments / TILE) * TILE;\n for (let i = 0; i < segments; i++) {\n const x0 = i * segW;\n const w = Math.min(segW, lotW - x0);\n // One extra pixel of width overlaps the next segment (same trick as\n // makeGround) so no hairline seam shows at fractional zoom.\n const cv = new ex.Canvas({\n width: w + 1,\n height: STRIP_ABOVE + STRIP_BELOW,\n cache: true,\n draw: (ctx) => drawStrip(ctx, rec, x0, w),\n });\n const a = new ex.Actor({\n pos: ex.vec(x0, -STRIP_ABOVE),\n width: w + 1,\n height: STRIP_ABOVE + STRIP_BELOW,\n anchor: ex.vec(0, 0),\n z: Z_STRIP,\n });\n a.graphics.use(cv);\n engine.engine.add(a);\n rec.stripCanvases.push(cv);\n }\n }\n return rec;\n}\n\n/** Re-derive everything the built tower or the sim identity changes: the\n * seed-derived skyline and plants (on a founding-seed change), the apron\n * split, and which plants are still standing. Cheap; rides every scene sync,\n * and the first call builds the static world (see the lifecycle note above). */\nexport function syncScenery(engine: TowerEngine): void {\n const rec = recs.get(engine) ?? makeScenery(engine);\n const sim = engine.sim;\n if (sim !== rec.sim) {\n // A swapped sim (adoptSim: new game, load) must re-derive the apron\n // below even when its revision counter happens to equal the old tower's,\n // so the cache-buster mirrors towerScene.setSim's builtRev = -1 pattern.\n rec.sim = sim;\n rec.lastRevision = -1;\n if (sim.rng.initialSeed !== rec.seed) rebuildSeeded(engine, rec, sim.rng.initialSeed);\n }\n if (sim.tower.revision === rec.lastRevision) return;\n rec.lastRevision = sim.tower.revision;\n const apron = apronRange(sim.tower.units);\n const changed = apron?.min !== rec.apron?.min || apron?.max !== rec.apron?.max;\n rec.apron = apron;\n if (changed) {\n for (const cv of rec.stripCanvases) cv.flagDirty();\n for (const p of rec.plants) p.actor.graphics.opacity = plantVisible(p.spot, apron) ? 1 : 0;\n }\n}\n\nfunction rebuildSeeded(engine: TowerEngine, rec: SceneryRec, seed: number): void {\n rec.seed = seed;\n for (const a of rec.seeded) a.kill();\n rec.seeded = [];\n rec.plants = [];\n\n // Skyline: continuous behind everything, two depths. Every rect is a solid\n // color, so all of them share ONE tiny raster per depth, stretched by actor\n // scale (nearest sampling keeps a solid fill exact). A colored Actor would\n // rasterize its own full-size bitmap per rect, and at city-scale heights\n // that added up to tens of MB of GPU textures on the old mobile GPUs this\n // renderer budgets for; two 2x2 bitmaps replace all of it.\n const sharedFill = (css: string): ex.Canvas =>\n new ex.Canvas({\n width: 2,\n height: 2,\n cache: true,\n draw: (ctx) => {\n ctx.fillStyle = css;\n ctx.fillRect(0, 0, 2, 2);\n },\n });\n const fills: [ex.Canvas, ex.Canvas] = [sharedFill(SKYLINE_FILLS[0]), sharedFill(SKYLINE_FILLS[1])];\n for (const r of skylineRects(seed)) {\n const h = r.hFloors * FLOOR;\n const a = new ex.Actor({\n pos: ex.vec(r.tile * TILE, -h),\n width: 2,\n height: 2,\n anchor: ex.vec(0, 0),\n z: r.depth === 0 ? Z_SKY_FAR : Z_SKY_NEAR,\n scale: ex.vec((r.w * TILE) / 2, h / 2),\n });\n a.graphics.use(fills[r.depth]);\n engine.engine.add(a);\n rec.seeded.push(a);\n }\n\n // Plants: one small canvas actor per spot; visibility follows the apron.\n for (const spot of plantSpots(seed)) {\n const tree = spot.kind === \"tree\";\n const { x, y, w, h } = plantRect(spot);\n const cv = new ex.Canvas({\n width: w,\n height: h,\n cache: true,\n draw: (ctx) => (tree ? drawTree(ctx, w, h, seed + spot.tile) : drawBush(ctx, w, h)),\n });\n const a = new ex.Actor({\n pos: ex.vec(x, y),\n width: w,\n height: h,\n anchor: ex.vec(0, 0),\n z: Z_PLANT,\n });\n a.graphics.use(cv);\n engine.engine.add(a);\n rec.seeded.push(a);\n rec.plants.push({ spot, actor: a });\n }\n // A fresh rec must re-apply visibility even if the revision has not moved.\n for (const p of rec.plants) p.actor.graphics.opacity = plantVisible(p.spot, rec.apron) ? 1 : 0;\n}\n\n// ---- draw helpers (plain 2D canvas, pixel-crisp fills) ----------------------\n\nfunction drawStrip(ctx: CanvasRenderingContext2D, rec: SceneryRec, x0: number, w: number): void {\n // The canvas is w+1 wide (segment overlap); clear it all so a repaint from\n // grass to cement leaves no stale blade pixels above the pave line.\n ctx.clearRect(0, 0, w + 1, STRIP_ABOVE + STRIP_BELOW);\n const apron = rec.apron;\n for (let px = 0; px < w; px += TILE) {\n const tile = Math.floor((x0 + px) / TILE);\n drawStripTile(ctx, px, tile, apron !== null && tile >= apron.min && tile < apron.max);\n }\n}\n"],"names":[],"mappings":";;;;;;;AA2EA,MAAM,IAAI,GAAG,IAAI,OAAO,EAA2B;AAEnD;AACA,MAAM,SAAS,GAAG,CAAC,CAAC,UAAU;AAC9B,MAAM,UAAU,GAAG,CAAC,CAAC,WAAW;AAChC,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK;AACvB,MAAM,MAAM,GAAG,CAAC,CAAC,UAAU;AAC3B,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK;AAEvB;AACA;AACA;AACA;;;;AAI0D;AACnD,MAAM,aAAa,GAAG;AAE7B,SAAS,WAAW,CAAC,MAAmB,EAAA;AACtC,IAAA,MAAM,MAAM,GAAG,aAAa,EAAE;AAC9B,IAAA,MAAM,GAAG,GAAe;AACtB,QAAA,GAAG,EAAE,IAAI;AACT,QAAA,IAAI,EAAE,GAAG;AACT,QAAA,MAAM,EAAE,EAAE;AACV,QAAA,MAAM,EAAE,EAAE;AACV,QAAA,aAAa,EAAE,EAAE;AACjB,QAAA,KAAK,EAAE,IAAI;QACX,YAAY,EAAE,CAAC,CAAC;KACjB;AACD,IAAA,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;;;;IAMrB;AACE,QAAA,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC,aAAa;AAC3C,QAAA,MAAM,EAAE,GAAG,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,GAAG,KAAK,YAAY,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC;AACnG,QAAA,MAAM,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAA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,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,WAAW,GAAG,WAAW,CAAC;AACrD,IAAA,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK;AACvB,IAAA,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,IAAI,IAAI,EAAE;AACnC,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,IAAI,CAAC;QACzC,aAAa,CAAC,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,KAAK,IAAI,IAAI,IAAI,IAAI,KAAK,CAAC,GAAG,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC;IACvF;AACF;;"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { STRIP_ABOVE, STRIP_BELOW } from "../sceneryLayout";
|
|
2
|
+
/**
|
|
3
|
+
* Pure canvas painters for the outside-world scenery: the plaza's roundabout,
|
|
4
|
+
* fountain, and lamps, the right-edge street lamp and planter, the lot's trees
|
|
5
|
+
* and bushes, and the ground pieces (sidewalk, road, forecourt and the lot's
|
|
6
|
+
* grass or cement strip). Split from towerScenery.ts (the actor/lifecycle
|
|
7
|
+
* half) at the file-size ceiling; everything here draws into a plain 2D
|
|
8
|
+
* context and holds no state, so the scenery tests drive each painter with a
|
|
9
|
+
* recording spy context, and the sprite atlas bakes the same painters.
|
|
10
|
+
*/
|
|
11
|
+
export declare function drawRoundabout(ctx: CanvasRenderingContext2D, w: number): void;
|
|
12
|
+
export declare function drawFountain(ctx: CanvasRenderingContext2D, w: number, h: number, t: number): void;
|
|
13
|
+
/** 0 by day, 1 by night, ramping through dusk (18:00-20:00) and dawn
|
|
14
|
+
* (5:00-7:00). Fed from the sim clock's fractional hour. */
|
|
15
|
+
export declare function lampAlpha(hour: number): number;
|
|
16
|
+
export declare function drawPlazaLamp(ctx: CanvasRenderingContext2D, w: number, h: number, a: number): void;
|
|
17
|
+
export declare function drawStreetLamp(ctx: CanvasRenderingContext2D, w: number, h: number, a: number): void;
|
|
18
|
+
export declare function drawPlanter(ctx: CanvasRenderingContext2D, w: number, h: number): void;
|
|
19
|
+
/** The tree and bush paint, as a table the atlas publishes (docs/atlas.md,
|
|
20
|
+
* "Seeded by the tower") so a frontend can paint a plant at its own size. */
|
|
21
|
+
export declare const PLANT_PAINT: {
|
|
22
|
+
readonly tree: {
|
|
23
|
+
readonly trunk: {
|
|
24
|
+
readonly color: "#6d4c2a";
|
|
25
|
+
readonly w: 0.12;
|
|
26
|
+
readonly minW: 2;
|
|
27
|
+
readonly h: 0.3;
|
|
28
|
+
};
|
|
29
|
+
readonly canopy: readonly [{
|
|
30
|
+
readonly w: 1;
|
|
31
|
+
readonly y: 0.32;
|
|
32
|
+
readonly color: "#3e6b2e";
|
|
33
|
+
}, {
|
|
34
|
+
readonly w: 0.78;
|
|
35
|
+
readonly y: 0.52;
|
|
36
|
+
readonly color: "#4a7c36";
|
|
37
|
+
}, {
|
|
38
|
+
readonly w: 0.5;
|
|
39
|
+
readonly y: 0.72;
|
|
40
|
+
readonly color: "#568c3e";
|
|
41
|
+
}];
|
|
42
|
+
readonly canopyH: 0.26;
|
|
43
|
+
readonly jitterKey: 97;
|
|
44
|
+
};
|
|
45
|
+
readonly bush: {
|
|
46
|
+
readonly base: {
|
|
47
|
+
readonly color: "#4a7c36";
|
|
48
|
+
readonly y: 0.4;
|
|
49
|
+
readonly h: 0.6;
|
|
50
|
+
};
|
|
51
|
+
readonly top: {
|
|
52
|
+
readonly color: "#568c3e";
|
|
53
|
+
readonly x: 0.16;
|
|
54
|
+
readonly w: 0.68;
|
|
55
|
+
readonly h: 0.5;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export declare function drawTree(ctx: CanvasRenderingContext2D, w: number, h: number, seed: number): void;
|
|
60
|
+
export declare function drawBush(ctx: CanvasRenderingContext2D, w: number, h: number): void;
|
|
61
|
+
/** Cement paving and its joint lines (the forecourt and the tower's apron). */
|
|
62
|
+
export declare const PAVE = "#b0b0a8";
|
|
63
|
+
export declare const PAVE_JOINT = "#8a8a82";
|
|
64
|
+
/** A sidewalk run `w` px wide (11 px tall) with an expansion joint every tile. */
|
|
65
|
+
export declare function drawSidewalk(ctx: CanvasRenderingContext2D, w: number): void;
|
|
66
|
+
/** A road run `w` px wide (14 px tall) with lane dashes every four tiles,
|
|
67
|
+
* the first starting `phase` px in (a dash may start off the left edge). */
|
|
68
|
+
export declare function drawRoad(ctx: CanvasRenderingContext2D, w: number, phase: number): void;
|
|
69
|
+
/** The forecourt's cement run `w` px wide (10 px tall), a joint every two tiles. */
|
|
70
|
+
export declare function drawForecourt(ctx: CanvasRenderingContext2D, w: number): void;
|
|
71
|
+
export { STRIP_ABOVE, STRIP_BELOW };
|
|
72
|
+
/** The lot's three grass shades. */
|
|
73
|
+
export declare const GRASS_SHADES: readonly ["#446c2e", "#4e7a34", "#5b8a3c"];
|
|
74
|
+
/** A lot tile's grass: its shade (an index into {@link GRASS_SHADES}) and
|
|
75
|
+
* whether its blades stand one pixel taller (a tuft), both from the tile. */
|
|
76
|
+
export declare function grassLook(tile: number): {
|
|
77
|
+
shade: 0 | 1 | 2;
|
|
78
|
+
tuft: boolean;
|
|
79
|
+
};
|
|
80
|
+
/** Paving joints fall on every lot tile whose index is a multiple of this. */
|
|
81
|
+
export declare const PAVE_JOINT_EVERY = 4;
|
|
82
|
+
/** One tile of the lot's ground strip at `px`: cement (with a joint on every
|
|
83
|
+
* fourth lot tile) where the tower has paved it, else grass whose shade and
|
|
84
|
+
* tuft come from the lot tile index. Fills one column past the tile; the
|
|
85
|
+
* next tile, drawn after it, paints over the rows it covers. */
|
|
86
|
+
export declare function drawStripTile(ctx: CanvasRenderingContext2D, px: number, tile: number, paved: boolean): void;
|