I put in:
if(change==0)
{
change=1;
}
framerate=1.00/change;
Type: Posts; User: gell10
I put in:
if(change==0)
{
change=1;
}
framerate=1.00/change;
Okay, I understand that void main() is not legal C++. I didn't know that and it's a shame many tutorials write void main(). Oh well, my problem still persists. Is it because the frame rate is too...
Ok I tried sprintf and I still have the same problem. Gibberish is posted after "Framerate: " Ok here is the updated code. Only change is now I use sprintf(); Oh and I changed it to int main, for...
What exactly is the problem with Void Main?
> rate=_ecvt(framerate, 10, &decimal, &sign);
ecvt converts specified double(framerate) to a string. 10 is the maximum number of places to display on...
Hey I am writing an Allegro Program and I want to be able to test the frame rate. I am using the header file time.h to measure time. When it is supposed to display the framerate, it displays weird...
As for Scripting Games go. There is one called runescape at http://www.runescape.com That is pretty advanced. It is a mmorpg that is written in pure javascript. I am pretty sure. Sure it is no Doom3...
I love how stuff works haha they have the basics for everything, html perl, c and just everything else. I recommend that site for getting your feet wet in any subject you are unfamiliar with.
so what would I put in load.h? I probably could then just make it load.cpp and not have load.h at all then? The way it is coded one function opens up to another. Which might be bad I suppose. I...
well all languages have their funny things about them. hehe latin for example i think penus or penis means pine tree and the word facio facere means to do or to make which is where we get that word...
There was an error that when the character died the window would close really fast. I corrected this problem. It should be fine now. :D
Thank you so much for the positive feed back :D . Yeah my next goal is to learn some open gl and a possibly port the battle algorithms to something with graphics. The eventual goal is something...
ok color was never implemented into the game. I removed that .h file from my zip program and I accidentally left load.h out. I have now included it in the zip file enjoy. I don't know why I used...
Hey everyone. I just completed my first "real" game. It's a text battle engine thing. I hope everyone enjoys it. The source code and the executable are in the one .zip file. Tell me what you think...
thank you all for your suggestions I figured it out thanks there was a simple error in my code's structure :D
hmm ok am i doing it right
char buffer[33];
memset(buffer, ' ', 33);
it doesn't seem to be working this is the code i am having problems with
int magicmenuchanger(string line1,...
Hi I have a char array- char buffer[33] and I was wondering if there is an easy function to clear it so that it is empty. I've been searching the net for a while and I can't seem to find one. There...
ok thanks i am going to try that
oh i mean the file opens but the compiler error reads
c:\program files\microsoft visual studio\vc98\include\sstream(22) : error C2504: 'basic_streambuf' : base class undefined
c:\program...
my compiler (mvc++ 6.0) cannot open <sstream> it says there are errors in that file does that mean i have to reinstall it, while itoa works just fine.
Thank you that works wonderfully :-D
yeah i'm a beginner, i'm trying to learn about functions and stuff before i move onto graphics. is there a way to perform the function i said above or would i have to type out each structure...
i guess my question is, is that code possible because it doesn't seem to work for me
hehe ok but my problem is i want to be able to alter the data in my structures through a generic function
for example (this is code i am making up right now so bear with me) =)
#include...
hi, it's me again. This time I am having problems writing a function that alters the data of the structure type. this is what i have can anyone tell me why it doesn't work. Thanks
#include...
thanks ok all my questions are answered... for now ;-)