Drawables returns all the drawables on the sheet
()
| 150 | |
| 151 | // Drawables returns all the drawables on the sheet |
| 152 | func (s *Spritesheet) Drawables() []Drawable { |
| 153 | drawables := make([]Drawable, s.CellCount()) |
| 154 | |
| 155 | for i := 0; i < s.CellCount(); i++ { |
| 156 | drawables[i] = s.Drawable(i) |
| 157 | } |
| 158 | |
| 159 | return drawables |
| 160 | } |
| 161 | |
| 162 | // CellCount returns the number of cells on the sheet |
| 163 | func (s *Spritesheet) CellCount() int { |
no test coverage detected