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.
WWWWWWWWW
WDDRDDDDDdDW
WDDDDRDDDdDW
WdDDdDDDRDDW
WDDRDDdDDDDW
WWWWWWWWW
Where:
W= Wall
D= Dirt
d= Diamond
R=Rock
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.