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

Method Width

common/spritesheet.go:180–182  ·  view source on GitHub ↗

Width is the amount of tiles on the x-axis of the spritesheet only if the sprite sheet is symmetric with no border.

()

Source from the content-addressed store, hash-verified

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.
180func (s Spritesheet) Width() float32 {
181 return s.width / s.Cell(0).Width()
182}
183
184// Height is the amount of tiles on the y-axis of the spritesheet
185// only if the sprite sheet is symmetric with no border.

Callers

nothing calls this directly

Calls 2

CellMethod · 0.95
WidthMethod · 0.65

Tested by

no test coverage detected