-
Notifications
You must be signed in to change notification settings - Fork 6
Graph spawning for dream journals
Your last position on the graph determines where you'll spawn in the next dream. This is done in LSD Revamped with a texture map.
Basically in the root levels directory (/levels/
), where your dream journal's TMAP files are stored, you will have a 19x19 PNG file with the same name as your dream journal. Each pixel in this image corresponds to a graph square, and consequently a level to start a dream on. The level is encoded in the alpha channel of the image, so for example an A value of 0 will load the first level in your journal's directory, an A value of 7 will load the 8th, etc.
Here is a template to get started. Every section of the graph is a distinct color, so you can just flood fill with the correct alpha values.
-
Make sure you save the PNG as a 32 bit PNG.
-
If you want random spawning, just don't make a PNG file and the game will default to random spawning.
-
On the first day the game will by default spawn in the first level in the directory, at the forced spawn point.