pysheeter/example.py
Victor Westerlund 96f98da9b8 1.0.0
Moved lib into 'pysheeter/' and an import reference with '__init__.py'.

Added example files
2020-11-22 18:07:16 +01:00

10 lines
No EOL
320 B
Python

from pysheeter import PySheeter
# Load sprites from 'example/'
spritesheet = PySheeter.Sheet("example")
# Create a vertical spritesheet with the dimensions 16x16
spritesheet.put("example_v1616.png",(16,16))
# Create a horizontal spritesheet with the dimensions 16x32
spritesheet.put("example_h1632.png",(16,32),False)