at last: #uxn tutorial day 6, towards pong, is now online!
here we talk about how we can integrate everything that we have covered so far in order to create more complex subroutines and programs for the #varvara computer.
besides using previous strategies and snippets of code, we cover strategies for drawing and controlling multi-tile sprites, and for checking collisions.
pushed a significant update to #uxn tutorial day 6!
now the drawing of the background is discussed in a more straightforward way :)
the generalization of that subroutine is now in its own appendix:
@neauoire just so you know, i plan to edit day 2 to mention the auto byte in the ppu, and afterwards i want to include a more prominent example of using it here in day 6 :)
@sejo in @draw-tiles at the end, you have a comment ( variables ) but it's missing
&height $2 &width $2 &y $2 &x $2 &limit-y $2
@sejo the pattern filling routine is insane tho, if I could change something I'd simplify the routine for something like
And use something like:
.Screen/height DEI2 WALL-MARGIN SUB2 WALL-MARGIN
For the bounds of the rect, and not use variables at all. It complexifies things a bit much.
Otherwise it's really easy to follow along!
@neauoire haha i know, in theory all of that was about showing some ways of abstracting the procedure, but the road was way bumpier than expected
don't tell anybody (?) but when i realized that i had left the color hardcoded inside and i couldn't really reuse the subroutine, i was like "i'll leave correcting it as an exercise for the reader"
i like your suggestion and your approach
@sejo I really like this way of writing about tech - this is approachable to persons from non-tech context
Revel in the marvels of the universe. We are a collective of forward-thinking individuals who strive to better ourselves and our surroundings through constant creation. We express ourselves through music, art, games, and writing. We also put great value in play. A warm welcome to any like-minded people who feel these ideals resonate with them.