Improved brush support
This commit is contained in:
parent
0c99df4b37
commit
60bac13dd8
|
@ -1,8 +1,8 @@
|
||||||
( app/nasu )
|
|
||||||
|
|
||||||
(
|
(
|
||||||
arrows - move
|
app/nasu : spritesheet editor
|
||||||
click - Paint/Select cell
|
|
||||||
|
arrows - move selection
|
||||||
|
click - Paint cell
|
||||||
1 2 3 - Select brush
|
1 2 3 - Select brush
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -159,6 +159,14 @@ BRK
|
||||||
~tileview.addr ADD2 =addr ( addr offset )
|
~tileview.addr ADD2 =addr ( addr offset )
|
||||||
~dev/mouse.x ~tileview.x SUB2 ~dev/mouse.x ~tileview.x SUB2 #0040 DIV2 #0040 MUL2 SUB2 =pos.x
|
~dev/mouse.x ~tileview.x SUB2 ~dev/mouse.x ~tileview.x SUB2 #0040 DIV2 #0040 MUL2 SUB2 =pos.x
|
||||||
~dev/mouse.y ~tileview.y SUB2 ~dev/mouse.y ~tileview.y SUB2 #0040 DIV2 #0040 MUL2 SUB2 =pos.y
|
~dev/mouse.y ~tileview.y SUB2 ~dev/mouse.y ~tileview.y SUB2 #0040 DIV2 #0040 MUL2 SUB2 =pos.y
|
||||||
|
,no-fill-mode ~bankview.mode #01 NEQ JMP? POP2
|
||||||
|
( fill row ) #ff ~addr ~pos.y #0008 DIV2 ADD2 STR
|
||||||
|
,redraw JSR ,click-end JMP
|
||||||
|
@no-fill-mode
|
||||||
|
,no-erase-mode ~bankview.mode #02 NEQ JMP? POP2
|
||||||
|
( erase row ) #00 ~addr ~pos.y #0008 DIV2 ADD2 STR
|
||||||
|
,redraw JSR ,click-end JMP
|
||||||
|
@no-erase-mode
|
||||||
( load ) ~addr ~pos.y #0008 DIV2 ADD2 LDR
|
( load ) ~addr ~pos.y #0008 DIV2 ADD2 LDR
|
||||||
( mask ) #01 #07 ~pos.x #0008 DIV2 SWP POP SUB ROL
|
( mask ) #01 #07 ~pos.x #0008 DIV2 SWP POP SUB ROL
|
||||||
XOR
|
XOR
|
||||||
|
|
Loading…
Reference in New Issue