mirror of https://git.sr.ht/~rabbits/nasu
1 changed files with 11 additions and 42 deletions
@ -1,58 +1,27 @@
|
||||
# Nasu |
||||
|
||||
A minimal chr editor, written in ANSI C. |
||||
[Nasu](https://100r.co/site/nasu.html) is a sprite editor, written in [Uxambly](https://wiki.xxiivv.com/site/uxambly.html). |
||||
|
||||
## Build |
||||
|
||||
To build nasu, you must have [SDL2](https://wiki.libsdl.org/). |
||||
|
||||
``` |
||||
cc nasu.c -std=c89 -Os -DNDEBUG -g0 -s -Wall -L/usr/local/lib -lSDL2 -o nasu |
||||
``` |
||||
|
||||
To assemble and run for Uxn. |
||||
You must have the [Uxn](https://git.sr.ht/~rabbits/uxn/) assembler and emulator. |
||||
|
||||
``` |
||||
uxnasm nasu.usm nasu.rom && uxnemu nasu.rom |
||||
``` |
||||
|
||||
## I/O |
||||
|
||||
To resume working on a tileset: |
||||
To build the C version(old), you must have [SDL2](https://wiki.libsdl.org/). |
||||
|
||||
``` |
||||
./nasu example.chr |
||||
cc nasu.c -std=c89 -Os -DNDEBUG -g0 -s -Wall -L/usr/local/lib -lSDL2 -o nasu |
||||
``` |
||||
|
||||
## Controls |
||||
|
||||
### Generics |
||||
|
||||
- `ctrl+n` New |
||||
- `ctrl+r` Reload |
||||
- `ctrl+s` Save(.chr) |
||||
- `ctrl+shift+s` Save(.bmp) |
||||
- `ctrl+h` Toggle Guides |
||||
|
||||
### General |
||||
|
||||
- `1234` Colors0-3 |
||||
- `asdfg` Modes0-4 |
||||
- `c` Copy Mode |
||||
- `b` BigPixel Mode |
||||
- `z` Decr. Brush Size |
||||
- `x` Incr. Brush Size |
||||
|
||||
### Paint |
||||
|
||||
- `mouse1` Paint |
||||
- `mouse2` Line |
||||
- `mouse1+mouse3` Erase |
||||
- `ctrl+mouse1` Color Picker |
||||
|
||||
## TODO |
||||
|
||||
- Rotate tile |
||||
- Flip tile |
||||
- Roll pixels |
||||
- Roll colors |
||||
- `arrows`, move selection |
||||
- `enter` , insert tile |
||||
- `backspace`, delete tile |
||||
- `left-click` , add pixel |
||||
- `right-click`, remove pixel |
||||
- `1 2 3`, select color |
||||
- `q w e`, select tool |
||||
|
||||
Loading…
Reference in new issue