at last: 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 computer.

besides using previous strategies and snippets of code, we cover strategies for drawing and controlling multi-tile sprites, and for checking collisions.


@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 ah! okay :) It's a fairly bleeding edge feature, I don't think it's in @metasyn's web port yet.

@neauoire @sejo I'll look into getting it updated to the latest build on a continuous integration system so it won't fall too far behind 🌿

@neauoire @sejo alrighto! finally got around to this... added some headless integration tests, set up a ci system on sourcehut, and now the site should have some text in "about" as to the last build/deploy time as well the uxn commit that is running in the emulator/assembler - currently set to build/deploy once a day 🎉

@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:


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 :sadlinux: "i'll leave correcting it as an exercise for the reader"

i like your suggestion and your approach

Sign in to participate in the conversation

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.