~rabbits/nasu

a39e3769077d6c480d121ab95caab76310729134 — Devine Lu Linvega 2 years ago f130660
Improved title
2 files changed, 22 insertions(+), 6 deletions(-)

M README.md
M chr6.c
M README.md => README.md +6 -3
@@ 20,15 20,18 @@ To resume working on a tileset:

## Controls

### General
### IO

- `E` Export(export.chr)
- `R` Render(render.bmp)
- `H` Toggle Guides

### Select
### General

- `TAB` Cycle between colors
- `H` Toggle Guides
- `Z` Decr. Brush Size
- `X` Incr. Brush Size
- `1-7` Patterns

### Paint


M chr6.c => chr6.c +16 -3
@@ 231,7 231,7 @@ void
update(Brush* b)
{
	char title[512];
	snprintf(title, 512, "chr6 %d | c%d %d:%d^%d%c", b->size, b->color, HOR, VER, ZOOM, b->edit ? '*' : ' ');
	snprintf(title, 512, "chr6 %d c%d %d:%d^%d%c", b->size, b->color, HOR, VER, ZOOM, b->edit ? '*' : ' ');
	SDL_SetWindowTitle(gWindow, title);
}



@@ 309,6 309,8 @@ domouse(SDL_Event* event, Brush* b)
		}
		if(event->button.button == SDL_BUTTON_RIGHT)
			b->erase = 0;
		b->edit = 1;
		update(b);
		break;
	case SDL_MOUSEBUTTONDOWN:
		if(event->button.button == SDL_BUTTON_LEFT) {


@@ 366,11 368,22 @@ dokey(SDL_Event* event, Brush* b)
	case SDLK_4:
		b->mode = 3;
		break;
	case SDLK_5:
		b->mode = 4;
		break;
	case SDLK_6:
		b->mode = 5;
		break;
	case SDLK_7:
		b->mode = 6;
		break;
	case SDLK_z:
		b->size -= 1;
		if(b->size > 1)
			b->size -= 1;
		break;
	case SDLK_x:
		b->size += 1;
		if(b->size < 30)
			b->size += 1;
		break;
	}
	update(b);