M
M
Marat Rakhmatullin2018-11-21 18:44:58
Python
Marat Rakhmatullin, 2018-11-21 18:44:58

With what help to implement the "technology tree" (directed graph), as in a strategic game?

If you had to implement a "tech tree" like in a strategy game like Civilization, what library/package would you use?
Requirements:
- A node (rectangle) must store and visually change the "reached / not reached" state,
- When you click on a node, extra branches that you need to go through to reach this node are highlighted (or hidden),
Desirable:
- Automatic building of a tree based on information about links (in file, json)
- Various types of links, hiding branches by link types.
Maybe there is already something ready in open source?
If not, then maybe. Is there a library for building beautiful visualizations that can be used for these purposes? It would be nice if it was in Python, but JS is also possible.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2018-11-21
@xmoonlight

1. Treant.js ( demo )
2. On d3.js: here (but you need to edit a little)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question