Skip to content

PeeHaa/Random-Pattern-Generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 

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

A small experiment: connecting random tube parts to form a random maze-like pattern

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 83.3%
  • PHP 16.7%