# MAZE **Repository Path**: ljzc002/maze ## Basic Information - **Project Name**: MAZE - **Description**: 高性能的方格迷宫渲染,和基于物理效果的角色运动控制。 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-02 - **Last Updated**: 2025-04-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # MAZE #### 介绍 高性能的方格迷宫渲染,和基于物理效果的角色运动控制。 #### 软件架构 使用改进的二叉树算法生成迷宫,采用dijkstra算法进行迷宫着色,基于Babylon.js引擎进行场景搭建,使用WebGPU fastsr渲染模式进行渲染加速,采用瘦实例技术和动态精灵技术高性能渲染建筑与文字,采用Havok物理引擎进行物理效果模拟。 #### 安装教程 1. 将代码下载,放入http服务器中 #### 使用说明 1. 访问maze05.html打开页面 2. 按iop三个按键在rts、free、one三个控制方式中切换 3. 默认控制方式为rts,使用鼠标滚轮调整视角高度,拖动屏幕和WASD键改变视角位置 4. free模式为bbl默认的自由相机 5. one模式为跟随相机,鼠标移动改变视角,WASD控制水平移动,按住shift以更快速度移动,空格跳跃,c切换下蹲,f停止运动 #### Introduce High performance grid maze rendering, and character motion control based on physical effects. #### Software architecture The improved binary tree algorithm is used to generate the maze, the dijkstra algorithm is used to color the maze, the Babylon.js engine is used to build the scene, the WebGPU fastsr rendering mode is used to accelerate the rendering, the thin instance technology and the dynamic wizard technology are used to render buildings and characters with high performance, and the Havok physics engine is used to simulate the physical effects. #### Installation Tutorial Download the code into the http server #### Instructions 1. Visit maze05.html to open the page 2. Press the three buttons of iop to switch between rts, free and one control modes 3. The default control mode is rts. Use the mouse wheel to adjust the viewing angle height. Drag the screen and the WASD key to change the viewing angle position 4. Free mode is the default free camera of bbl 5. One mode is to follow the camera, move the mouse to change the angle of view, WASD controls horizontal movement, press and hold Shift to move at a faster speed, space jumps, c switches to squat, f stops moving