SRL Archive - Game Development

Maze Game


Don_Hawk

2011-05-02 12:16:46

I would like to design a maze game, but I don't know where to start with the maze. If you can provide some sample script for a maze I would gladly look it over and see how I can possibly start.
I want the mazes to get harder and harder for the player to escape.

Home

2011-05-02 12:19:50

From: Don_Hawk
I would like to design a maze game, but I don't know where to start with the maze. If you can provide some sample script for a maze I would gladly look it over and see how I can possibly start.


This probaly should be somewhere else than this category : )


Explain little bit more.

EDIT: Moved to Game Development.

~Home

Echo_

2011-05-02 12:38:10

So are you trying to make this game using a Simba form, or another language? You should be more specific.

Dan Cardin

2011-05-02 17:49:44

you would basically have a 2d array of numbers. i would do 0 for nothing, 1 for a wall, and currPos variable for yourself. Then just take in input, and change the array relative to the position of yourself on the array (ie, map[currPos[0] + dir[1]][currPos[1] + dir[1]] ). Then display the map.

Without a language there's not much more specificity to be had, and once you have the logic down for the maze movement, its basically done.