i am making a game similar to guitar hero. the notes are stored in external files (hash tables). currently i have 2 applications. an encoder and a decoder. the game works around a simple time mechanism.
every 100 milliseconds add 1 to global var 'time'
that is basically what i did for the timer. here is how i want the program to work. i want to store the note as a vale in the hash table. i want the keys to be named as the current 'time' variable.
unfortunately i cannot figure out how to name a key after a variable. however construct wont let me do the following : & global('time')
this is under key name.
here is the real problem, if i cant have the keys automatically named and recalled from a simple string my encoding and decoding system will not work....
does anyone have any ideas.....