View Full Version : Looking for a level desgner(Mazes)
CiNiMoDZA
05-10-2007, 04:50 PM
I've made a little game that I think has potential! Just I suck at making frikking mazes, they either too hard or too easy! But basically what I have is a Pacman RPG, using that little combo system thing I posted earlier! This game is just a little project that Im doing to work out all the bugs of this system so that I can use it in my Digimon game!
WHAT I HAVE SO FAR:
At the moment I have my little man wo walks around, attacks, goes invisible, and shoots fire!!! I also have an enemy that chase you around, but only when you are visible!!!
WHAT I AM CURRENTLY ADDING:
Different enemies, ones that blow up when you destroy them, faster ones, and some bosses maybe!!! Also a jump function so as to give the levels more depth, so now the player must fight enemies while collecting the little balls and worry about jumping over gaps(or enemies?!? :P)
WHAT I NEED:
Mazes, DUH!!!
Please someone help! Im sure I read that Dis liked making mazes in the Dev Mag(Hint Hint)
Im not a maze maker, but Im sure you could generate mazes of varying difficulty without too much effort.
CiNiMoDZA
05-10-2007, 10:59 PM
Could you maybe show me a way of doing this, I've only really been learning GM for about 3months now!! That woul be really awesome though!!!
The way I would do it is have a whole bunch of predefined sets of maze parts (5x5) that all slightly differ, and choose them randomly to fill up my games play area.
It not the best way, and Im sure there are much better ways, I hope someone else in the communtiy might be able to help more
Thaumaturge
06-10-2007, 04:39 AM
I haven't read through it all, but this might be of help:
Wikipedia's article titled "Maze generation algorithm". (http://en.wikipedia.org/wiki/Maze_generation_algorithm) ^_^
dislekcia
06-10-2007, 01:06 PM
bigmaze.gm6 (http://www.gamedev.za.net/filecloset/download.php?id=242)
Generates mazes using a list of previous moves, it's pretty versatile and you can run it in the background without the visible generation by simply editing the loop a little. Fengol is using this in his procedural dungeon generation for Adventure Quest 2.
-D
Tr00jg
06-10-2007, 01:35 PM
It is fascinating to watch how the maze is created Dis...
CiNiMoDZA
06-10-2007, 08:25 PM
Thanks Dis, but I have no idea whats going on! Ive never used a for command before :P or made a loop for that matter! Do you thing you could maybe do a quick crash corse here, or possible just edit the code in that file and explain everything, when you have time of course!
Tr00jg
06-10-2007, 09:03 PM
for loops are almost always used in conjunction with arrays.
Say you do the following (without arrays and a for loop).
number1 = 1;
number2 = 2;
number3 = 3;
number4 = 4;
number5 = 5;
number6 = 6;
number7 = 7;
number8 = 8;
number9 = 9;
number10 = 10;
This is VERY tedious and time-consuming. arrays is a data-structure that groups similar data together. So using a for-loop, you can easily do the above.
for(i=0;i<10;i+=1)
{
number[i] = i;
}
The above code does exactly the same and makes it much more efficient for future use.
A for loop executes the stuff inside the curly-brackets every time a condition is true.
-------
My explanation might be a bit "complicated" for a beginner, but try this too...
http://en.wikipedia.org/wiki/For_loop
CiNiMoDZA
07-10-2007, 10:17 AM
Your explanation makes sense! Just what does the code in the {} brackets do! Lets see if Ive got this right! The first part makes i=0(duh), the next two parts say that as long as i is less than 10, it must +1! Ok, now how would I get each of these numbers individually?
Tr00jg
07-10-2007, 11:08 AM
An array is like a column.
numbers[0] = 0;
numbers[1] = 1;
numbers[2] = 2;
..etc
"i" gets more by 1 every time the condition is true. So substitute "i" with whatever "i" is at that time.
When the loop runs the first time, "i" is 0. While the condition is true, "i" gets more. The second time the condition is true, "i" is now "1", and so forth until the condition is no longer true.
Thus after the for-loop is done, you will have an array of numbers. To get each number, you have to point to it's index in the array.
number[0] is 0.
number[1] is 1.
and
number[2]*number[3] = 6;
Powered by vBulletin® Version 4.2.4 Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.