It is currently Tue Nov 13, 2018 9:00 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Oct 29, 2018 9:04 am 
Offline
User avatar

Joined: Wed Sep 05, 2018 11:13 am
Posts: 141
Location: Colorado
So in most higher level game development displaying your score and other status to the screen is a pretty trivial thing.

I'm thinking about keeping score in two bytes of data, and I'm trying to think of the best way to transfer that data to the screen.

I want to display it as background tiles because I'd like it to not take up any of my 8 scanline sprite slots. I found it was fairly easy to place letters and numbers into their corresponding ascii locations inside the background section of the .chr file so that I could do something like this when setting up the data I want to display to the screen:
Code:
score_status:
.byte "SCORE 000000"


I'm not exactly sure what the best way to fill in the numbers is though. I'm not sure if there's a relatively simple way to convert from binary to base 10 on the 6502, so I'm looking for suggestions.

How do you guys typically display a score in your games? Is there a kind of standard way to do this or does everyone do it as they see fit?

Thanks for your help

_________________
A few of my web games
https://www.embed.com
Or if you're bored at work
https://www.classicsolitaire.com


Top
 Profile  
 
PostPosted: Mon Oct 29, 2018 9:40 am 
Offline
User avatar

Joined: Thu Mar 31, 2016 11:15 am
Posts: 415
There's been a bunch of threads on it. Last one was: viewtopic.php?f=10&t=17950

Don't forget to use the search feature :)


Top
 Profile  
 
PostPosted: Mon Oct 29, 2018 9:57 am 
Offline
User avatar

Joined: Wed Sep 05, 2018 11:13 am
Posts: 141
Location: Colorado
pubby wrote:
There's been a bunch of threads on it. Last one was: viewtopic.php?f=10&t=17950

Don't forget to use the search feature :)



Yeah... I definitely should have spent a minute looking for a previous post. Sorry about that

_________________
A few of my web games
https://www.embed.com
Or if you're bored at work
https://www.classicsolitaire.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group