Sokoban game-How to load map and more questions.
Posted: Sat Jun 25, 2016 9:32 am
Hey everyone,
I am making a game right now as a hobby that should (I would like to) be able to load as many maps as possible from text.
First I want it to load (and stay compatible with)Sokoban maps and later be able to add new features and twists such as the cliches (teleporters , different colored blocks, etc.) but also experiment with never done before things. The kind of maps available here I would like to be able to load into the game: http://www.sourcecode.se/sokoban/levels.
So I already implemented tileset importing and have pre-planned a lot of classes and player movement, but I
can't completely get my head around how I would translate the text to a table or something similar to then assign the objects at the correct
locations to get the correct logic and tiles. If someone could give me a few pointers about this, I would be very grateful.
Thank you very much,
AltLock
EDIT: Clarification.
I am making a game right now as a hobby that should (I would like to) be able to load as many maps as possible from text.
First I want it to load (and stay compatible with)Sokoban maps and later be able to add new features and twists such as the cliches (teleporters , different colored blocks, etc.) but also experiment with never done before things. The kind of maps available here I would like to be able to load into the game: http://www.sourcecode.se/sokoban/levels.
So I already implemented tileset importing and have pre-planned a lot of classes and player movement, but I
can't completely get my head around how I would translate the text to a table or something similar to then assign the objects at the correct
locations to get the correct logic and tiles. If someone could give me a few pointers about this, I would be very grateful.
Thank you very much,
AltLock
EDIT: Clarification.