Hi Everyone/Sam
As I said earlier, I'm working on a C++ Game Construction Set called
RPGen (Role Playing Game Generator) that aim to be a complete construction kit
to create your own RPG Game (a la Chrono Trigger/FF Like) without even having
to write a single line of code.
I've decided to use simple Linked list for my object database cause I
feel confortable with them (BSP Tree look so complicated and much more for 3D
Game like Doom…). Of Course it will require me Z Buffering and I wanted to
know if anyone have an efficient way doing Z buffering under SDL…
Of course I could go across my linked list looking at each object.z
variable and first blit the 0, go across again and blit the obj.z == 1 … but
that isn’t much efficient if you got like up to 10 layers…
I've wondered if there was any kind of Algorithm that can sort the
Linked list by Z Buffers and then I would just have to blit my list in order by
going trought it only once (That would save some process
Every Suggestion are welcome for this Z Buffering stuff :)
Also, About graphic programming, I would like to have people toughts
about the best way to refresh the screen (and viewports) of a game… Thread or
in the main loop using threads for other function such as Event Trap and Sound
? Also, my BIG concern is getting the Best FPS result possible and is the
SDL_SWSURFACE the best for the Screen in a scrolling game or SDL_HWSURFACE ?
Sam, could you give me some hints of the Way game like Civ refresh
their Game window ? (that would help:)
A last question, I've seen file such as IMG_jpg.c and IMG_tif.c in
SDL Imglib library but the Readme said this lib doesn’t support them. Is there
a way to have Jpeg support (I don’t really care about Tiff file)
Enuff Questions ... Now for Suggestions :)
It's just a little #ifdef stuff I think people could really appreciate.
In SDLttf and Imglib. there is no
#ifdef __cplusplus
extern “C” {
#endif
…
#ifdef __cplusplus
}
#endif
Those 6 little line could save many frustrations for New C++ programmers like
me I had OP from the Effnet C++ channel working on this problem for 1:30
hour before they make me realize that was the problem
It's just to be sure that C++ codes don't get Undefined References to
… Functions
That's IT !!! Sorry for the Size of this message .. it's just that I
put my questions on hold and then Ask in a row
That's to all of you to answering this and my old messages and Special
Thanks to Sam for his incredibly dedicated work on SDL and Cool Games Port to
Linux (Loki Rules !! how you make it ??? So much games to port
Good Luck Everyone
Jeremie Plante --> Smiley Addicted