展示HN:一款带有物理沙盒和Excel克隆迷你游戏的类 roguelike 游戏

1作者: yutokure29 天前原帖
嗨,HN, 我是这个项目的创始人。在过去的几年里,我一直在独立开发这个从简单的 Roguelike 游戏演变而来的项目……现在变成了这样。它是一个庞大的、开源的、基于浏览器的游戏/平台,完全使用原生 JavaScript、HTML 和 CSS 构建。 演示链接:<a href="https://yutokure.github.io/yu-roguelike/site/" rel="nofollow">https://yutokure.github.io/yu-roguelike/site/</a> GitHub (MIT):<a href="https://github.com/yutokure/yu-roguelike/tree/main" rel="nofollow">https://github.com/yutokure/yu-roguelike/tree/main</a> 这个项目有三个核心支柱: 1. Roguelike:一个深度的回合制游戏,带有“地下城构建”系统。你不是在玩随机关卡,而是通过组合预设来构建具有特定属性的地下城,并且相同的组合总是会生成相同的种子。最终游戏涉及解锁开发者控制台,以编写游戏世界的脚本。 2. 75+ 个“迷你游戏”:这是我痴迷的地方。为了获取经验值,你可以玩各种各样的副内容,包括: - 物理/化学沙盒:我从零开始编写了一个 2D 引擎,模拟刚体、布料、流体(SPH)、热力学和化学反应。你甚至可以通过组合元素表中的元素来设计自定义材料。 - 电子表格应用:一个功能出乎意料的 Excel 克隆,具有公式引擎(=SUM,VLOOKUP 等)、格式化,甚至支持 XLSX 导入/导出。 - 其他工具:文字处理器、绘图程序、电路模拟器,以及大量经典游戏(国际象棋、俄罗斯方块等)。 3. 待办事项列表:这是我在游戏化方面的实验。它是真实的待办事项列表,你可以设置自己的现实生活任务。完成这些任务会给你带来游戏内奖励(经验值、稀有物品),而负面任务(比如“熬夜开发这个游戏”)则可能会带来惩罚。 这次经历让我学到了很多,也是一项真正的心血之作,完全没有商业上的限制。我想看看在浏览器中仅凭基础知识能推动多远。 如果你对实现、设计理念或我为什么认为为 Roguelike 构建一个 Excel 克隆是个好主意有任何问题,我很乐意回答。非常感谢你的反馈!
查看原文
Hi HN, I&#x27;m the creator of this project. For the last few years, I&#x27;ve been solo-developing what started as a simple roguelike and evolved into... well, this. It&#x27;s a massive, open-source, browser-based game&#x2F;platform built entirely with vanilla JavaScript, HTML, and CSS. Demo: <a href="https:&#x2F;&#x2F;yutokure.github.io&#x2F;yu-roguelike&#x2F;site&#x2F;" rel="nofollow">https:&#x2F;&#x2F;yutokure.github.io&#x2F;yu-roguelike&#x2F;site&#x2F;</a> GitHub (MIT): <a href="https:&#x2F;&#x2F;github.com&#x2F;yutokure&#x2F;yu-roguelike&#x2F;tree&#x2F;main" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yutokure&#x2F;yu-roguelike&#x2F;tree&#x2F;main</a><p>The project has three core pillars:<p>1. The Roguelike: A deep, turn-based game with a &quot;dungeon crafting&quot; system. Instead of playing random levels, you combine presets to compose a dungeon with specific properties, and the same combination always generates the same seed. The endgame involves unlocking a developer console to script the game world.<p>2. The 75+ &quot;Minigames&quot;: This is where my obsession really shows. To grind EXP, you can play a huge variety of side content, including: A physics&#x2F;chemistry sandbox: I wrote a 2D engine from scratch that simulates rigid bodies, cloth, fluids (SPH), thermodynamics, and chemical reactions. You can even design custom materials by combining elements from a periodic table. A spreadsheet app: A surprisingly functional Excel clone with a formula engine (=SUM, VLOOKUP, etc.), formatting, and even XLSX import&#x2F;export. Other tools: A word processor, paint program, circuit simulators, and tons of classic games (Chess, Tetris, etc.).<p>3. The To-Do List: This is my experiment in gamification. It&#x27;s a real To-Do list where you set your own real-life tasks. Completing them gives you in-game rewards (EXP, rare items), while negative tasks (like &quot;stayed up too late developing this game&quot;) can apply penalties. This has been a massive learning experience and a true labor of love, free from commercial constraints. I wanted to see how far I could push what&#x27;s possible in a browser with just the basics. I&#x27;d be happy to answer any questions about the implementation, the design philosophy, or why I thought building an Excel clone for a roguelike was a good idea. Feedback is deeply appreciated!