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.


· · Web · 5 · 9 · 16

pushed a significant update to 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:

thanks @neauoire for the tip!

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

@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

@sejo thanks for this tutorial series. I have read the #varvara docs, but needed some hands-on guide to get started

@sejo I run a coding dojo with some twelve year olds. We do started with microblocks, now we do mostly Python and some Interactive Fiction with Twine.

I adore the multimedia capabilities of the #varvara computer and wonder how to get these kids into coding it

@olav wow, that would be interesting! have you seen the learn-uxn site by @metasyn?

it might be a good way to engage with the possibilities without having to deal with the toolchain

i'm also planning to work on developing some cards-based, "paper uxn" :)

@sejo I really like this way of writing about tech - this is approachable to persons from non-tech context

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.