Skip to content

About

PHP/JS: Generating a random maze & walking through

Resources

Stars

6 stars

Watchers

1 watching

Forks

Latest commit

 

History

66 Commits

Folders and files

Repository files navigation

Random Pattern Generator

A simple script that connects random blocks. Extended with a not-so-simple script that adds a walker to the maze.

Check it out at: http://2shine.nl/demo/rpg/.

PHP

  • For every new block an array of options is set
  • Based on the position certain options are removed
  • Based on the blocks to the left and above certain options are removed
  • A random block is selected from what is left

Javascript

  • I'll explain later

About

PHP/JS: Generating a random maze & walking through

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages