That could work but . . .
I would primarily create another class called character where you would store all of the stats
becouse there is an issue with storing that variable in the room
when you move to another room that room will have a different number of kills
technically you could just add all of the values using a for statement but it would be better practice
and easier to access and program along with organize the save feature that you add later =P
You could throw in stuff like skills into the character that can be obtained by entering a certain room
or store attributes at the start of a new game
also I would give rooms the flyable/swimmable/walkable vars to make it interesting
also before you get to far in programming i would take the code in your main function and
put it in another function so the main function will be neater and easy to understand the program flow
and then add a menu to the begining when you are done
~ Geo
~ You are unique, just like everyone else
|