SolidJSVite游戏站

phaser-editor-template-solid — SolidJS 游戏站模板

作者 phaserjs

Phaser Editor 4 官方项目模板,用 SolidJS 与 TypeScript 编写游戏逻辑,Vite 负责打包,支持热更新与生产构建。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

3 个预览视图
桌面端首页1 / 3
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 3

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-07查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

Phaser Editor v4 官方项目模板,编辑器可视化编辑后输出纯 Phaser 代码

02

SolidJS + TypeScript 组织页面与游戏逻辑,Vite 提供开发服务器和打包

03

预置 boot-asset-pack.json 与 preload-asset-pack.json 两类资源包配置

04

提供 /.skip 文件,控制哪些目录和文件不进入 Phaser Editor 项目

05

npm run dev 支持热更新开发,npm run build 输出到 dist 目录

模板详细介绍

这是 Phaser 官方仓库中的 Phaser Editor v4 项目模板,把 Phaser 游戏运行时与 SolidJS 前端框架组合在一起,使用 TypeScript 编写代码,由 Vite 完成开发服务器与生产打包。模板面向在 Phaser Editor 中可视化搭建游戏的项目:编辑器负责拖放游戏对象、调整动画与物理体并输出纯 Phaser 代码,SolidJS 负责页面层与 UI 的组织。

模板预置了两类资源包配置文件:boot-asset-pack.json 用于游戏启动阶段加载少量初始资源(如加载画面与进度条),preload-asset-pack.json 存放其余资源;README 建议大型游戏按需拆分为多个资源包。仓库还包含 /.skip 文件,用于在 Phaser Editor 中排除 node_modules 等不需要进入编辑器项目的内容。

使用限制方面:运行依赖 Node.js 与 npm;在 Phaser Editor 中加载和使用该模板需要有效的 Phaser Editor 订阅。代码采用 MIT 许可,但演示图片、字体、图标等第三方素材需单独核对许可,域名、托管等外部服务可能另行收费。

SolidJSVite游戏站

适合你的项目吗?

适用场景

  • 在 Phaser Editor 中拖放游戏对象、调整动画与物理体,再配合 SolidJS 编写界面层
  • 需要热更新开发流程、并希望用 Vite 打包 Phaser 游戏的 TypeScript 项目
  • 按启动阶段与预加载阶段拆分资源包的中小型 Phaser 游戏
  • 作为 Phaser Editor 4 项目的起始结构,在此基础上扩展场景与资源

适合人群

  • 已订阅 Phaser Editor 并希望用可视化方式搭建 Phaser 游戏的开发者
  • 熟悉 SolidJS 与 TypeScript、需要 Vite 构建流程的前端开发者
  • 想参考官方资源包与编辑器资源过滤配置的 Phaser 项目

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    需要安装 Node.js,并通过 npm 安装依赖与运行脚本

  2. 2

    在 Phaser Editor 中加载和使用该模板需要有效的 Phaser Editor 订阅

  3. 3

    npm run dev 启动本地开发服务器,npm run build 生成 dist 目录

  4. 4

    部署时需将 dist 目录的全部内容上传到可公开访问的 Web 服务器

  5. 5

    演示图片、字体、图标等第三方素材需按各自许可单独核对

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
  • 在 Phaser Editor 中加载和使用该模板需要有效的 Phaser Editor 订阅,属于付费要求。
  • 该模板要求 Phaser Editor v4.0 及以上版本。
  • 运行依赖 Node.js 与 npm 来安装依赖和执行脚本。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

An active subscription to Phaser Editor is required to load and use this template within it.

README 原文

Phaser Editor v4.0 and above

README 原文

