It is currently Sun Dec 17, 2017 6:31 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: multiple power bars
PostPosted: Mon Jan 03, 2005 12:47 am 
Hi all,

If i want to have multiple power bars (representing
power of different characters in the game) on the same screen,
what should I do to achieve this?

I would like to have smooth change of the power bar.
Anyone could help?

Brian


Top
  
 
 Post subject:
PostPosted: Mon Jan 03, 2005 6:25 am 
Offline
Site Admin
User avatar

Joined: Mon Sep 20, 2004 6:04 am
Posts: 3488
Location: Indianapolis
The solid part of the bar is obvious enough (update the nametable). If you want one energy unit per pixel, it'd be: energy / 8 = number of solid blocks. The remainder would be the number of pixels filled in the partial block.

Either sprites or background could be used for the partial blocks. The sprite version would be a solid block partially hidden beneath the 'previous' solid BG block (this is like the trick I used for the blood lines in my old Halloween demo), and the all-background version would require background tiles for all 8 partial stages.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 03, 2005 6:22 pm 
Hi ...
where can i get the "halloween Demo"?

Brian


Top
  
 
 Post subject:
PostPosted: Tue Jan 04, 2005 2:44 am 
Offline
Site Admin
User avatar

Joined: Mon Sep 20, 2004 6:04 am
Posts: 3488
Location: Indianapolis
It's here.
http://nesdev.com/haloween.zip

It's not much to see, though. I think it doesn't work right on a real NES (and probably some of the better emus too).


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

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 11 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