Posted: Wed Dec 12, 2012 6:50 pm Post subject: Help importing a Maze into Turing
What is it you are trying to achieve?
I am trying to make a Maze game with turing, for a grade 10 Computer Engineering class.
What is the problem you are having?
I cant figure out how to add the actual maze into turing for players to navigate through. I heard from a classmate that I had to somehow change the format in a way, but I cant actually recieve any help from that classmate, as he does not know how to do it himself.
Describe what you have tried to solve this problem
I searched the internet, I searched this website, I asked my teacher, but he didn't know (All people in my class have to make different games, and I chose a maze), and he cant really help me anyways, because we have moved onto the next unit, so this project is overdue.
Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Here is an example of what I was trying to implement into my game:
:--: :--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:
I I I I I
: :--:--: : :--:--:--: : :--: : :--:--: :--:--:--: :
I I I I I I I I I I I
:--:--: : :--:--: : : : : : : : : :--: :--:--:--:
I I I I I I I I I I I I I I
: : : : : :--:--: :--:--: : : : :--: : :--:--: :
I I I I I I I I I I I I I
: :--:--:--:--: : : : : :--: :--: : :--: : :--:--:
I I I I I I I I I I I I
:--:--:--: : :--:--:--: :--: :--: : :--: : : : :--:
I I I I I I I I I I
: : :--:--:--:--:--:--:--:--:--: : :--:--: :--: : : :
I I I I I I I I I I
: :--: : :--:--:--:--:--: : :--:--:--:--:--: : :--: :
I I I I I I I I I
: : :--:--: :--:--:--: : : :--: :--: : : :--:--:--:
I I I I I I I I I I I I I
: :--:--: :--: : : :--:--: : :--: : : : :--: : :
I I I I I I I I I I I
: :--:--:--:--:--: :--:--:--:--: : :--: : :--: :--: :
I I I I I I
:--:--:--:--:--:--:--:--:--:--:--:--: :--:--:--:--:--:--:--:
(It may look messed up now, but when its in a Text document, its all lined up)
Turing:
<Add your code here>
Please specify what version of Turing you are using
The latest Turing 4.1.1
Sponsor Sponsor
Insectoid
Posted: Wed Dec 12, 2012 8:04 pm Post subject: RE:Help importing a Maze into Turing
I have no idea how those lines are supposed to represent a maze. You should probably explain what it all means so we can properly help.
Note: If you want to preserve the formatting of your text, use code tags, like so:
code:
[code]
%put your code or formatted text here
[/ code] (no space)
BlahBlah
Posted: Thu Dec 13, 2012 4:38 pm Post subject: Re: RE:Help importing a Maze into Turing
Insectoid @ Wed Dec 12, 2012 8:04 pm wrote:
I have no idea how those lines are supposed to represent a maze. You should probably explain what it all means so we can properly help.
Note: If you want to preserve the formatting of your text, use code tags, like so:
code:
[code]
%put your code or formatted text here
[/ code] (no space)
I did explain, and those lines are the maze. Because its not in a text doc, its not all lined up, I said that underneath it.
Insectoid
Posted: Thu Dec 13, 2012 4:43 pm Post subject: RE:Help importing a Maze into Turing
Yeah, but what's a 'I'? What does ':--:' represent?
Panphobia
Posted: Thu Dec 13, 2012 5:10 pm Post subject: RE:Help importing a Maze into Turing
make it simple # is a wall and . is an open space
crossley7
Posted: Fri Dec 14, 2012 1:58 am Post subject: RE:Help importing a Maze into Turing
the simpler you go, the better. If you want to read it when you are in the text file use something like the # and . suggested. If not, I like using integers to represent a map (let -1 be a wall, 0 be a path, any others are special squares like start, finish) and it allows for you to make cool cheezy modifications like a teleport square or something along those lines if you felt like it