ZH

SONIC PHP

作者:davidnurdin · 平台跳跃
5.0 (1)
▶ 开玩 💬 反馈 源码 🕘 版本 编辑 GitHub
. / src / Util / Assets.php · commit a20d00e
<?phpnamespace App\Util;use JumPHP\Kernel\GameConfig;/** The game's files (assets/: levels, pictures, sounds), the same on desktop and in the browser. */final class Assets{    public function __construct(private GameConfig $config)    {    }    public function getAssetFolder(): string    {        return $this->config->path('assets');    }}