Computer Science Canada File save/load and menus |
Author: | McCool [ Sat May 06, 2006 2:04 pm ] | ||
Post subject: | File save/load and menus | ||
Hey guys, I've been away from programming for about 3 years now and I am trying to put this game I had into some kind of working order and I've hit a bump. I need to know what do you guys think is the best way to program the 'buy' menu. Eg. player has 100 bucks, Item 1 cost 25 dmg +1 Item 2 cost 75 dmg +2 Item 3 cost 100 dmg +3 how do I program this so when the player buys the item their money goes down accordingly and the damage goes up accordingly. Is there a way to avoid doing this:
also I am having no luck saving player stats or loading them for that matter. How do I save information to a separate file and open it at a later date? thanks a lot guys |
Author: | Cervantes [ Sat May 06, 2006 3:17 pm ] | ||
Post subject: | |||
There certainly is a nice way to avoid that. The trick is to use arrays and records.
|