A maze game generator and player for Visual Studio Code. This extension is a VS Code variation of the Python py_maze command-line game.
- Generate Random Mazes: Creates solvable mazes using the recursive backtracking algorithm
- Interactive Gameplay: Play the maze game directly in VS Code using a webview panel
- Configurable Dimensions: Set custom maze width and height through VS Code settings
- Multiple Control Options: Use arrow keys, WASD, or on-screen buttons to navigate
Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and search for:
- Maze: Generate New Maze - Generates a new maze and displays it in the output channel
- Maze: Play Maze Game - Opens the interactive maze game panel
Configure the extension in VS Code settings:
| Setting | Default | Description |
|---|---|---|
vscode-py_maze.width |
9 | Width of the maze in cells (3-25) |
vscode-py_maze.height |
11 | Height of the maze in cells (3-25) |
- Run the Maze: Play Maze Game command
- Use Arrow Keys or WASD to move the player (
o) - Navigate from start (top) to end (bottom)
- Reach the exit (
E) to win!
| Key | Action |
|---|---|
| ↑ / W | Move Up |
| ↓ / S | Move Down |
| ← / A | Move Left |
| → / D | Move Right |
*- Wall- Patho- PlayerE- Exit
cd vscode-py_maze-extension
npm install
npm run compile- Open this folder in VS Code
- Press
F5to launch the Extension Development Host - Run the maze commands in the new window
MIT
Based on the Python py_maze command-line maze game.