mirror of https://git.sr.ht/~rabbits/nasu
1 changed files with 11 additions and 42 deletions
@ -1,58 +1,27 @@ |
|||||||
# Nasu |
# 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 |
## Build |
||||||
|
|
||||||
To build nasu, you must have [SDL2](https://wiki.libsdl.org/). |
You must have the [Uxn](https://git.sr.ht/~rabbits/uxn/) assembler and emulator. |
||||||
|
|
||||||
``` |
|
||||||
cc nasu.c -std=c89 -Os -DNDEBUG -g0 -s -Wall -L/usr/local/lib -lSDL2 -o nasu |
|
||||||
``` |
|
||||||
|
|
||||||
To assemble and run for Uxn. |
|
||||||
|
|
||||||
``` |
``` |
||||||
uxnasm nasu.usm nasu.rom && uxnemu nasu.rom |
uxnasm nasu.usm nasu.rom && uxnemu nasu.rom |
||||||
``` |
``` |
||||||
|
|
||||||
## I/O |
To build the C version(old), you must have [SDL2](https://wiki.libsdl.org/). |
||||||
|
|
||||||
To resume working on a tileset: |
|
||||||
|
|
||||||
``` |
``` |
||||||
./nasu example.chr |
cc nasu.c -std=c89 -Os -DNDEBUG -g0 -s -Wall -L/usr/local/lib -lSDL2 -o nasu |
||||||
``` |
``` |
||||||
|
|
||||||
## Controls |
## Controls |
||||||
|
|
||||||
### Generics |
- `arrows`, move selection |
||||||
|
- `enter` , insert tile |
||||||
- `ctrl+n` New |
- `backspace`, delete tile |
||||||
- `ctrl+r` Reload |
- `left-click` , add pixel |
||||||
- `ctrl+s` Save(.chr) |
- `right-click`, remove pixel |
||||||
- `ctrl+shift+s` Save(.bmp) |
- `1 2 3`, select color |
||||||
- `ctrl+h` Toggle Guides |
- `q w e`, select tool |
||||||
|
|
||||||
### 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 |
|
||||||
|
|||||||
Loading…
Reference in new issue