https://github.com/dfirebaugh/spritely
a simple sprite editor
https://github.com/dfirebaugh/spritely
hacktoberfest hacktoberfest2020
Last synced: about 1 year ago
JSON representation
a simple sprite editor
- Host: GitHub
- URL: https://github.com/dfirebaugh/spritely
- Owner: dfirebaugh
- License: mit
- Created: 2020-04-19T06:24:59.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-01-06T20:32:21.000Z (over 2 years ago)
- Last Synced: 2025-03-25T21:14:16.235Z (about 1 year ago)
- Topics: hacktoberfest, hacktoberfest2020
- Language: C
- Homepage:
- Size: 746 KB
- Stars: 16
- Watchers: 1
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spritely
> spritely is currently being refactored see the [project](https://github.com/users/dfirebaugh/projects/1/views/1) 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/

## 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](https://ziglang.org/download/).
(i'm using zig version 0.11.0)
```bash
zig build
```
This will build a binary at `./zig-out/bin/spritely`
You can also use the following command to run the app.
```bash
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
```bash
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`