superpowers / superpowers-game

:video_game: Make 2D and 3D games in live collaboration with Superpowers
http://superpowers-html5.com/
Other
402 stars 93 forks source link

Add Sup.walkActorTree() and Sup.getAllActors() #147

Closed na-sa-do closed 8 years ago

na-sa-do commented 8 years ago

These two functions serve a fairly obvious use case. Closes #124.

bilou84 commented 8 years ago

Thanks! I merged it with a couple clean ups. I also added an optional parameter on the walkActorTree method to start the loop from a specific actor.