[Node.js](https://nodejs.org) is required to install dependencies and run scripts via `npm`.

README 原文
https://github.com/phaserjs/phaser-editor-template-solid/blob/main/LICENSEhttps://github.com/phaserjs/phaser-editor-template-solid/blob/main/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-07。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 88 / 100
技术栈
SolidJS · Vite
网站类型
游戏站
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2026-04-10
截图检查日期
2026-10-07

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 SolidJS。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

审核声明: [email protected] · 2026-10-08

查看当时使用的来源资料

SHA-256: 379c39747c2b901ef8615507578f52ee22027861392c1f775e9e237576346db1

2026-10-07T19:03:41.661Z

来源文件 / 仓库
# Phaser Editor Solid Template

This is a Phaser Editor v4 project template that uses Solid for bundling. It supports hot-reloading for quick development workflow and includes scripts to generate production-ready builds.

### Versions

This template has been updated for:

- [Phaser 3.88.2](https://github.com/phaserjs/phaser)
- Phaser Editor v4.0 and above

![screenshot](screenshot.png)

## What is Phaser Editor?

Phaser Editor enables you to visually create Phaser games. Instead of entering numbers in your code to position Game Objects, you can drag and drop them into place, tweak their animations, adjust their physics bodies, enable special effects, and more. It's quicker and faster for both artists and developers alike and publishes pure Phaser code.

See more at [phaser.io](https://phaser.io/editor)

## Requirements

[Node.js](https://nodejs.org) is required to install dependencies and run scripts via `npm`.

An active subscription to Phaser Editor is required to load and use this template within it.

## Available Commands

| Command | Description |
|---------|-------------|
| `npm install` | Install project dependencies |
| `npm run dev` | Launch a development web server |
| `npm run build` | Create a production build in the `dist` folder |

## Writing Code

After cloning the repo, run `npm install` from your project directory.

To start the local development server use `npm run dev`.

## Deploying to Production

To create a production build use the command `npm run build`.

This will take your game code and build it into a single bundle, ready for deployment. This bundle is saved to the `dist` folder. Please note that some templates save to the `build` folder instead. The deployment script will also copy any assets your project imported, or stored in the public assets folder.

To deploy your game, upload *all* of the contents of the `dist` folder to a public-facing web server.

**Note:** In some templates, the `dist` folder has been renamed to `build` to remain within that framework's conventions.

## Phaser Editor considerations

### Excluding files from the project

You don't want to add every file in this template to your Phaser Editor project. For example, the whole of `node_modules` can be excluded.

The `/.skip` file lists the folders and files to exclude from the editor's project.

[Learn more about resource filtering in Phaser Editor](https://phaser.io/editor/docs/misc/resources-filtering)

### Asset Pack

Phaser has the ability to load what are known as 'asset packs'. These are JSON files that describe all of the content that your game needs to load, such as images, audio, and fonts. Phaser Editor will generate and use asset packs intensively and tools such as the Scene Editor depend upon the information stored in the asset pack files.

You can have multiple asset packs per project, which is the recommended practice for larger games, allowing you to load only the pack of assets the game requires at that specific point.

In this template, we have pre-configured two types of asset packs: `boot-asset-pack.json` and `preload-asset-pack.json`.

The `boot-asset-pack.json` file is used to load assets when the game first boots. Typically, you would store a small selection of initial assets in here, such as a loading screen image and progress bar.

The `preload-asset-pack.json` in this template contains the rest of the assets the game needs. You are free to create additional packs as required, but for the sake of simplicity, this template has been configured with just these two packs.

[Learn more about Asset Pack loading in Phaser](https://newdocs.phaser.io/docs/3.80.0/Phaser.Loader.LoaderPlugin#pack)

## Join the Phaser Community!

We love to see what developers like you create with Phaser! It really motivates us to keep improving. So please join our community and show off your work 😄

**Visit:** The [Phaser website](https://phaser.io) and follow on [Phaser Twitter](https://twitter.com/phaser_)<br />
**Play:** Some of the amazing games [#madewithphaser](https://twitter.com/search?q=%23madewithphaser&src=typed_query&f=live)<br />
**Learn:** [API Docs](https://newdocs.phaser.io), [Support Forum](https://phaser.discourse.group/) and [StackOverflow](https://stackoverflow.com/questions/tagged/phaser-framework)<br />
**Discord:** Join us on [Discord](https://discord.gg/phaser)<br />
**Code:** 2000+ [Examples](https://labs.phaser.io)<br />
**Read:** The [Phaser World](https://phaser.io/community/newsletter) Newsletter<br />

Created by [Phaser Studio](mailto:[email protected]). Powered by coffee, anime, pixels and love.

The Phaser logo and characters are &copy; 2011 - 2025 Phaser Studio Inc.

All rights reserved.
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。