You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
# Nasu
|
|
|
|
|
|
|
|
|
|
A minimal chr editor, written in ANSI C.
|
|
|
|
|
|
|
|
|
|
## 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
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## I/O
|
|
|
|
|
|
|
|
|
|
To resume working on a tileset:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
./nasu example.chr
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Import a bmp:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
./nasu example.bmp
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Controls
|
|
|
|
|
|
|
|
|
|
### IO
|
|
|
|
|
|
|
|
|
|
- `E` Export(nasu-export.chr)
|
|
|
|
|
- `R` Render(nasu-render.bmp)
|
|
|
|
|
|
|
|
|
|
### General
|
|
|
|
|
|
|
|
|
|
- `1-7` Patterns
|
|
|
|
|
- `ASDF` Colors0-3
|
|
|
|
|
- `H` Toggle Guides
|
|
|
|
|
- `Z` Decr. Brush Size
|
|
|
|
|
- `X` Incr. Brush Size
|
|
|
|
|
- `C` Cleanup Brush
|
|
|
|
|
- `N` Clear
|
|
|
|
|
|
|
|
|
|
### Paint
|
|
|
|
|
|
|
|
|
|
- `mouse1` Paint
|
|
|
|
|
- `mouse1+mouse2` Erase
|