removed references to draw-tiles subroutine, thanks makeworld!

This commit is contained in:
sejo 2021-09-19 17:30:41 -05:00
parent 001e7c69e1
commit 40b1d1529c
1 changed files with 1 additions and 9 deletions

View File

@ -332,13 +332,7 @@ in this part we will see how to draw the paddles based on these parameters, and
## drawing the multi-tile paddles
in theory, we could use our previous draw-tiles subroutine to draw the rectangles corresponding to our paddles, with a given tile.
in practice, that might be a little bit inconvenient, because the sprite byte that determines the layer and color of our tile was left hardcoded inside our subroutine: if we reuse it, we'll end up drawing with the same color and in the same layer as the background texture!
i leave it as an exercise for you to modify the subroutine so that the sprite byte is received as an argument in the stack :)
in any case, i want to use the paddles as an example of drawing a sprite composed of multiple tiles.
i want to use the paddles as an example of drawing a sprite composed of multiple tiles!
### the data
@ -489,8 +483,6 @@ it would be up to discussion if there are more efficient ways of drawing it. for
@draw-sprite ( x^ y^ width height addr* color )
```
it could work similar to the draw-tiles subroutine we created above.
creating that could be a good exercise for you to try! in this case i'll just stay with the manual approach.
the good thing of this process being in a subroutine is that we can "forget" about its inner working and just use it :)