The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




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: 1 Guest(s)