Const
The framework's rendering choices by workload. This is data, not a global renderer switch: each game imports only the module it uses and keeps 2D Pixi and optional 3D Babylon paths independent.
import { RENDERING_DECISIONS } from '@datamoc/mw_games/two-d/render';const particles = RENDERING_DECISIONS.find((d) => d.workload === 'particles');console.log(particles?.preferred); // 'PixiJS for 2D, Babylon.js for 3D' Copy
import { RENDERING_DECISIONS } from '@datamoc/mw_games/two-d/render';const particles = RENDERING_DECISIONS.find((d) => d.workload === 'particles');console.log(particles?.preferred); // 'PixiJS for 2D, Babylon.js for 3D'
The framework's rendering choices by workload. This is data, not a global renderer switch: each game imports only the module it uses and keeps 2D Pixi and optional 3D Babylon paths independent.