File:Isometric DFS Maze.PNG
Appearance
Isometric_DFS_Maze.PNG (800 × 407 pixels, file size: 23 KB, MIME type: image/png)
Summary
[edit]Description |
An isometric maze created using a FS. |
---|---|
Source | |
Date |
00:55, 19 October 2009 (UTC) |
Author | |
Permission (Reusing this file) |
See below.
|
Code
[edit]// Created using BYOND
// http://www.byond.com/?page=Developers
proc/Maze(turf/floor/T)
T.visited=1
var/list/L=list()
for(var/i=0,i<4,i++)
if(get_step(T,2**i))
L+=get_step(T,2**i)
var/runtime=L.len
for(var/i=0,i<runtime,i++)
var/turf/floor/n = pick(L)
if(!(n.visited))
var/tdir=get_dir(T,n)
var/ndir=get_dir(n,T)
var/obj/wall/W=T.walls[log(2,tdir)+1]
del W
W=n.walls[log(2,ndir)+1]
del W
Maze(n)
L.Remove(n)
turf
floor
luminosity=0
icon_state="floor"
var
visited=0
list/walls=list()
New()
for(var/i=0,i<4,i++)
var/obj/wall/OW
if(get_step(src,2**i))
var/turf/floor/adj=get_step(src,2**i)
if(adj.walls.len>(log(2,get_dir(src,adj))+1))
OW=adj.walls[log(2,get_dir(src,adj))+1]
var/obj/wall/W=new
W.dir=2**i
if(2**i==2)
W.layer+=2
if(OW)
W.icon_state="null"
contents+=W
walls+=W
obj
wall
icon_state="wall"
Licensing
[edit]I, the copyright holder of this work, hereby release it into the public domain. This applies worldwide. If this is not legally possible: |
This media file is either in the public domain or published under a free license, and contains no inbound file links. If this media file is useful, then it should be transferred to the Wikimedia Commons. If this media is not useful, then please propose it for deletion or list it at files for discussion. |
This file is a candidate to be copied to Wikimedia Commons.
Any user may perform this transfer; refer to Wikipedia:Moving files to Commons for details. If this file has problems with attribution, copyright, or is otherwise ineligible for Commons, then remove this tag and DO NOT transfer it; repeat violators may be blocked from editing. Other Instructions
| |||
|
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 00:55, 19 October 2009 | 800 × 407 (23 KB) | JDougherty (talk | contribs) | {{Information |Description = An isometric maze created using a FS. |Source = I (~~~) created this work entirely by myself. |Date = ~~~~~ |Author = ~~~ }} |
You cannot overwrite this file.
File usage
No pages on the English Wikipedia use this file (pages on other projects are not listed).