要解决的问题The problem
在不依赖框架、构建工具和外部素材的条件下,做出能直接在浏览器运行并具有持续探索感的沙盒游戏。Build a sandbox game that runs directly in the browser and keeps a sense of exploration, with no framework, build tooling or external assets.
实现思路Approach
用单个 HTML 文件实现程序化世界生成、采集与合成、敌人 AI、光照和昼夜系统,并在本地自动保存进度。One HTML file holds procedural world generation, mining and crafting, enemy AI, lighting and a day-night system, with automatic local saves.
公开证据Public evidence
- 完整游戏封装在单个 HTML 文件中,无需安装依赖或后端服务The complete game ships in a single HTML file, with no dependencies or backend services
- 包含挖掘、放置、装备、背包、合成、战斗和昼夜循环Includes digging, placing, equipment, inventory, crafting, combat and a day-night cycle
- 每 20 秒通过 LocalStorage 自动保存世界与玩家进度Saves the world and player progress to LocalStorage every 20 seconds
当前限制Current limits
- 主要面向键盘和鼠标操作,移动端暂未提供完整触控方案Designed mainly for keyboard and mouse; mobile has no full touch control scheme yet
- 存档仅保存在当前浏览器本地,清理站点数据后无法恢复Saves stay in the current browser only, and clearing site data loses them