Skip to content

A town simulation in pale isometric line art, implemented with Ritmo ECS and PixiJs 3D

474 B
Raw Blame
import { Game } from "../../../game/schema.ts"
import { Shown } from "../../../view/services.ts"
import { StageService } from "../services.ts"

/** The map view, washed over the town. */
export const DrawOverlay = Game.System(
  "Town/DrawOverlay",
  { services: { shown: Game.System.service(Shown), stage: Game.System.service(StageService) } },
  ({ services }) => {
    services.stage.setOverlay(services.shown.scene.overlay.key, services.shown.scene.overlay.cells)
  }
)