Youcaneither:
Gotohttps://photonstorm.github.io/phaser3-docs/index.htmltoreadthedocsonline.Usethedrop-downmenusatthetoptonavigatethenamespaces,classesandGameObjectslists.
Or,youcancheckoutthisrepositoryandthenreadthedocumentationbypointingyourbrowsertothelocaldocs/folder.AgainusingtheClassesandNamespaceslinksatthetopofthepagetonavigate.
Youcanalsogeneratenewdocslocallybyrunningnpmrungenandwaiting(itmaytakeuptoanhourtogeneratethedocs).SeeGeneratingtheDocsLocallybelowformoreinstructions.
TypeScriptDefinitionsTheTypeScriptdefshavebeenmovedtothemainPhaserrepository.
GeneratingtheDocsLocallyPhaserusesthepopularjsdoc,whichmeansthedocumentationitselfiswritteninthesourcecodeinthePhaserrepository.Inordertoregeneratethedocs,you'llneedtoclonethatrepositoryanditmustbeinafoldernamedphaserintheparentdirectory.
Thenrunnpminstalltoinstalldependencies,andfinallyrunnpmrungen.Thegenerateddocswillbeinanewdirectorycalledout/.Doubleclickonout/index.htmltobrowsethegenerateddocumentation.
评论