Jump to content

Photo

4 Digit Score


3 replies to this topic

#1 Endless Runner 2600 OFFLINE  

Endless Runner 2600

    Space Invader

  • 11 posts

Posted Fri Apr 26, 2019 7:38 AM

Is there a tutorial or guide for displaying a 4 digit score, cause I tried searching the forums and couldn't find any tutorials. I looked for videos on youtube and also couldn't find any.


Edited by Endless Runner 2600, Fri Apr 26, 2019 7:39 AM.


#2 SpiceWare OFFLINE  

SpiceWare

    Draconian

  • 12,803 posts
  • Medieval Mayhem
  • Location:Planet Houston

Posted Fri Apr 26, 2019 7:50 AM

My tutorial shows how to use the playfield to display two 2 digit scores (colors are funky as it's in attract mode).

 

blogentry-3056-0-05036900-1405385739.png

 

In reply 56 of The Celery Game topic I helped atari2600land convert it for a single 4 digit display.

 

post-3056-0-41840200-1468789159.png



#3 KevKelley OFFLINE  

KevKelley

    Chopper Commander

  • 234 posts
  • Lots of hobbies, little time, loads of fun.
  • Location:Orlando

Posted Sat Apr 27, 2019 6:32 PM

This is interesting. Was curious as to methods how but never really looked further into it. Cool.

#4 SpiceWare OFFLINE  

SpiceWare

    Draconian

  • 12,803 posts
  • Medieval Mayhem
  • Location:Planet Houston

Posted Sun Apr 28, 2019 8:09 AM

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.






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users