Cells returns all the cells on the sheet
()
| 166 | |
| 167 | // Cells returns all the cells on the sheet |
| 168 | func (s *Spritesheet) Cells() []Texture { |
| 169 | cellsNo := s.CellCount() |
| 170 | cells := make([]Texture, cellsNo) |
| 171 | for i := 0; i < cellsNo; i++ { |
| 172 | cells[i] = s.Cell(i) |
| 173 | } |
| 174 | |
| 175 | return cells |
| 176 | } |
| 177 | |
| 178 | // Width is the amount of tiles on the x-axis of the spritesheet |
| 179 | // only if the sprite sheet is symmetric with no border. |
no test coverage detected