Hi..
> I am in the process of designing a game write now. I am currently
> writing
> the high level design. At any rate to problems have come about right
> now.
> 1) Does anyone know how to interpolate sound using interger
> variables?
> 2) Does anyone know how Blizzard(tm) Entertainment made the sprites
> of
> different teams different colors? I can't imagine they have like 8
> copies of
> all the graphics.
> Thanks Ahead of time to who ever can help. (I will put you name in the
> credits if you do help! And I will see to it you get a copy of the
> game.)
Drawing the sprite in different colours is quite trivial. First, assign n
colours to the sprite. Then, decide how many coloursets you need. call this
.
you need n times x palette entries - set this aside and make each set of
palette entries the coloursets you need.
when you draw your sprite, add (n*colour) to the value of each pixel before
drawing it. colour 0 is best set as the orignial colour of the sprite. voila.
Limitations: the palette entries must be consecutive. It takes more math than
storing 8 different coloured sprites, so it's slower. You can't do it if you
are using a mode that doesn't use the palette (aka highcolour).
Craig
--- FMail/386 1.20+
---------------
* Origin: Communications Barrier BBS (03) 9585 1112, 24hrs (3:632/533)
|