Convenience function to addd and remove actors to or from systems.

This commit is contained in:
Marvin Blum
2016-05-06 17:30:43 +02:00
parent ac3d293763
commit 51d61ba605
3 changed files with 48 additions and 11 deletions

View File

@@ -24,8 +24,7 @@ func (g *Game) Setup() {
}
sprite := goga.NewSprite(tex)
renderer := goga.GetSystemByName("spriteRenderer")
renderer.Add(sprite)
goga.AddActor(sprite)
}
func (g *Game) Update(delta float64) {