Skip to content

dfirebaugh/spritely

Repository files navigation

spritely

spritely is currently being refactored see the project for tasks.

Spritely is a sprite editor for making tiny sprites. Spritely makes a 64 sprite sprite sheet in the format of png. Each sprite is 8x8 pixels with 16 colors.

Demo

A limited demo can be found here: https://dfirebaugh.github.io/spritely/

spritely

Build Requirements

$ apt-get install libsdl2-ttf-dev libsdl2-image-dev python3.9-dev libpng-dev

Build with zig

You can build this project with zig. (i'm using zig version 0.11.0)

zig build

This will build a binary at ./zig-out/bin/spritely

You can also use the following command to run the app.

zig build run

Webassembly build

Running make web will build spritely using emscripten. So in order to run it, you need to download it from : https://emscripten.org/docs/getting_started/downloads.html

make web will create two files: index.js and index.wasm. Using the given index.html and a simple web server you can use spritely in your web browser!

note: chrome doesn't support file:// XHR request

run the wasm build

make run-wasm

You can run a simple web server by going to the web folder and then run a web server using python2 with python2 -m SimpleHTTPServer 8080 or python3 with python -m http.server 8080