MCPcopy
hub / github.com/EngoEngine/engo / Height

Method Height

common/spritesheet.go:186–188  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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.
186func (s Spritesheet) Height() float32 {
187 return s.height / s.Cell(0).Height()
188}
189
190func generateSymmetricSpriteRegions(totalWidth, totalHeight float32, cellWidth, cellHeight, borderWidth, borderHeight int) []SpriteRegion {
191 var spriteRegions []SpriteRegion

Callers

nothing calls this directly

Calls 2

CellMethod · 0.95
HeightMethod · 0.65

Tested by

no test coverage detected