VBGamer |
|
RE: sprites Gunar Liebig (0 replies, 0 views) (2000-Jul-12) diffrent sprite routines?
let me try to describe the system i'm courently using:
I use a screen resolution of 800*600 pixel and use 4 surfaces right now. 1. The Menuframes on the bottom and on the right (the size of this picture is 800*600 it fills the screen)
The secound surfaces holds the background of the gamescreenv (640*480) it is drawn in the upper left edge of the screen. The 3rd one is a file with the characters animations (walking). I use the system that Peter tried to describe (but thanks anyway, it was good to have a confirmation, that it is right this way).
The last surface handels the foreground, which is 800*600, because i put the animations for the scene background on the empty space.
If you look at http://no.blowjob.de/darkwood/gfx1.htm you maybe understand what i mean.
So far there is nothin i could complain about, but i will need much more animations for the character interactions and loading the sprites from bitmap files is a difficult way. It also costs me a lot of time to load other files into the surfaces when the files are so big.
In former Qbasic times i wrote an own libary for sprites: It was one file where i saved all the sprites and then i could load them just by knowing their postion in the file. I kept the file open during the whole game. Is it possible to do this with DirectX too?
I don't expect it, but maybe you have other ideas for me.
by the way: i also wrote a newer version of the game, where the fore- and background is scrollable on the
x-axis. There i had the same problem that Adam described... so i splitted the 1600* 480 picture into two parts so i got one 800*960 picture and it works without any problems.
before:
***************
I I
***************
afterwards:
********
I I
********
I I
********
Gunar Liebig
DarkWood Entertainment |