Jump to content
IGNORED

4 Digit Score


Recommended Posts

Another method is to put both sprites into 2 copies close mode and position players 0 and 1 so they line up like this:

 

0101

 

then do something like this:

  ldy #7
ScoreLoop:
  sta WSYNC
  lda (ThousandDigit),y
  sta GRP0
  lda (HundredDigit),y
  sta GRP1
  lda (TenDigit),y
  tax
  lda (OneDigit),y
  SLEEP ???          ; delay until the Thousand has been drawn
  stx GRP0           ; replace Thousands with Tens
  sta GRP1           ; replace Hundreds with Ones
  dey
  bpl Score Loop


The value for ??? depends upon the the X position of the score display. It's basically a truncated version of the 6-digit score, which ends up being simpler because you don't need to use VDEL.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...