Original Post
I'm trying to make a tile based RPG with pyglet but I'm a bit stuck
I plan to have a text file from which it would read the tile positions and other details from
e.g.
[map]
level = +++++
+-----+
+-----+
+++++
I was using configparser to turn this into a list of rows:
[source lang="python"]self.map = parser.get("map","level").split("\n")[/source]
But I'm not sure where to go from there :/ What I want to do is have each symbol represent a tile (grass = - etc.) and be displayed on the screen.
Any suggestions would be greatly appreciated
e.g.
[map]
level = +++++
+-----+
+-----+
+++++
I was using configparser to turn this into a list of rows:
[source lang="python"]self.map = parser.get("map","level").split("\n")[/source]
But I'm not sure where to go from there :/ What I want to do is have each symbol represent a tile (grass = - etc.) and be displayed on the screen.
Any suggestions would be greatly appreciated