Results 1 to 4 of 4

Thread: Maze Game

  1. #1
    Join Date
    May 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Maze Game

    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.
    Last edited by Don_Hawk; 05-02-2011 at 04:25 PM.

  2. #2
    Join Date
    Feb 2006
    Posts
    3,044
    Mentioned
    4 Post(s)
    Quoted
    21 Post(s)

    Default

    Quote Originally Posted by Don_Hawk View Post
    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
    Last edited by Home; 05-02-2011 at 04:30 PM.

  3. #3
    Join Date
    Jan 2011
    Location
    Denver, CO
    Posts
    1,351
    Mentioned
    2 Post(s)
    Quoted
    72 Post(s)

    Default

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

  4. #4
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    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.
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •