draw sprites

This commit is contained in:
sejo 2021-07-24 20:49:01 -05:00
parent 690bbea615
commit d1b3d1fded
1 changed files with 7 additions and 2 deletions

View File

@ -653,7 +653,7 @@ the low nibble of the byte color will determine the colors that are used to draw
& * f: "on" with color 3, "off" with color 0
## hello sprite(s)
## hello sprite
let's do this! the following program will draw our sprite once:
@ -687,10 +687,12 @@ BRK
@square ff81 8181 8181 81ff
```
and the following code will draw it with all 16 combinations of color, with an output that looks like this image:
## hello sprites
=> ./img/screenshot_uxn-tiles.png screenshot of the output of the program, showing 16 squares colored with different combinations of outline and fill.
the following code will draw our square sprite with all 16 combinations of color:
```
( hello-sprites.tal )
@ -747,6 +749,9 @@ BRK
note that in this case, the INC-X and INC-Y macros increment each coordinate by 0008: that's the size of the tile.
# responsiveness
TODO
# designing sprites