0 votes
asked Jan 5 in Engine by JulioYagami (631 points)

1 Answer

0 votes
Best answer

"bag" seems to be something like Doras backpack.
It is a container which contains preloaded scripts which's reference is passed on.

See here:
https://github.com/w84death/Tanks-of-Freedom/blob/7f8582de2d6f89d68181eebc9de4a59d7f1b7fac/scripts/services/dependency_container.gd

You could also call it shared global "variables".

Do a search for "bag in:file" (-> current repository) for more occurances of "bag".

answered Jan 6 by wombatstampede (3,153 points)
selected Jan 6 by JulioYagami

And as for the root var?

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.