mirror of
https://codeberg.org/vlw/pysheeter.git
synced 2025-09-13 19:23:41 +02:00
Moved lib into 'pysheeter/' and an import reference with '__init__.py'. Added example files
10 lines
No EOL
320 B
Python
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) |