fix 3 typos in day 2 of the uxn tutorial
This commit is contained in:
parent
802a5960eb
commit
bc2050da14
|
@ -205,7 +205,7 @@ try changing the values of color 0, i.e. the first column, and see what happens
|
|||
|
||||
# the screen device
|
||||
|
||||
as a recap: we mentioned that the screen device can only show four different colors at a given time, and that these colors are numbered from 0 to 3. we set these these colors using the corresponding ports in the system device.
|
||||
as a recap: we mentioned that the screen device can only show four different colors at a given time, and that these colors are numbered from 0 to 3. we set these colors using the corresponding ports in the system device.
|
||||
|
||||
now let's discuss the screen device and start using it!
|
||||
|
||||
|
@ -363,7 +363,7 @@ for example, we can draw multiple pixels in an horizontal line, setting the y co
|
|||
#41 .Screen/pixel DEO
|
||||
|
||||
#000d .Screen/x DEO2
|
||||
#11 .Screen/pixel DEO
|
||||
#41 .Screen/pixel DEO
|
||||
```
|
||||
|
||||
note that we have to set the color for each pixel we draw; that operation signals the drawing and has to be repeated.
|
||||
|
@ -812,7 +812,7 @@ we separate our tile into two different squares, one for the high bits and the o
|
|||
00000000 11111111
|
||||
```
|
||||
|
||||
now we can think of each of these squares as 1bpp sprites, and encode them in hexadecimal as he did before:
|
||||
now we can think of each of these squares as 1bpp sprites, and encode them in hexadecimal as we did before:
|
||||
|
||||
``` the two previous 8x8 squares with their corresponding hexadecimal encoding
|
||||
00000000: 00 00000001: 01
|
||||
|
|
Loading…
Reference in New Issue