👾 convert nes sprites to png
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test Hello sprites Nov 22, 2016
.travis.yml Drop v4 Nov 22, 2016
README.md Fix typo Nov 22, 2016
index.js Fix bug Nov 27, 2016
package.json Fix bug Nov 27, 2016
sprite.png Fix bug, the sprite value was 0 or 1 Nov 23, 2016
yarn.lock Hello sprites Nov 22, 2016

README.md

nes-sprites2png

👾 convert nes file sprites to png 👾

Build Status Version

Installation

nes-sprites2png depends on node-canvas.
You can quickly install the dependencies by using the command for your OS:

OS Command
OS X xcode-select --install && brew install pkg-config cairo pango libpng jpeg giflib
Ubuntu sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
Fedora sudo yum install cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel giflib-devel
Solaris pkgin install cairo pango pkg-config xproto renderproto kbproto xextproto
Windows Instructions on our wiki
$ npm install nes-sprites2png

Screenshot

Screenshot

Example

nes-sprites2png "path/to/nesfile.nes" "path/to/dist.png" 2

** 2 is pixel size (default equals 1)

Testing

Install the node modules:

$ npm i
$ npm t

License

The MIT License (MIT)

Copyright (c) 2016 @Bokuweb

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.