TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How to start a sim/tycoon JavaScript game?

1 点作者 kpapke将近 11 年前
Hi,<p>I have no game development experience, but lately I&#x27;ve been having this urge to try it out as a way to challenge my Javascript skills. I&#x27;m wondering how I would create an extremely simplified version of these kind of games using HTML5 &amp; Javascript:<p>http:&#x2F;&#x2F;adarkroom.doublespeakgames.com<p>http:&#x2F;&#x2F;dhmholley.co.uk&#x2F;civclicker.html<p>http:&#x2F;&#x2F;hyperhippo.ca&#x2F;games&#x2F;adventure-capitalist&#x2F;<p>They have a minimal UI and seem to rely on clicking to cause an upgrade, and using timers and loops to grow or update the available resources. Would someone be willing to break down the logic of how to accomplish these, or maybe point me to a tutorial that is specific to this type of game?

1 comment

kpapke将近 11 年前
Here&#x27;s a basic plunker I threw together. It has no loops or timers so it&#x27;s all click based... but is this on the right track? <a href="http://plnkr.co/edit/7kEhr0fYIMNbL40Uedwn?p=preview" rel="nofollow">http:&#x2F;&#x2F;plnkr.co&#x2F;edit&#x2F;7kEhr0fYIMNbL40Uedwn?p=preview</a>