Width is the amount of tiles on the x-axis of the spritesheet only if the sprite sheet is symmetric with no border.
()
| 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. |
| 180 | func (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. |