EngoEngine / engo

Engo is an open-source 2D game engine written in Go.
https://engoengine.github.io
MIT License
1.74k stars 136 forks source link

First draft of tree node for peer assistance in PR #705

Closed diwant closed 4 years ago

diwant commented 4 years ago

Not ready for merge yet, as heirarchical transformations don't work yet.

For this issue: https://github.com/EngoEngine/engo/issues/555

diwant commented 4 years ago

Thanks @Noofbiz ! I will return to this to write some test cases, that is a good idea and can engender confidence in the system working as well as show us where it's not behaving as expected. So far, I've been testing it with what I see on screen, but a set of unit tests would do the same and we can build from there. I might take a little bit to return to this, so I'll check back here before I pick this code back up to see if there are updates.

Noofbiz commented 4 years ago

I actually realized ecs.BasicEntity already had the capability, but needed a method for getting all descendants as well. I added a demo that uses this and creates the same kind of effects this would have, only you could use it for anything, not just space components. Thanks for all the work!