Teen Programmers Unite  
 

 

Return to forum top

Mode 13h in C++

Posted by J8l5s [send private reply] at September 04, 2001, 06:20:12 PM

I need too know how to make an object move in mode13h with out leaving anything behind it. I also need to know how to install the key board with the djgpp compiler.

Posted by gian [send private reply] at September 05, 2001, 02:05:54 AM

Assuming you're doing double buffering, you need to clear the back buffer, and then flip it, before drawing your next frame.

Posted by Psion [send private reply] at September 05, 2001, 07:10:09 AM

If you don't want to use Allegro outright, you can view its source to see how it's all done.

Posted by RedX [send private reply] at September 05, 2001, 02:30:49 PM

Or use dirty rectangles. Save the part of the screen where the sprite will be. Place the sprite. Blit, and place saved portion back. Update sprite data and start over. This methode is good for complexe scene's with lots of static sprites, if the number of sprites becomes to big, it'll be slower.

RedX

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.