Example #1
0
// Draw the Goal object on the given surface
func (g Goal) Draw(screen *sdl.Surface) {
	if g.Hidden || g.Surface == nil {
		return
	}
	screen.Blit(g.Rect(), g.Surface, nil)
}