~/projects/terraria

在线可玩Playable online2026-07-18 更新Updated 2026-07-18

Mini Terraria

无需安装即可游玩的单文件 HTML5 沙盒游戏,包含采集、建造、合成、战斗和昼夜循环。A single-file HTML5 sandbox game you can play without installing anything, with mining, building, crafting, combat and a day-night cycle.

HTML5 CanvasJavaScriptWeb AudioLocalStorage
01 / PROBLEM

要解决的问题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.

02 / APPROACH

实现思路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.

03 / EVIDENCE

公开证据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
04 / LIMITS

当前限制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