Would someone please help me learn how to create a 2d map using python with arrays or something ?
I have been trying to find out for days and haven't found anything.
I found this on the internet...
self.map = (
"::::::XXXXXXXXXXXXXX",
"::::::..::::XX::::::",
"::Z:+:XX::::..::M:::",
"::::::XXX.XXXX::::::",
"XXX.XXXXX.XXXXXX.XXX",
"XXX.XXX/:::::XXX....",
"XXX.XXX::&:::XXX.XXX",
"XXX....::::M:XXX.XXX",
"XXX.XXX:::>::X&::::X",
"XXX.XXX@:::::X:::::X",
"XXX.XXXXXX.XXX::Z::X",
"XXX.XXXXXX.XXX:::::X",
"X::R:::XX:::XXXX.XXX",
"X:::::&XX:M:.....XXX",
"XX.XXXXXX:::XXXX.XXX",
"XX.XXXXXX.XXXXXX.XXX",
"X:::::::::::::M::::X",
".::/:M:/:::B:::::::.",
"X::::::::::::::::::X",
"XXXXXXXXXXXXXXXXXXXX",
)
Looks good to me but I DON'T KNOW HOW TO HAVE MY PROGRAM READ IT AND PLACE 2D TILES IN THE SPACES OF EACH SYMBOL :(
Please help!
Oh yeah, I am using python with PYGAME libraries