draw sprites
This commit is contained in:
parent
690bbea615
commit
d1b3d1fded
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue