18 ms·
CivJS: A JavaScript 4X Game (2015)
- Jgoure 8y agoThis repo hasn't been updated in 3 years. Why did it get popular today?
- ggregoire 8y agoPeople upvote just by reading the titles (in general, not just here).
- cpeterso 8y agoI wonder how the front page rankings would differ if Hacker News (secretly?) only counted upvotes if the user actually clicked the article link (or at least loaded the comments thread and read for X minutes) before voting.
- tango24 8y agoLooks like it's just the code, but no noticeable way to play. Is it hosted somewhere?
- dajomu 8y agoIf you have the latest npm installed you can clone it and run `npx serve`.
- benjaminjackman 8y agoI looked over the code for it, because earlier this year I was trying to make a turn based game that merged the gameplay of Imperialism II with the production tree depth of Factorio while having unique little sim like creature with traits that could be bred and inherited and so anytime I can learn something about how to structure code for TBS I'm pretty interested. Anyhow: it looks pretty incomplete for example here is the GAME.playTurn() function: GAME.playTurn = function () { // 0. AUTOSAVE // TODO // 1. START OF TURN // TODO // 2. TRADE // TODO // 3. CITY MANAGEMENT // TODO // 4. MOVEMENT // TODO // 5. RESEARCH // TODO }; So I am not sure that `npx serve` will work and do anything meaningful, or if maybe the logic is in different file / branch.
- singularity2001 8y ago// 6. @self: stop laughing // TODO
- jasoncabot 8y agoThat sounds like an awesome game - do you have any interesting links for how to structure TBS games? It's something I've always played around with but never feel I managed to get a decent design
- beilharz 8y agoDoes https://rawgit.com/Venerons/CivJS/master/index.html https://rawgit.com/Venerons/CivJS/master/index.html help?
- jakoblorz 8y agoThat was too easy
- tantalor 8y ago[2015]
- dang 8y agoThanks. Added.
- cryptozeus 8y agoWhy not put a screen shot ?
- dvfjsdhgfv 8y agohttps://apk.plus/products_civjs-apk/ https://apk.plus/products_civjs-apk/
- commandlinefan 8y agoAbout time, all the Javascript I've ever seen has been completely uncivilized.
- kitd 8y ago"What do you think of JavaScript Civilisation?" "I think it would be a very good idea" - Gandhi, possibly
- mrec 8y agoHis opinion is backed by NUCLEAR WEAPONS!
- Pxtl 8y agoHah, I told a (non-gamer) Indian woman about Civ's originally-accidental running gag of erratic Ghandi. She was displeased, to say the least.
- _jgdh 8y agoAs a (gamer) Indian, I always find it nothing short of hilarious, unless Gandhi is in my game. In which case, annex India before the nuclear era.
- gcatalfamo 8y agoMy opinion is that this is best Civ-themed HackerNews comment ever written so far and I would gladly argument it by saying the quoting Gandhi as an ironically peaceful opinionist is very ironic indeed. ICBM.
- kitd 8y agoI'll own up now and admit that I had no idea Gandhi had history in Civ (I'm not a gamer) My quip was accidentally genius!
- 8y ago
- roschdal 8y agoThere is also https://www.isotrident.com https://www.isotrident.com which is based on Freeciv-web https://github.com/freeciv/freeciv-web https://github.com/freeciv/freeciv-web
- andruby 8y agoI came here to mention freeciv-web. Isn't that exactly what CivJS is trying to do?
- Raphmedia 8y agoThis one we are discussing is simply a 4X JavaScript game. It has almost nothing to do with the actual Civilization game. Screenshot: https://cdn.pbrd.co/images/HBqxLGp.png https://cdn.pbrd.co/images/HBqxLGp.png
- jandrese 8y agoIt's basically Civilization 0.1
- wintorez 8y agoAtwood's Law strikes again!
- Jgoure 8y agoAtwood's Law: any application that can be written in JavaScript, will eventually be written in JavaScript.
- jstanley 8y agoPlease include a link in the repo to somewhere people can play it without having to figure out how it wants to be hosted.
- AdmiralAsshat 8y agoThe real question is whether the game will accurately reproduce Gandhi's bugged behavior[0] causing him to be super aggressive, or if the JS version will "fix" it. [0]https://kotaku.com/why-gandhi-is-such-an-asshole-in-civilization-1653818245 https://kotaku.com/why-gandhi-is-such-an-asshole-in-civiliza...
- Klathmon 8y agoIt's such an ongoing theme in all civ games now, I can't see anyone that is a fan of the franchise "fixing" that bug.
- s3m4j 8y agoIt's a documented bug that every system seeking to replace the original should have to reimplement, else other systems depending on it would break.
- earenndil 8y agoIt was only a bug in civ1, iirc, in the other ones they put it in intentionally.
- lanbird 8y agoi think its 10% complete, tested
- lanbird 8y agoits just 10% completed, tested
- brianolson 8y agoSee also a more full working open source civ game, FreeCiv http://www.freeciv.org/ http://www.freeciv.org/
- clarle 8y agoIt's a cool project, but the code is pretty incomplete. At the end of a turn, the only thing that happens is that units are healed (gold, science, production aren't implemented yet): https://github.com/Venerons/CivJS/blob/master/js/game.js#L177-L300 https://github.com/Venerons/CivJS/blob/master/js/game.js#L17... There's no AI or anything like that implemented just yet.