Basic procedural generated content works, but how could I do the same in reverse?
- by andrew
My 2D world is made up of blocks. At the moment, I create a block and assign it a number between 1 and 4. The number assigned to the nth block is always the same (i.e if the player walks backwards or restarts the game.) and is generated in the function below.
As shown here by this animation, the colours represent the number.
function…