Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fourspriter: Sprite Engine from the Mojon Twins
#3
Nice.

I'd downloaded this and was playing with translating it just yesterday :-)

Seems you beat me to it.

Personally, I probably would have sneaked a few more options into the pile - like a function to return ATTR values, based on ink/paper/bright/flash - because this is really meant for inexperienced programmers, and if we can insulate them from awkward stuff that can't hurt.

Also, when reading their code, I noticed a few times they could have written the code a little tighter, and I was itching to change the assembler. *heh* I'd probably save only a handful of T states *chuckle* So probably not much in the way of worth it though.

Things like:

Code:
ld        hl, xpos
ld        a, (hl)
dec        a
ld        (hl), a
is 28 T states.

I think
Code:
ld        hl, xpos
dec (hl)
at 21 T states Would be tighter.

Oddly, they use the latter method for increasing a variable.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)