~rabbits/nasu

52c335074eae16762568b540c752ee9efe2fe614 — neauoire 1 year, 9 months ago 85dbf07
Updated READMNE
1 files changed, 11 insertions(+), 42 deletions(-)

M README.md
M README.md => README.md +11 -42
@@ 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