SFML community forums

Help => General => Topic started by: Abragon on September 11, 2017, 12:19:17 am

Title: Procedural Generation Algorithms &//w// Tile Engine
Post by: Abragon 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!