This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

danpost
danpost presents ...

2012/4/20

Maze Generator

A maze generator that allows the user to change creation settings. Code included. Bars are from my Bar class.

8973 views / 25 in the last 7 days

9 votes | 0 in the last 7 days

Tags: demo maze with-source danpost

This scenario is a member of: Demos by danpost


open in greenfoot
Your browser does not support the canvas tag.
danpostdanpost

2017/5/22

@Wayne, you can have a 'canMove' method that can check to see if the player can move in the direction it is facing using: return ((Cell)getOneIntersectingObject(Cell.class)).blocked[getRotation()/90] == false; If you have issues with this, start a discussion thread instead of posting here.
A new version of this scenario was uploaded on 2018-01-30 19:28:17 UTC
A new version of this scenario was uploaded on 2018-01-30 19:29:00 UTC
danpostdanpost

2018/1/30

Now updated for HTML5 viewing.
Heet_PatelHeet_Patel

2018/1/30

thanks
Heet_PatelHeet_Patel

2018/1/30

i dont get what you are supposed to do
danpostdanpost

2018/1/30

@Heet_Patel, this one is just a demo that creates mazes using different parameters. It is not a game in itself. I am searching for the other one to update.
Heet_PatelHeet_Patel

2018/2/7

Okay so where can you enter and where can you leave the maze even if this isn't a game.
Heet_PatelHeet_Patel

2018/2/7

What are the green dot's for
danpostdanpost

2018/2/7

@Heet_Patel, you can start anywhere and end anywhere. No location is inaccessible from any other location. The green dots are just "tracers" used in building the maze. They hold information for a location until that location is confirmed to accessible in the final production of the maze.

See all comments

Want to leave a comment? You must first log in.

Who likes this?

data17 Heet_Patel Wayne tibuurcio TomazVDSN trimil Game/maniac toytttttt Spilli