News for hackers. Stuff that matters.
Re:CivJS: A JavaScript 4X Game (2015) by benjaminjackman on Wednesday August 29, 2018 @10:19AM (#17868370)
I 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.
Re:CivJS: A JavaScript 4X Game (2015) by singularity2001 on Wednesday August 29, 2018 @10:28AM (#17868438)
// 6. @self: stop laughing // TODO
Re:CivJS: A JavaScript 4X Game (2015) by jasoncabot on Wednesday August 29, 2018 @03:01PM (#17870743)
That 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