nesdev.com
http://forums.nesdev.com/

multiple power bars
http://forums.nesdev.com/viewtopic.php?f=2&t=133
Page 1 of 1

Author:  Guest [ Mon Jan 03, 2005 12:47 am ]
Post subject:  multiple power bars

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

Author:  Memblers [ Mon Jan 03, 2005 6:25 am ]
Post subject: 

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.

Author:  Guest [ Mon Jan 03, 2005 6:22 pm ]
Post subject: 

Hi ...
where can i get the "halloween Demo"?

Brian

Author:  Memblers [ Tue Jan 04, 2005 2:44 am ]
Post subject: 

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).

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/