In src/modules/main/client/index.ts
:
import { RpgClient, RpgModule, RpgSceneMap } from '@rpgjs/client'
@RpgModule<RpgClient>({
// others options here and ...
scenes: {
map: {
onAfterLoading(scene: RpgSceneMap) {
scene.viewport?.setZoom(2) // https://davidfig.github.io/pixi-viewport/jsdoc/Viewport.html#setZoom
}
}
}
})
export default class RpgClientModuleEngine {}