Translate BASIC sprite example to C (CC65) ?
Posted: Thu Oct 19, 2023 8:10 am
Hi,
wanted to give C with CC65 a try, and thought, "So how do you create and move sprites?"
I found this interesting code in BASIC (video-demo here):
https://github.com/SlithyMatt/x16-sprit ... sprite.bas
and thought, "What, if I translated this to C?"
But I couldn't do it (yet). Not sure, how a POKE is done correctly, and in BASIC, the VPOKE seems to take three arguments, while "vpoke()" of CC65 only takes two. So I'm not sure, if it's the corresponding thing.
So, I wonder, if maybe somebody else wants to translate the example to C (for CC65).
wanted to give C with CC65 a try, and thought, "So how do you create and move sprites?"
I found this interesting code in BASIC (video-demo here):
https://github.com/SlithyMatt/x16-sprit ... sprite.bas
and thought, "What, if I translated this to C?"
But I couldn't do it (yet). Not sure, how a POKE is done correctly, and in BASIC, the VPOKE seems to take three arguments, while "vpoke()" of CC65 only takes two. So I'm not sure, if it's the corresponding thing.
So, I wonder, if maybe somebody else wants to translate the example to C (for CC65).