Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Procedural Generation Algorithms &//w// Tile Engine  (Read 631 times)

0 Members and 1 Guest are viewing this topic.

Abragon

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • Email
Procedural Generation Algorithms &//w// Tile Engine
« on: September 11, 2017, 12:19:17 am »
Hello all :) I am continuing my investigation into an exact code solution on the project I've been working on. I am trying to add procedural generation by first creating a checkerboard pattern and then connecting outside points using a recursive backtracking algorithm (code exerpt can be found here: https://stackoverflow.com/questions/46146002/manipulating-sfml-vertex-array).
 I have the grid loop implemented but I am struggling in making a boolean check for the tile type. I would like to add a type function but I'm using the vertex array notation and I'm not sure how to manipulate the quads. Any pointers or examples would be greatly appreciated!