05-27-2003, 12:57 PM
Is it binary? I don't know.
Anyway, I came up with a system for my adventure game which basicly loads a file according to scene, and from that file it reads : how many click boxes scene got, click boxes boundaries, what messages should be printed when you click on each click box, where the message should be printed and how long should it stay on the screen. I can also make more text message for the same
click box and within the code flag it for a specific situation(if
an object was picked up or similar).
It can all be done with a nice for loop and basicly one set of routines for all scenes minus the specifications for each scene related to object being picked up and similar.
Currently, I do all that within my programm and it's very memory consuming during compiling. My code is like 70 Kb long and I already need to split it.
Now, I can mask my files that hold all these information and messages with bogus names and extensions but I still don't want for people to be able to read the entire game messages or even alter them with the simple text editor.
So I'm wondering, can I save those files as binary or something like that and read all those variables and strings from them when the files are saved like that?
How do I do that?
Anyway, I came up with a system for my adventure game which basicly loads a file according to scene, and from that file it reads : how many click boxes scene got, click boxes boundaries, what messages should be printed when you click on each click box, where the message should be printed and how long should it stay on the screen. I can also make more text message for the same
click box and within the code flag it for a specific situation(if
an object was picked up or similar).
It can all be done with a nice for loop and basicly one set of routines for all scenes minus the specifications for each scene related to object being picked up and similar.
Currently, I do all that within my programm and it's very memory consuming during compiling. My code is like 70 Kb long and I already need to split it.
Now, I can mask my files that hold all these information and messages with bogus names and extensions but I still don't want for people to be able to read the entire game messages or even alter them with the simple text editor.
So I'm wondering, can I save those files as binary or something like that and read all those variables and strings from them when the files are saved like that?
How do I do that?