Monday, February 11, 2008

Kamchatka!!!

The new Kamchatka RPG is up and exiting. So far I made a program that either shows nothing, or closes itself. If an error occurs opening the .txt file, the program will terminate using the "exit" command that Zhanar showed me. She seems to have this weird communication thing going on with the computer that I can't understand. In any case, it's helpful for me! The setup for the program is as follows:

"areas" of the game will be read from .txt files. For instance, the loading screen will be a .txt file that will load and display whatever is inside of it. Then when the player flies their helicopter of doom to the Commander Islands, a new .txt (probably commanderislands.txt) will load and display all of its text. This will keep the program code much simpler.

On a further note, there will be .txt files for skills and inventory that can be accessed. There are ways to get lines of code from a text file until it reaches a certain point, and then take the code after that. For instance, the skills.txt file would look like this:

helicopter flying
15

The program would look through the file until it found "helicopter flying" and then take the next line which will be the level the player has obtained (15 here)

Inventory/Equipment will probably be similar unless someone smart suggests a much better way to do this.

No comments: