Skip to content

Latest commit

 

History

History
48 lines (45 loc) · 1.92 KB

File metadata and controls

48 lines (45 loc) · 1.92 KB

Maze Generator

  • Author: Eustia
  • Source: This repository
  • Create randomly generated mazes of any size at any location in the game world
  • Support one-click reset and rebuild of existing mazes
  • View the complete viable path through mazes
  • Configurable maze walls, background walls, and paint colors
  • Join maze challenges with automatic timing and leaderboard system

Commands

Syntax Alias Permission Description
/maze help none maze.generate Show help information
/maze build [size] None maze.generate Generate a maze of specified size (maze side length = size x cell)
/maze join none maze.generate Join a maze game
/maze leave none maze.generate Leave current maze game
/maze list none maze.generate List all saved maze locations
/maze rank [page] none maze.generate View leaderboard
/maze del none maze.admin Delete position and clear blocks
/maze path none maze.admin Show/hide maze path
/maze reset none maze.admin Reset specified maze
/maze pos <tl|bl|tr|br> none maze.admin Set maze position(top-left、top-right、bottom-left、bottom-right)

Notes

The input "maze size" is measured in cells. The actual occupied area = (maze size × cell size)². Make sure the generation area has enough space and follows the minimum/maximum limits.

Configuration

Configuration file location: tshock/MazeGenerator/MazeConfig.json

{
  "DefaultSize": 30,
  "MinSize": 5,
  "MaxSize": 60,
  "CellSize": 5,
  "MazeWallTile": 267,
  "BackgroundWall": 155,
  "BackgroundPaint": 25,
  "PathPaint": 13,
  "BoundaryCheckRange": 50,
  "LeaderboardPageSize": 10
}

Feedback