Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
CivClicker (dhmholley.co.uk)
91 points by epsylon on June 15, 2014 | hide | past | favorite | 31 comments


The source [0] is kind of an incredible copy and paste achievement. Clearly the author doesn't suffer from the "Last Line effect". [1]

Still, it was sort of fun for a minute or two.

[0]: http://dhmholley.co.uk/civclicker.js [1]: https://news.ycombinator.com/item?id=7858612


I hope the source isn't too horrible. I was basically a complete javascript novice when I started coding the game. If I were to write it again I'd probably do it very differently, though I still have a lot to learn.


You finished it, which is by far the most important thing. Without that, it doesn't matter what the code looks like because you'd have achieved nothing.

My first Flash game that I wrote in two weeks had some god awful copy pasted code that made me embarrassed to show anyone. But it made six figures over the years and launched what turned out to be a viable career in game development (I've never had a real job).

Code quality is important to work on, but it's just there to help you with the primary goal: shipping something cool.

You got there, so fuck the code. Great job.


The trick is to reduce parts where you duplicate a lot of code by using generalized functions to abstract things out.


You got me stuck on your game for two days. I think I might just start coding an incremental game of my own. Cheers!


> * Clearly the author doesn't suffer from the "Last Line effect".*

Actually, he failed to put a comma after the `gold = {…}` expression.


That is nearly 7k lines, what's the chance that it could be re-factored to < 1k with angular/ember?


Not sure what Angular/Ember would have to do with it. There's just a lot of duplication in there that could be removed without adding the extra bloat of a framework.


Reducing the amount of UI code mostly.


Great! Yesterday I wasted a few hours on this http://adarkroom.doublespeakgames.com

Do you pine the days of Knights and Merchants? Age of Empires? I wish someone would make game like that. No need for fancy graphics. No MMO. No in-app purchase. Same experience like the old ones have.


I too felt this way. I would spend too much time in Dwarf Fortress learning when I could be coding, so that was out.

Stronghold looks like the next thing I'll try. Plenty of old games on gog.com right now that are on sale that work on Mac.


Someone (or several dedicated someones) reimplemented KaM: http://www.kamremake.com/about/


"0 A.D. originally began as a comprehensive total conversion mod concept for Age of Empires II [...]the team soon turned to trying to create a full independent game based on their ideas"

https://en.wikipedia.org/wiki/0_A.D._%28video_game%29


Tried that. Performance is bad and gameplay needs tweaking


The Civilization series is still pretty good :) The next one will even be a revival of Alpha Centauri.


My finger hurts. Good inspiration on how you can put something together fairly quickly. I've been playing with a medieval simulator for a while now - and this has galvanised me to get back into it. Cheers!


don't stress your fingers !

setInterval(function(){increment(food);increment(wood);increment(stone)},50);


or call ruinFun()


Well where's the fun in that?


Some people like to play the game, some like to play with the code behind the game.


You can't get the minimum-clicks achievement that way.


I just played through A Dark Room on iOS, and it's probably one of the best phone games I've ever played. Looks similar to this, but used as a storytelling platform in a way that it doesn't look like this (or the web version of a dark room) is to the same extent.


Addicting! One thing is that I have tons of barracks and stables but can't seem to be able to create soliders and cavalry for some reason ...


You need metal for soldiers


I already have metal :(


I am gently worried that I'll play an incremental game that is also mining some kind of crypto coin simultaneously.

That sounds unlikely but look at the reddit group for cookie clicker collector - people do leave it running for days.


You can tell if its mining, your machine, laptops especially, will let you know something is up.

I do think its an interesting area for development though. I would be ok with a low mining instead of ads.


Would you play a game that used that as its business model?


If they were upfront about it I might. It'd be better than having to remove via IAPs some totally artificial timer.


Really nice man! I've been playing it for an hour now.


Still playing it. I seem to be stuck with no ore, but needing ore to get miners to collect ore?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: