491 Underground Update 0005

Kevin has been working hard on the 3rd tech test, the cube hex grid. The goal of this one is the systematically generate the hex grid using efficient reusable functions. We’ve been using this indispensable resource:


And some of the well-written code from it:

 function findNeighbors(grid, directions) {
    for (var i = 0; i < directions.length; i++) {
      var neighbor = grid.getHex(this.x + directions[i].x, this.y + directions[i].y, this.z + directions[i].z);
      if (neighbor != undefined) {
    console.log("It's a beautiful day in the neighborhood");

We’ll have future posts with more in depth explanation of code snippets like this.


[ Today I Was Playing: nothing… ]

May 5, 2016

#adventure-game, #strategy-game, #turn-based-game, #underground