MCPcopy Index your code
hub / github.com/EngoEngine/engo / Cells

Method Cells

common/spritesheet.go:168–176  ·  view source on GitHub ↗

Cells returns all the cells on the sheet

()

Source from the content-addressed store, hash-verified

166
167// Cells returns all the cells on the sheet
168func (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.

Callers 1

createLevelFromTmxFunction · 0.80

Calls 2

CellCountMethod · 0.95
CellMethod · 0.95

Tested by

no test coverage detected