Help needed for Game developing
hey guys i have got an assignment of creating Boulder-Dash in java with 5 different levels...
can anyone tell me how can i design levels using text file...
I mean first i will create 5 text files and design my 5 different levels like this by writing some symbols or alphabet in the textfile.
i just want to know how can i read the text file to check the letters. so that if the letter is "W" than insert wall image or if the letter is "d" than insert Diamond.
Can someone help me please.
Re: Help needed for Game developing
The Scanner class has some easy to use methods you could use to read the lines of the text file into Strings.
how can i read the text file to check the letters.
Then the String class has some methods you could use to get at the individuals characters in the String.