24.11.2017, 16:51
(
Последний раз редактировалось ThePhenix; 25.02.2018 в 07:06.
)
Maze Generator
Description:
This is a script I had done a long time ago and I didn't find any use for it. Hopefully, someone could use it to make some games or anything. It uses DFS, Prim's, backtrack algorithms.
Functions:
PHP код:
native CreateInGameMaze(Float:origin_x, Float:origin_y, Float:origin_z, length, width, walls_color = 0x000000FF, spaces_color = 0xFFFFFFFF, start_color = 0xFF0000FF, bool:use_backtrack = true, bool:use_prim = false, bool: no_dead_end = false);
native CreateMazeBitmap(const filename[], length, width, walls_color = 0x000000FF, spaces_color = 0xFFFFFFFF, start_color = 0xFF0000FF, bool:use_backtrack = true, bool:use_prim = false, bool: no_dead_end = false);
native CreateColorfulMaze(Float:origin_x, Float:origin_y, Float:origin_z, length, width, spaces_color = 0xFFFFFFFF, start_color = 0xFFFFFFFF, bool:use_backtrack = true, bool:use_prim = false, bool: no_dead_end = false);
Images:
share photo free
Bitmap:
Source code:
https://github.com/ThreeKingz/mazege...aster/maze.inc
Credits:
- ThreeKingz
- Crayder
- Purpy Pupple for the original implementation in c++
- ****** for y_bitmap
- Incognito for streamer