🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Displaying PCX/BMP in DOS..
I recommend that you come up with your own graphics file format (try to create a converter that changes BMP to your own format). I recommend that you use raw pixel data in these files (or a little header, the structures are really good for this). This way you can load images very fast and save them to your memory (or videocard's memory for you DX people). Then use blit in DX or put pixel by pixel in DOS.
When you're running out of memory you can save multiple files. For example: when you have a grass level load the grass sprites and when you enter a castle level load the castle sprites. For using DirectX: this way you can put all the sprites in video memory.
I have read the replies, and I guess it would be wiser to start with windows. I already know a good amount of c++, however I have not actually done anything for windows (VB does not count ), so it difficult to start mainly because there is just too much junk to deal with before you can actually accomplish anything. Anyway, I guess I will start with windows and maybe create the next PONG clone.
Can anyone provide me with any good resources for windows programming, and if at all possible, the sourcecode used to open and display files, bmp,jpg,pcx,etc. Once I understand how the program works with the files then I am sure I can move on to creating my own file formats. Any source would be greatly appreciated.
One more thing: Can anyone recommend any good windows programming books, game programming books, sites. I here Windows game programming for dummies (by Andre LaMothe) is good.
I am new to game development. I know basic/intermediat c++. At the advice of many game creating articles, I have decided to make a tetris clone. I want to start in DOS so I get the basics down before moving on to windows.
Anyway, my question is how would I display a pcx or bmp as a background in my game? Whats the maximum size (width,height) that can be displayed in dos? And whats do I need to do to create the game area (area where the blocks fall). Is that just a box specified by
x and y co-ordinats ? Any help would be greatly appreciated.
Thanks in advance.