| | |
Mode 13 graphics,Problem with io streams and new operator
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
I am currently developing a Snake game with multiplayer support(Not Network based) with unlimited no of players(ok limited by the keys and RAM and processor speed but not restricted).
I developed a nice concept of key maps to load all controller information into memory and handle it there.This works just fine.
Right now it's on version 0.5a and you can get it at http://www.xlock.cjb.net
I still hav not added the configuration editor so you can only use 2 player and single player.Try it out,it does not crash or cause problems.I just need help to improve it's memory mangement.
The game works just fine with proper speed and all but it crashes with an abnormal termination error if I use fstream.It also will quit if i use new to allocate memory for the snake(the blocks).
Both are only a problem if is use them after i enter mode 13.
The current work around is loading all the needed memory into a linked list and popping it when it is required.This is quite a waste.And linmits the max score you can get.
I use Borland C++ 5.02.I complie the exe with DOS(Standard) and Huge Memory Mode,with Class Library and Floating Point Support.
Currently I load all the key maps into memory before entring mode 13.
Needs
~~~~
1.A safe way to read data from a file after entring mode 13 <very important>
2.Use dynamic memory allotement after entring mode 13 <not very important>
I developed a nice concept of key maps to load all controller information into memory and handle it there.This works just fine.
Right now it's on version 0.5a and you can get it at http://www.xlock.cjb.net
I still hav not added the configuration editor so you can only use 2 player and single player.Try it out,it does not crash or cause problems.I just need help to improve it's memory mangement.
The game works just fine with proper speed and all but it crashes with an abnormal termination error if I use fstream.It also will quit if i use new to allocate memory for the snake(the blocks).
Both are only a problem if is use them after i enter mode 13.
The current work around is loading all the needed memory into a linked list and popping it when it is required.This is quite a waste.And linmits the max score you can get.
I use Borland C++ 5.02.I complie the exe with DOS(Standard) and Huge Memory Mode,with Class Library and Floating Point Support.
Currently I load all the key maps into memory before entring mode 13.
Needs
~~~~
1.A safe way to read data from a file after entring mode 13 <very important>
2.Use dynamic memory allotement after entring mode 13 <not very important>
I changed my website address to http://www.xlock.ssr.be/ go there if you want the latest stuff.I wont bother with cjb.net any more
![]() |
Similar Threads
- Freezing problem - possibly Graphics card related? (Monitors, Displays and Video Cards)
- problem with operator overloading (C++)
- Problem with taint mode (Perl)
- graphics problem (Monitors, Displays and Video Cards)
- Yahoo Mail Send Problem using Mozilla FireFox verision 0.8 (Web Browsers)
- How to Use Windows Mode Graphics (Game Development)
- IE graphics problem (Web Browsers)
Other Threads in the C++ Forum
- Previous Thread: Fast data storage
- Next Thread: Compare strings...
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count database delete deploy desktop developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker list loop looping loops map math memory multiple news node number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference rpg sorting string strings struct temperature template test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





