1.0.0 • Published 3 years ago

setsuko v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Setsuko

Scripts

crop an image:

# WxH
convert song-big.png -crop 1300x1300 song1.png

get dimentions

sips -g pixelHeight -g pixelWidth imp.png

resize

convert img/whaleSprite.png -resize 50% foo.png

# -z [height] [width] - it resizes the image according to specified dimensions, which may alter the aspect ratio of the image.
# -Z [heightwidth] - it defines the maximum dimensions for both height and width, which keeps the aspect ratio of the image.
sips -Z 20000 src/static/img/song.png

append

convert image1.png image2.png image3.png -append result/result-sprite.png

# or horizontal
convert image1.png image2.png image3.png +append result/result-sprite.png

tinypng

API_KEY=WFszGgbLCsB5gFSLsJpbd9X8q55BvM5Q

tinypng -k $API_KEY src/static/img/

TODO

  • asset sizes
  • mobile fullscreen
  • rate limiting song
  • endgame score counting + credits
  • sound effects
  • fix frame rates