Jump to content
  • Advertisement
Sign in to follow this  
GioCo

Best approach to update game screen

This topic is 952 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Dear Gentlemen and Ladies,

 

Environment

  • DosBox
  • Borland C++ 3.1

Objective

  • Generally learn programming a basic game in DOS with C++
  • Learn to merge multiple files into single or limited bigger files

Description

 

I would like to merge multiple files like bmp images and sounds in a single bigger file without leaving them as readable single bmp of sound file. Finding some suggestions on internet I find that someone convert BMP to .H to include it into the EXE using the compiler.

 

Before starting to write a class library to manage it I would like to ask if you have any suggestions about that.

 

Thank you in advance.

GioCo

Share this post


Link to post
Share on other sites
Advertisement

I wouldn't include resource files inside the EXE like that. What you most likely want is a resource file like Doom's WAD files. You can find more info about WADs here: http://doom.wikia.com/wiki/WAD 

 

Note that the WAD format is just an example file format, but it's a good example since it's easy to understand and implement. There's more advanced formats out there that include file compression and whatnot. 

Share this post


Link to post
Share on other sites

Dear Gentlemen and Ladies,

 

Environment

  • DosBox
  • Borland C++ 3.1

Objective

  • Generally learn programming a basic game in DOS with C++
  • Learn to merge multiple files into single or limited bigger files

Description

 

I would like to merge multiple files like bmp images and sounds in a single bigger file without leaving them as readable single bmp of sound file. Finding some suggestions on internet I find that someone convert BMP to .H to include it into the EXE using the compiler.

 

Before starting to write a class library to manage it I would like to ask if you have any suggestions about that.

 

Thank you in advance.

GioCo

 

You could probably use Fabien Sanglard's article about how to build Id Software's Wolfenstein 3D from 1992 as a starting point -- he mentions how they packed the assets, and the dev environment is the same as yours.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!