Posted: Tue Jan 20, 2004 5:12 pm Post subject: Isometric Maze Generator
Here is the Iso Maze generator that I made.
* It has two parts to it 'IsoMaze.t' and 'figures.t' you just need to put both of them into the same folder and run 'IsoMaze.t'.
This can be updated to fit the newer version of turing, I think that way it could be spead up a bit...
Posted: Wed Jan 21, 2004 10:10 pm Post subject: (No subject)
No Posts
any comments are welcome...
AsianSensation
Posted: Wed Jan 21, 2004 10:28 pm Post subject: (No subject)
nice....I like the isometric point, that was very cool, here, have some bits.
+50 bits
sport
Posted: Wed Jan 21, 2004 10:28 pm Post subject: (No subject)
Great stuff. The question is can you make some barriers and allow the user to walk through the maze to the exit and have the exits guarded and make a time limit. Basicly make a game out of it. Then it will be really awesome. Random generation kinda seems the same so far.
Tony
Posted: Wed Jan 21, 2004 10:46 pm Post subject: (No subject)
looks original Maybe you should create an engine for various isometric displays or something 8)
Posted: Thu Jan 22, 2004 12:28 am Post subject: (No subject)
[EDIT] Deleted.
woops, double posted somehow
DanShadow
Posted: Thu Jan 22, 2004 12:29 am Post subject: (No subject)
wow! I am totally impressed....this is truly excellent work...my ISU this year is an RPG using isometric graphics....but this is ju st awesome! Seeing as I used nearly the same type of idea as you, I know kind of how its done (without looking at code)...but y ou did it the harder, more efficient way...good job!! Have some bits to round you off:
[+11 Bits]
(PS) Is there any point to your program?? Like...there was no precoded maze...and I couldnt find any key to move the yellow box..
TheXploder
Posted: Thu Jan 22, 2004 9:06 am Post subject: (No subject)
hey thanx for the generosity
The point isn't clear beuse it's just an example but you could make something huge out of it.
The walls I just drew with a for loop.
I gotta figure out how to get the map array just from a text file
contaning code like thisif;
The yellow object is just testing out the collision.
The collision works already but it needs some tweaking.
Good thing about this isometric maze is that you can rezise it.
If you change the gridsize values, the maze scales down, or up.
You can also change the colour of the bricks, bacuase their not bitmap.
When I figure out a way to load text files and read them i'll make an updated version.
Sponsor Sponsor
agent_orange444
Posted: Thu Jan 22, 2004 6:24 pm Post subject: (No subject)
nice job, it would certainly make a fun and great looking game!
DanShadow
Posted: Thu Jan 22, 2004 10:25 pm Post subject: (No subject)
here, try this:
code:
var mapx,mapy,mapt:array 1..9 of int
%Mapx,mapy = (x,y) co-ordinates, mapt= map tile type
for i:1..9
mapt(i):=1
end for
for i:1..3
mapx(i):=0 +(i*25)
mapy(i):=25
end for
for i:4..6
mapx(i):=25+(i*25)
mapy(i) :=50
end for
for i:7..9
mapx(i):=50+(i*25)
mapy(i):=75
end for
%Main Program
loop
end loop
%------------------------Saving to txt----------
var datafile:int
open:datafile,"savefile-name",put
for i:1..9
put:datafile,mapx(i)
put:datafile,mapy(i)
put:datafile,mapt(i)
end for
close:datafile
%------------------------Loading txt----------------
open:datafile,"savefile-name",g et
for i:1..9
get:datafile,mapx(i)
get:datafile,mapy(i)
get:datafile,mapt(i)
end for
close:datafile
TheXploder
Posted: Fri Jan 23, 2004 2:10 pm Post subject: (No subject)
thx , could you please explain how this works:
code:
for i:1..9
mapt(i):=1
end for
for i:1..3
mapx(i):=0 +(i*25)
mapy(i):=25
end for
for i:4..6
mapx(i):=25+(i*25)
mapy(i) :=50
end for
for i:7..9
mapx(i):=50+(i*25)
mapy(i):=75
end for
TheXploder
Posted: Thu Jan 29, 2004 1:04 pm Post subject: (No subject)
Hey, I'm making an updated version of my last Isometric Generator, which was ok...
I am completely recoding everything, and I'll try to keep an update on my progress.. But could someone please write a tutorial on how to include a text file, that would hold a map array, and how to implement it into the turing program with a loading proccess.. that would help a lot... I'm ready to support you, with bits...
Anyway enjoy, It just generates an Iso plane (the right way )...
Posted: Sun Feb 01, 2004 1:24 pm Post subject: (No subject)
to write to a text file use this
code:
var stream:int
var words:array 1..1000
open:stream,"filename.txt",put
assert stream > 0
for i:1..1000
put:stream,words(i)
end for
reading from a file
code:
var stream:int
var words:array 1..1000
var count:=0
loop
count +=1
get:stream,skip %skips all the white space
exit when eof(stream) %exit when your at the end of the file
get:stream,words(count) %get each word, one at a time and store it in an array
end loop
TheXploder
Posted: Tue Feb 17, 2004 10:06 pm Post subject: (No subject)
Here a the newer version of of the Isometric Generator...
For the array the only numbers used are '1's and '0's but there are 13 tiles in total.
Posted: Tue Feb 17, 2004 10:29 pm Post subject: (No subject)
that's not really isometric but a good attempt non the less. by definition isometric means equal sided. for an accurate isometric view, you need to start off with your map looking at it from a birds eye view. then you rotate the map 45 degrees on the y axis and 30 degrees on the x axis. also when i run it, it doesnt really generate a maze. is it supposed to???
if you're going to make a game out of this i suggest you plan ahead... i tried to program an isometric game in one sit with out any planning and i ended up quiting... i got the depth sorting and stuff to work but when it came to collision detection it became way to complex...