The best tile based level design [on hold]
- by ReallyGoodPie
My current method for tile based levels is to put everything in an array like the following:
grass = g
sky = s
house = h
...
"""
["SSSSSSSSSSSSSSSSSSSSSSSSSSSSSS"],
["SSSSSSSSSSSSSSSSSSSSSSSSSSSSSS"],
["HHHHHHHHHHHHHHSSSSSSSSSSSSSSSS"],
["GGGGGGGGGGGGGGGGGGGGGGGGGGGGGG"],
"""
I would then run a for loop to pass these on to a sprite class, bliting the images to the screen.
This is what I'd generally do in pygame when I am creating levels for a tile based RPG's. However, as I've gone on, I have added allot more sprites and image and it is seriously becoming more and more confusing to work with this and allot of mistakes are being made. What is the best alternative or other methods for doing this?