Demo video:
Longer video with some how-to info:
This repo contains an implementation of the Slay the Spire Map in Unity3d. Key features:
- Pick any orientation (left to right, right to left, top to bottom, bottom to top)
- Map appearance and player position get saved between game sessions
- Node position randomization
- Cross nodes elimination
- Scrolling map content for long maps
Free resources and assets used in the project:
- DOTween
- Icons from Game-icons.net. You can find a full list of credits in the folder with icons
- Newtonsoft.JSON for Unity
December 13 2022 Update: Thanks to hojjatjafary
- Better algorithm for generating paths
- New algorithm uses a for loop instead of a while loop to generate paths, which makes it more precise and eliminates the need of limiting max amount of attempts
- New algorithm respects precise numbers of starting nodes and pre-boss nodes
- Use the new field
extraPaths
in MapConfig to generate more paths and create more connections between the nodes