Settings

Theme

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

1 points by kpapke 11 years ago · 1 comment · 1 min read


Hi,

I have no game development experience, but lately I've been having this urge to try it out as a way to challenge my Javascript skills. I'm wondering how I would create an extremely simplified version of these kind of games using HTML5 & Javascript:

http://adarkroom.doublespeakgames.com

http://dhmholley.co.uk/civclicker.html

http://hyperhippo.ca/games/adventure-capitalist/

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?

kpapkeOP 11 years ago

Here's a basic plunker I threw together. It has no loops or timers so it's all click based... but is this on the right track? http://plnkr.co/edit/7kEhr0fYIMNbL40Uedwn?p=preview

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection