Starter Kit Reference¶
This repository ships a cloneable starter package scaffold under:
starter-kit/yabfs-game-starter
GitHub tree:
https://github.com/SoftCreatRMedia/yabfs-games-dev-guide/tree/main/starter-kit/yabfs-game-starter
What is included¶
package.xmlwith baseline package wiring and dependenciesobjectType.xmlprovider registration templatetemplateListener.xml+ JS language templatelanguage/*.xmlforen, de, cs, da, es, fr, hu, it, nl, no, pl, ro, ru, sv, tr- provider/runtime PHP classes with a working minimal game flow
- TypeScript module + registry bridge + full lint/build toolchain config
- dev dependencies aligned with YABFS game packages (
TypeScript,ESLint,Prettier,esbuild, shared types package)
Quick start¶
- Copy
starter-kit/yabfs-game-starterinto your own extension repository. - Rename package/class/language identifiers from
exampleGameto your game type. - Run
npm i && npm run buildto compile the frontend module. - Install package in your WoltLab dev instance.
- Replace the example move logic with your own game logic.
Included tree¶
starter-kit/yabfs-game-starter/
├─ package.xml
├─ objectType.xml
├─ templateListener.xml
├─ language/
│ ├─ en.xml
│ ├─ de.xml
│ └─ ... (cs, da, es, fr, hu, it, nl, no, pl, ro, ru, sv, tr)
├─ files/
│ └─ lib/system/yabfs/game/
│ ├─ provider/ExampleGameProvider.class.php
│ └─ runtime/ExampleGameRuntime.class.php
├─ templates/
│ └─ __yabfsGamePlayLanguageExampleGame.tpl
└─ ts/
└─ SoftCreatR/Yabfs/Ui/Page/Games/
├─ Contracts.ts
├─ Registry.ts
└─ ExampleGame.ts
This starter is intentionally small but fully working, so it can be used directly as a base package.