Archived

This topic is now archived and is closed to further replies.

kareth

How to do this, anyidea?

Recommended Posts

Okay i got this idea about 2D/3D game-engine. The basic idea is that the background is 2D pre-created or created-on-fly by components and moving objects 3D. I think that best way is to create 3-layers. Firstone is graphic-layer ,second is bouncin-layer which is invisible and 3D-layer. So the result would be like in Baldur''s Gate. So is it wise to use 3 different datafiles or should i make just one file which has data for level? Would it be hard and could i use Direct3D or do i have to make some code that convert 3D-model for DirectDraw?

Share this post


Link to post
Share on other sites
I''m not totally sure what you''re talking about but I''ll give it a shot. My suggestion is split it up into 3 files but make sure that every entry in each file has corresponding entries in the other files, if there''s one missing leave it blank. That way you can efficiently load data from all 3 files using random access files.

Also, it might be easier to code if you left some kind of abstraction between layers so there''s seamless integration and not tons of layer details all coded seperately.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
If you put the different layers into different files, you''re just begging for versioning problems. There are sometimes good reasons to use different files, especially if you''re programming for multiple architectures, but something like this just cries out for a single datafile.

Share this post


Link to post
Share on other sites