tiles.html 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990
  1. <!doctype html>
  2. <html lang="en" class="no-js">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1">
  6. <link rel="prev" href="index.html">
  7. <link rel="next" href="weighting.html">
  8. <link rel="icon" href="../assets/images/favicon.ico">
  9. <meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.11">
  10. <title>Tiles & Tile Component - DunGen</title>
  11. <link rel="stylesheet" href="../assets/stylesheets/main.4af4bdda.min.css">
  12. <link rel="stylesheet" href="../assets/stylesheets/palette.06af60db.min.css">
  13. <script src="https://unpkg.com/iframe-worker/shim"></script>
  14. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  15. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
  16. <style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
  17. <link rel="stylesheet" href="../stylesheets/extra.css">
  18. <script>__md_scope=new URL("..",location),__md_hash=e=>[...e].reduce(((e,_)=>(e<<5)-e+_.charCodeAt(0)),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
  19. </head>
  20. <body dir="ltr" data-md-color-scheme="slate" data-md-color-primary="black" data-md-color-accent="cyan">
  21. <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
  22. <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
  23. <label class="md-overlay" for="__drawer"></label>
  24. <div data-md-component="skip">
  25. <a href="#core-concepts-tiles-tile-component" class="md-skip">
  26. Skip to content
  27. </a>
  28. </div>
  29. <div data-md-component="announce">
  30. </div>
  31. <header class="md-header md-header--shadow" data-md-component="header">
  32. <nav class="md-header__inner md-grid" aria-label="Header">
  33. <a href="../index.html" title="DunGen" class="md-header__button md-logo" aria-label="DunGen" data-md-component="logo">
  34. <svg width="100%" height="100%" viewBox="0 0 258 272" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
  35. <path d="M79,20.998C103.163,20.998 126.827,20.993 150.49,21.002C156.512,21.004 156.994,21.502 157,27.603C157.008,36.435 157.275,45.279 156.89,54.094C156.689,58.68 158.685,61.484 161.849,64.242C170.723,71.978 179.515,79.812 188.188,87.772C190.849,90.214 193.071,93.217 195.28,95.995C199.425,101.209 199.993,100.532 203.73,100.441C209.056,100.311 214.403,100.217 219.713,100.549C222.988,100.754 224.083,99.873 224.059,96.517C223.93,78.354 223.952,60.189 224.044,42.025C224.059,38.949 223.341,37.434 219.868,37.603C214.383,37.872 208.877,37.791 203.381,37.715C199.579,37.663 197.517,38.715 197.907,43.168C198.327,47.964 197.807,52.836 198.065,57.655C198.263,61.366 196.432,62.919 193.348,61.885C188.656,60.311 184.193,58.029 179.724,55.858C179.188,55.598 179.033,54.157 179.028,53.262C178.979,44.43 179.007,35.598 178.995,26.766C178.99,22.857 180.241,20.823 184.822,20.897C200.816,21.158 216.816,20.988 232.814,21.004C239.132,21.01 240.996,22.894 240.998,29.241C241.006,56.07 241.005,82.9 240.998,109.729C240.997,114.795 238.959,117.469 233.922,117.935C228.649,118.423 223.32,118.407 218.015,118.42C208.355,118.444 198.68,117.994 189.04,118.408C184.225,118.615 181.96,116.755 180.231,112.653C175.241,100.811 167.104,91.401 156.54,84.26C153.778,82.394 150.001,81.189 146.67,81.142C126.51,80.86 106.344,81.107 86.182,80.92C81.723,80.878 80.502,82.453 80.517,86.753C80.64,122.394 80.606,158.037 80.499,193.679C80.487,197.764 81.821,199.148 86.047,199.093C103.375,198.866 120.707,198.998 138.038,198.998C159.059,198.998 178.198,184.319 182.849,163.942C184.15,158.243 183.93,152.135 183.91,146.215C183.896,141.846 185.254,139.882 189.885,139.936C204.381,140.105 218.88,139.974 233.378,140.01C238.862,140.024 240.989,142.215 240.993,147.822C241.011,180.317 241.012,212.813 240.992,245.308C240.988,250.939 238.967,252.977 233.218,252.985C205.722,253.022 178.226,253.017 150.73,252.989C145.524,252.983 144.074,251.47 144.001,246.325C143.982,244.992 144.14,243.641 143.973,242.329C143.34,237.341 146.132,235.979 150.411,235.99C160.395,236.016 171.06,236.112 181.183,236.112C181.349,229.59 181.592,223.106 181.957,216.723C182.112,214.015 183.166,213.054 185.926,212.937C199.005,212.385 199.002,212.308 199.002,225.465C199.002,236.846 199.003,236.883 210.211,236.618C214.669,236.512 219.122,236.203 223.998,235.966L223.998,215.809C223.998,197.812 223.911,179.813 224.071,161.817C224.103,158.195 223.211,156.729 219.348,156.922C213.399,157.218 207.424,157 201.518,157C200.995,162.216 201.49,167.296 200.093,171.982C197.761,179.807 196.375,184.335 192.2,189.003C186.463,195.42 180.539,202.401 173.212,206.467C165.218,210.904 155.809,213.982 146.533,214.772C140.003,215.328 133.915,215.112 127.586,214.988C124.239,214.923 122.845,216.06 122.934,219.622C123.145,228.116 123.005,236.618 123.001,245.117C122.998,251.059 121.128,252.977 115.061,252.989C97.897,253.025 80.733,253.002 63.568,253.002C51.404,253.002 39.239,253.028 27.074,252.99C21.11,252.972 19.972,251.911 19.969,246.171C19.952,212.512 20.027,178.852 19.931,145.193C19.92,141.244 21.512,139.936 25.206,139.967C36.037,140.056 46.872,139.868 57.7,140.066C61.659,140.139 62.704,138.654 62.9,134.816C63.079,131.328 63.031,127.859 62.985,124.329C62.92,119.388 61.017,118.259 56.858,118.302C47.864,118.397 38.869,118.381 29.875,118.42C29.044,118.424 28.21,118.569 27.382,118.535C20.483,118.255 19.854,117.626 19.858,110.743C19.874,83.582 19.901,56.422 19.946,29.261C19.957,22.709 21.747,21.005 28.509,21.001C45.173,20.992 61.836,20.998 79,20.998M40.806,37.592C39.579,39.018 37.305,40.427 37.283,41.871C37.009,60.012 37.047,78.158 37.045,96.302C37.045,98.812 38.187,100.243 40.973,100.24C46.626,100.235 52.281,100.327 57.93,100.537C61.815,100.681 63.165,99.043 63.06,95.156C62.832,86.672 62.99,78.177 63.001,69.687C63.01,63.101 65.168,60.989 71.882,60.989C92.36,60.99 112.837,60.999 133.315,60.997C139.718,60.996 139.987,60.711 139.998,54.125C140.004,50.629 139.757,47.111 140.059,43.642C140.457,39.073 138.568,37.373 134.101,37.395C103.319,37.551 72.535,37.595 40.806,37.592M62.997,200.455C62.997,187.472 63.078,174.487 62.886,161.507C62.863,159.996 61.38,157.25 60.476,157.208C52.923,156.859 45.347,157.01 37.87,157.01C37.87,182.364 37.917,206.983 37.817,231.602C37.803,235.205 39.289,236.074 42.623,236.055C62.599,235.939 82.576,236.005 102.552,235.977C103.642,235.975 104.732,235.678 105.997,235.493C105.997,229.703 105.875,224.216 106.048,218.738C106.137,215.898 105.136,214.958 102.315,214.998C93.661,215.12 85.004,215.009 76.348,215.006C62.998,215 62.998,215.006 62.997,200.455Z" style="fill:currentColor;fill-rule:nonzero;"/>
  36. <g transform="matrix(1,0,0,1,91.4761,179.778)">
  37. <text x="0px" y="0px" style="font-family:'Arial-BoldMT', 'Arial', sans-serif;font-weight:700;font-size:110px;fill:currentColor;">D</text>
  38. </g>
  39. </svg>
  40. </a>
  41. <label class="md-header__button md-icon" for="__drawer">
  42. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z"/></svg>
  43. </label>
  44. <div class="md-header__title" data-md-component="header-title">
  45. <div class="md-header__ellipsis">
  46. <div class="md-header__topic">
  47. <span class="md-ellipsis">
  48. DunGen
  49. </span>
  50. </div>
  51. <div class="md-header__topic" data-md-component="header-topic">
  52. <span class="md-ellipsis">
  53. Tiles & Tile Component
  54. </span>
  55. </div>
  56. </div>
  57. </div>
  58. </nav>
  59. </header>
  60. <div class="md-container" data-md-component="container">
  61. <main class="md-main" data-md-component="main">
  62. <div class="md-main__inner md-grid">
  63. <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
  64. <div class="md-sidebar__scrollwrap">
  65. <div class="md-sidebar__inner">
  66. <nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
  67. <label class="md-nav__title" for="__drawer">
  68. <a href="../index.html" title="DunGen" class="md-nav__button md-logo" aria-label="DunGen" data-md-component="logo">
  69. <svg width="100%" height="100%" viewBox="0 0 258 272" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
  70. <path d="M79,20.998C103.163,20.998 126.827,20.993 150.49,21.002C156.512,21.004 156.994,21.502 157,27.603C157.008,36.435 157.275,45.279 156.89,54.094C156.689,58.68 158.685,61.484 161.849,64.242C170.723,71.978 179.515,79.812 188.188,87.772C190.849,90.214 193.071,93.217 195.28,95.995C199.425,101.209 199.993,100.532 203.73,100.441C209.056,100.311 214.403,100.217 219.713,100.549C222.988,100.754 224.083,99.873 224.059,96.517C223.93,78.354 223.952,60.189 224.044,42.025C224.059,38.949 223.341,37.434 219.868,37.603C214.383,37.872 208.877,37.791 203.381,37.715C199.579,37.663 197.517,38.715 197.907,43.168C198.327,47.964 197.807,52.836 198.065,57.655C198.263,61.366 196.432,62.919 193.348,61.885C188.656,60.311 184.193,58.029 179.724,55.858C179.188,55.598 179.033,54.157 179.028,53.262C178.979,44.43 179.007,35.598 178.995,26.766C178.99,22.857 180.241,20.823 184.822,20.897C200.816,21.158 216.816,20.988 232.814,21.004C239.132,21.01 240.996,22.894 240.998,29.241C241.006,56.07 241.005,82.9 240.998,109.729C240.997,114.795 238.959,117.469 233.922,117.935C228.649,118.423 223.32,118.407 218.015,118.42C208.355,118.444 198.68,117.994 189.04,118.408C184.225,118.615 181.96,116.755 180.231,112.653C175.241,100.811 167.104,91.401 156.54,84.26C153.778,82.394 150.001,81.189 146.67,81.142C126.51,80.86 106.344,81.107 86.182,80.92C81.723,80.878 80.502,82.453 80.517,86.753C80.64,122.394 80.606,158.037 80.499,193.679C80.487,197.764 81.821,199.148 86.047,199.093C103.375,198.866 120.707,198.998 138.038,198.998C159.059,198.998 178.198,184.319 182.849,163.942C184.15,158.243 183.93,152.135 183.91,146.215C183.896,141.846 185.254,139.882 189.885,139.936C204.381,140.105 218.88,139.974 233.378,140.01C238.862,140.024 240.989,142.215 240.993,147.822C241.011,180.317 241.012,212.813 240.992,245.308C240.988,250.939 238.967,252.977 233.218,252.985C205.722,253.022 178.226,253.017 150.73,252.989C145.524,252.983 144.074,251.47 144.001,246.325C143.982,244.992 144.14,243.641 143.973,242.329C143.34,237.341 146.132,235.979 150.411,235.99C160.395,236.016 171.06,236.112 181.183,236.112C181.349,229.59 181.592,223.106 181.957,216.723C182.112,214.015 183.166,213.054 185.926,212.937C199.005,212.385 199.002,212.308 199.002,225.465C199.002,236.846 199.003,236.883 210.211,236.618C214.669,236.512 219.122,236.203 223.998,235.966L223.998,215.809C223.998,197.812 223.911,179.813 224.071,161.817C224.103,158.195 223.211,156.729 219.348,156.922C213.399,157.218 207.424,157 201.518,157C200.995,162.216 201.49,167.296 200.093,171.982C197.761,179.807 196.375,184.335 192.2,189.003C186.463,195.42 180.539,202.401 173.212,206.467C165.218,210.904 155.809,213.982 146.533,214.772C140.003,215.328 133.915,215.112 127.586,214.988C124.239,214.923 122.845,216.06 122.934,219.622C123.145,228.116 123.005,236.618 123.001,245.117C122.998,251.059 121.128,252.977 115.061,252.989C97.897,253.025 80.733,253.002 63.568,253.002C51.404,253.002 39.239,253.028 27.074,252.99C21.11,252.972 19.972,251.911 19.969,246.171C19.952,212.512 20.027,178.852 19.931,145.193C19.92,141.244 21.512,139.936 25.206,139.967C36.037,140.056 46.872,139.868 57.7,140.066C61.659,140.139 62.704,138.654 62.9,134.816C63.079,131.328 63.031,127.859 62.985,124.329C62.92,119.388 61.017,118.259 56.858,118.302C47.864,118.397 38.869,118.381 29.875,118.42C29.044,118.424 28.21,118.569 27.382,118.535C20.483,118.255 19.854,117.626 19.858,110.743C19.874,83.582 19.901,56.422 19.946,29.261C19.957,22.709 21.747,21.005 28.509,21.001C45.173,20.992 61.836,20.998 79,20.998M40.806,37.592C39.579,39.018 37.305,40.427 37.283,41.871C37.009,60.012 37.047,78.158 37.045,96.302C37.045,98.812 38.187,100.243 40.973,100.24C46.626,100.235 52.281,100.327 57.93,100.537C61.815,100.681 63.165,99.043 63.06,95.156C62.832,86.672 62.99,78.177 63.001,69.687C63.01,63.101 65.168,60.989 71.882,60.989C92.36,60.99 112.837,60.999 133.315,60.997C139.718,60.996 139.987,60.711 139.998,54.125C140.004,50.629 139.757,47.111 140.059,43.642C140.457,39.073 138.568,37.373 134.101,37.395C103.319,37.551 72.535,37.595 40.806,37.592M62.997,200.455C62.997,187.472 63.078,174.487 62.886,161.507C62.863,159.996 61.38,157.25 60.476,157.208C52.923,156.859 45.347,157.01 37.87,157.01C37.87,182.364 37.917,206.983 37.817,231.602C37.803,235.205 39.289,236.074 42.623,236.055C62.599,235.939 82.576,236.005 102.552,235.977C103.642,235.975 104.732,235.678 105.997,235.493C105.997,229.703 105.875,224.216 106.048,218.738C106.137,215.898 105.136,214.958 102.315,214.998C93.661,215.12 85.004,215.009 76.348,215.006C62.998,215 62.998,215.006 62.997,200.455Z" style="fill:currentColor;fill-rule:nonzero;"/>
  71. <g transform="matrix(1,0,0,1,91.4761,179.778)">
  72. <text x="0px" y="0px" style="font-family:'Arial-BoldMT', 'Arial', sans-serif;font-weight:700;font-size:110px;fill:currentColor;">D</text>
  73. </g>
  74. </svg>
  75. </a>
  76. DunGen
  77. </label>
  78. <ul class="md-nav__list" data-md-scrollfix>
  79. <li class="md-nav__item">
  80. <a href="../index.html" class="md-nav__link">
  81. <span class="md-ellipsis">
  82. Introduction
  83. </span>
  84. </a>
  85. </li>
  86. <li class="md-nav__item">
  87. <a href="../changelog.html" class="md-nav__link">
  88. <span class="md-ellipsis">
  89. Changelog
  90. </span>
  91. </a>
  92. </li>
  93. <li class="md-nav__item md-nav__item--nested">
  94. <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3" >
  95. <div class="md-nav__link md-nav__container">
  96. <a href="../getting-started/index.html" class="md-nav__link ">
  97. <span class="md-ellipsis">
  98. Getting Started
  99. </span>
  100. </a>
  101. <label class="md-nav__link " for="__nav_3" id="__nav_3_label" tabindex="0">
  102. <span class="md-nav__icon md-icon"></span>
  103. </label>
  104. </div>
  105. <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_3_label" aria-expanded="false">
  106. <label class="md-nav__title" for="__nav_3">
  107. <span class="md-nav__icon md-icon"></span>
  108. Getting Started
  109. </label>
  110. <ul class="md-nav__list" data-md-scrollfix>
  111. <li class="md-nav__item">
  112. <a href="../getting-started/1-creating-tiles.html" class="md-nav__link">
  113. <span class="md-ellipsis">
  114. 1. Creating Tiles
  115. </span>
  116. </a>
  117. </li>
  118. <li class="md-nav__item">
  119. <a href="../getting-started/2-doorways.html" class="md-nav__link">
  120. <span class="md-ellipsis">
  121. 2. Doorways
  122. </span>
  123. </a>
  124. </li>
  125. <li class="md-nav__item">
  126. <a href="../getting-started/3-dungeon-flow.html" class="md-nav__link">
  127. <span class="md-ellipsis">
  128. 3. Dungeon Flow Basics
  129. </span>
  130. </a>
  131. </li>
  132. <li class="md-nav__item">
  133. <a href="../getting-started/4-scene-setup.html" class="md-nav__link">
  134. <span class="md-ellipsis">
  135. 4. Scene Setup & First Generation
  136. </span>
  137. </a>
  138. </li>
  139. </ul>
  140. </nav>
  141. </li>
  142. <li class="md-nav__item md-nav__item--active md-nav__item--nested">
  143. <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_4" checked>
  144. <div class="md-nav__link md-nav__container">
  145. <a href="index.html" class="md-nav__link ">
  146. <span class="md-ellipsis">
  147. Core Concepts
  148. </span>
  149. </a>
  150. <label class="md-nav__link " for="__nav_4" id="__nav_4_label" tabindex="0">
  151. <span class="md-nav__icon md-icon"></span>
  152. </label>
  153. </div>
  154. <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="true">
  155. <label class="md-nav__title" for="__nav_4">
  156. <span class="md-nav__icon md-icon"></span>
  157. Core Concepts
  158. </label>
  159. <ul class="md-nav__list" data-md-scrollfix>
  160. <li class="md-nav__item md-nav__item--active">
  161. <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
  162. <label class="md-nav__link md-nav__link--active" for="__toc">
  163. <span class="md-ellipsis">
  164. Tiles & Tile Component
  165. </span>
  166. <span class="md-nav__icon md-icon"></span>
  167. </label>
  168. <a href="tiles.html" class="md-nav__link md-nav__link--active">
  169. <span class="md-ellipsis">
  170. Tiles & Tile Component
  171. </span>
  172. </a>
  173. <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
  174. <label class="md-nav__title" for="__toc">
  175. <span class="md-nav__icon md-icon"></span>
  176. Table of contents
  177. </label>
  178. <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
  179. <li class="md-nav__item">
  180. <a href="#what-is-a-tile" class="md-nav__link">
  181. <span class="md-ellipsis">
  182. What is a Tile?
  183. </span>
  184. </a>
  185. </li>
  186. <li class="md-nav__item">
  187. <a href="#the-tile-component" class="md-nav__link">
  188. <span class="md-ellipsis">
  189. The Tile Component
  190. </span>
  191. </a>
  192. <nav class="md-nav" aria-label="The Tile Component">
  193. <ul class="md-nav__list">
  194. <li class="md-nav__item">
  195. <a href="#tile-component-settings" class="md-nav__link">
  196. <span class="md-ellipsis">
  197. Tile Component Settings
  198. </span>
  199. </a>
  200. <nav class="md-nav" aria-label="Tile Component Settings">
  201. <ul class="md-nav__list">
  202. <li class="md-nav__item">
  203. <a href="#allow-rotation" class="md-nav__link">
  204. <span class="md-ellipsis">
  205. Allow Rotation
  206. </span>
  207. </a>
  208. </li>
  209. <li class="md-nav__item">
  210. <a href="#repeat-mode" class="md-nav__link">
  211. <span class="md-ellipsis">
  212. Repeat Mode
  213. </span>
  214. </a>
  215. </li>
  216. <li class="md-nav__item">
  217. <a href="#override-automatic-tile-bounds" class="md-nav__link">
  218. <span class="md-ellipsis">
  219. Override Automatic Tile Bounds
  220. </span>
  221. </a>
  222. </li>
  223. <li class="md-nav__item">
  224. <a href="#override-connection-chance" class="md-nav__link">
  225. <span class="md-ellipsis">
  226. Override Connection Chance
  227. </span>
  228. </a>
  229. </li>
  230. <li class="md-nav__item">
  231. <a href="#entrance-exit-doorways" class="md-nav__link">
  232. <span class="md-ellipsis">
  233. Entrance / Exit Doorways
  234. </span>
  235. </a>
  236. </li>
  237. <li class="md-nav__item">
  238. <a href="#tags" class="md-nav__link">
  239. <span class="md-ellipsis">
  240. Tags
  241. </span>
  242. </a>
  243. </li>
  244. </ul>
  245. </nav>
  246. </li>
  247. </ul>
  248. </nav>
  249. </li>
  250. </ul>
  251. </nav>
  252. </li>
  253. <li class="md-nav__item">
  254. <a href="weighting.html" class="md-nav__link">
  255. <span class="md-ellipsis">
  256. Weighting
  257. </span>
  258. </a>
  259. </li>
  260. <li class="md-nav__item">
  261. <a href="tile-sets.html" class="md-nav__link">
  262. <span class="md-ellipsis">
  263. Tile Sets
  264. </span>
  265. </a>
  266. </li>
  267. <li class="md-nav__item">
  268. <a href="archetypes.html" class="md-nav__link">
  269. <span class="md-ellipsis">
  270. Archetypes
  271. </span>
  272. </a>
  273. </li>
  274. <li class="md-nav__item">
  275. <a href="doorways.html" class="md-nav__link">
  276. <span class="md-ellipsis">
  277. Doorways
  278. </span>
  279. </a>
  280. </li>
  281. <li class="md-nav__item">
  282. <a href="dungeon-flow.html" class="md-nav__link">
  283. <span class="md-ellipsis">
  284. Dungeon Flow Asset
  285. </span>
  286. </a>
  287. </li>
  288. <li class="md-nav__item">
  289. <a href="flow-editor.html" class="md-nav__link">
  290. <span class="md-ellipsis">
  291. Flow Editor
  292. </span>
  293. </a>
  294. </li>
  295. <li class="md-nav__item">
  296. <a href="dungeon-generator.html" class="md-nav__link">
  297. <span class="md-ellipsis">
  298. Dungeon Generator
  299. </span>
  300. </a>
  301. </li>
  302. </ul>
  303. </nav>
  304. </li>
  305. <li class="md-nav__item md-nav__item--nested">
  306. <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5" >
  307. <div class="md-nav__link md-nav__container">
  308. <a href="../advanced-features/index.html" class="md-nav__link ">
  309. <span class="md-ellipsis">
  310. Advanced Features
  311. </span>
  312. </a>
  313. <label class="md-nav__link " for="__nav_5" id="__nav_5_label" tabindex="0">
  314. <span class="md-nav__icon md-icon"></span>
  315. </label>
  316. </div>
  317. <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_5_label" aria-expanded="false">
  318. <label class="md-nav__title" for="__nav_5">
  319. <span class="md-nav__icon md-icon"></span>
  320. Advanced Features
  321. </label>
  322. <ul class="md-nav__list" data-md-scrollfix>
  323. <li class="md-nav__item">
  324. <a href="../advanced-features/props-variety.html" class="md-nav__link">
  325. <span class="md-ellipsis">
  326. Props for Variety
  327. </span>
  328. </a>
  329. </li>
  330. <li class="md-nav__item">
  331. <a href="../advanced-features/doors.html" class="md-nav__link">
  332. <span class="md-ellipsis">
  333. Doors
  334. </span>
  335. </a>
  336. </li>
  337. <li class="md-nav__item">
  338. <a href="../advanced-features/multiple-floors.html" class="md-nav__link">
  339. <span class="md-ellipsis">
  340. Multiple Floors
  341. </span>
  342. </a>
  343. </li>
  344. <li class="md-nav__item">
  345. <a href="../advanced-features/lock-key-system.html" class="md-nav__link">
  346. <span class="md-ellipsis">
  347. Lock & Key System
  348. </span>
  349. </a>
  350. </li>
  351. <li class="md-nav__item">
  352. <a href="../advanced-features/injecting-tiles.html" class="md-nav__link">
  353. <span class="md-ellipsis">
  354. Injecting Special Tiles
  355. </span>
  356. </a>
  357. </li>
  358. <li class="md-nav__item">
  359. <a href="../advanced-features/connection-rules.html" class="md-nav__link">
  360. <span class="md-ellipsis">
  361. Tile Connection Rules
  362. </span>
  363. </a>
  364. </li>
  365. <li class="md-nav__item">
  366. <a href="../advanced-features/attached-dungeons.html" class="md-nav__link">
  367. <span class="md-ellipsis">
  368. Generating Attached Dungeons
  369. </span>
  370. </a>
  371. </li>
  372. <li class="md-nav__item">
  373. <a href="../advanced-features/additional-collisions.html" class="md-nav__link">
  374. <span class="md-ellipsis">
  375. Avoid Collisions With the Scene
  376. </span>
  377. </a>
  378. </li>
  379. <li class="md-nav__item">
  380. <a href="../advanced-features/runtime-events.html" class="md-nav__link">
  381. <span class="md-ellipsis">
  382. Runtime Events & Code Execution
  383. </span>
  384. </a>
  385. </li>
  386. <li class="md-nav__item">
  387. <a href="../advanced-features/post-processing.html" class="md-nav__link">
  388. <span class="md-ellipsis">
  389. Custom Post-Processing
  390. </span>
  391. </a>
  392. </li>
  393. <li class="md-nav__item">
  394. <a href="../advanced-features/character-component.html" class="md-nav__link">
  395. <span class="md-ellipsis">
  396. DunGen Character Component
  397. </span>
  398. </a>
  399. </li>
  400. </ul>
  401. </nav>
  402. </li>
  403. <li class="md-nav__item md-nav__item--nested">
  404. <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >
  405. <div class="md-nav__link md-nav__container">
  406. <a href="../optimization/index.html" class="md-nav__link ">
  407. <span class="md-ellipsis">
  408. Optimization
  409. </span>
  410. </a>
  411. <label class="md-nav__link " for="__nav_6" id="__nav_6_label" tabindex="0">
  412. <span class="md-nav__icon md-icon"></span>
  413. </label>
  414. </div>
  415. <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
  416. <label class="md-nav__title" for="__nav_6">
  417. <span class="md-nav__icon md-icon"></span>
  418. Optimization
  419. </label>
  420. <ul class="md-nav__list" data-md-scrollfix>
  421. <li class="md-nav__item">
  422. <a href="../optimization/culling.html" class="md-nav__link">
  423. <span class="md-ellipsis">
  424. Built-in Culling
  425. </span>
  426. </a>
  427. </li>
  428. <li class="md-nav__item">
  429. <a href="../optimization/tile-pooling.html" class="md-nav__link">
  430. <span class="md-ellipsis">
  431. Tile Pooling
  432. </span>
  433. </a>
  434. </li>
  435. </ul>
  436. </nav>
  437. </li>
  438. <li class="md-nav__item md-nav__item--nested">
  439. <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_7" >
  440. <div class="md-nav__link md-nav__container">
  441. <a href="../pathfinding/index.html" class="md-nav__link ">
  442. <span class="md-ellipsis">
  443. Pathfinding
  444. </span>
  445. </a>
  446. <label class="md-nav__link " for="__nav_7" id="__nav_7_label" tabindex="0">
  447. <span class="md-nav__icon md-icon"></span>
  448. </label>
  449. </div>
  450. <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
  451. <label class="md-nav__title" for="__nav_7">
  452. <span class="md-nav__icon md-icon"></span>
  453. Pathfinding
  454. </label>
  455. <ul class="md-nav__list" data-md-scrollfix>
  456. <li class="md-nav__item">
  457. <a href="../pathfinding/unity-navmesh.html" class="md-nav__link">
  458. <span class="md-ellipsis">
  459. Unity NavMesh Components
  460. </span>
  461. </a>
  462. </li>
  463. <li class="md-nav__item">
  464. <a href="../pathfinding/astar-pathfinding.html" class="md-nav__link">
  465. <span class="md-ellipsis">
  466. A* Pathfinding Project Pro
  467. </span>
  468. </a>
  469. </li>
  470. <li class="md-nav__item">
  471. <a href="../pathfinding/custom-adapters.html" class="md-nav__link">
  472. <span class="md-ellipsis">
  473. Custom Adapters
  474. </span>
  475. </a>
  476. </li>
  477. </ul>
  478. </nav>
  479. </li>
  480. <li class="md-nav__item md-nav__item--nested">
  481. <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_8" >
  482. <div class="md-nav__link md-nav__container">
  483. <a href="../integrations/index.html" class="md-nav__link ">
  484. <span class="md-ellipsis">
  485. Integrations
  486. </span>
  487. </a>
  488. <label class="md-nav__link " for="__nav_8" id="__nav_8_label" tabindex="0">
  489. <span class="md-nav__icon md-icon"></span>
  490. </label>
  491. </div>
  492. <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_8_label" aria-expanded="false">
  493. <label class="md-nav__title" for="__nav_8">
  494. <span class="md-nav__icon md-icon"></span>
  495. Integrations
  496. </label>
  497. <ul class="md-nav__list" data-md-scrollfix>
  498. <li class="md-nav__item">
  499. <a href="../integrations/sectr.html" class="md-nav__link">
  500. <span class="md-ellipsis">
  501. SECTR Portal Culling
  502. </span>
  503. </a>
  504. </li>
  505. <li class="md-nav__item">
  506. <a href="../integrations/playmaker.html" class="md-nav__link">
  507. <span class="md-ellipsis">
  508. PlayMaker Actions
  509. </span>
  510. </a>
  511. </li>
  512. </ul>
  513. </nav>
  514. </li>
  515. <li class="md-nav__item md-nav__item--nested">
  516. <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_9" >
  517. <div class="md-nav__link md-nav__container">
  518. <a href="../troubleshooting/index.html" class="md-nav__link ">
  519. <span class="md-ellipsis">
  520. Troubleshooting
  521. </span>
  522. </a>
  523. <label class="md-nav__link " for="__nav_9" id="__nav_9_label" tabindex="0">
  524. <span class="md-nav__icon md-icon"></span>
  525. </label>
  526. </div>
  527. <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="false">
  528. <label class="md-nav__title" for="__nav_9">
  529. <span class="md-nav__icon md-icon"></span>
  530. Troubleshooting
  531. </label>
  532. <ul class="md-nav__list" data-md-scrollfix>
  533. <li class="md-nav__item">
  534. <a href="../troubleshooting/limitations.html" class="md-nav__link">
  535. <span class="md-ellipsis">
  536. Limitations & Considerations
  537. </span>
  538. </a>
  539. </li>
  540. <li class="md-nav__item">
  541. <a href="../troubleshooting/analysis.html" class="md-nav__link">
  542. <span class="md-ellipsis">
  543. Analysis
  544. </span>
  545. </a>
  546. </li>
  547. </ul>
  548. </nav>
  549. </li>
  550. <li class="md-nav__item md-nav__item--nested">
  551. <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
  552. <label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">
  553. <span class="md-ellipsis">
  554. Reference
  555. </span>
  556. <span class="md-nav__icon md-icon"></span>
  557. </label>
  558. <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
  559. <label class="md-nav__title" for="__nav_10">
  560. <span class="md-nav__icon md-icon"></span>
  561. Reference
  562. </label>
  563. <ul class="md-nav__list" data-md-scrollfix>
  564. <li class="md-nav__item">
  565. <a href="../reference/faq.html" class="md-nav__link">
  566. <span class="md-ellipsis">
  567. FAQ
  568. </span>
  569. </a>
  570. </li>
  571. <li class="md-nav__item">
  572. <a href="../reference/cookbook.html" class="md-nav__link">
  573. <span class="md-ellipsis">
  574. Cookbook
  575. </span>
  576. </a>
  577. </li>
  578. </ul>
  579. </nav>
  580. </li>
  581. </ul>
  582. </nav>
  583. </div>
  584. </div>
  585. </div>
  586. <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
  587. <div class="md-sidebar__scrollwrap">
  588. <div class="md-sidebar__inner">
  589. <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
  590. <label class="md-nav__title" for="__toc">
  591. <span class="md-nav__icon md-icon"></span>
  592. Table of contents
  593. </label>
  594. <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
  595. <li class="md-nav__item">
  596. <a href="#what-is-a-tile" class="md-nav__link">
  597. <span class="md-ellipsis">
  598. What is a Tile?
  599. </span>
  600. </a>
  601. </li>
  602. <li class="md-nav__item">
  603. <a href="#the-tile-component" class="md-nav__link">
  604. <span class="md-ellipsis">
  605. The Tile Component
  606. </span>
  607. </a>
  608. <nav class="md-nav" aria-label="The Tile Component">
  609. <ul class="md-nav__list">
  610. <li class="md-nav__item">
  611. <a href="#tile-component-settings" class="md-nav__link">
  612. <span class="md-ellipsis">
  613. Tile Component Settings
  614. </span>
  615. </a>
  616. <nav class="md-nav" aria-label="Tile Component Settings">
  617. <ul class="md-nav__list">
  618. <li class="md-nav__item">
  619. <a href="#allow-rotation" class="md-nav__link">
  620. <span class="md-ellipsis">
  621. Allow Rotation
  622. </span>
  623. </a>
  624. </li>
  625. <li class="md-nav__item">
  626. <a href="#repeat-mode" class="md-nav__link">
  627. <span class="md-ellipsis">
  628. Repeat Mode
  629. </span>
  630. </a>
  631. </li>
  632. <li class="md-nav__item">
  633. <a href="#override-automatic-tile-bounds" class="md-nav__link">
  634. <span class="md-ellipsis">
  635. Override Automatic Tile Bounds
  636. </span>
  637. </a>
  638. </li>
  639. <li class="md-nav__item">
  640. <a href="#override-connection-chance" class="md-nav__link">
  641. <span class="md-ellipsis">
  642. Override Connection Chance
  643. </span>
  644. </a>
  645. </li>
  646. <li class="md-nav__item">
  647. <a href="#entrance-exit-doorways" class="md-nav__link">
  648. <span class="md-ellipsis">
  649. Entrance / Exit Doorways
  650. </span>
  651. </a>
  652. </li>
  653. <li class="md-nav__item">
  654. <a href="#tags" class="md-nav__link">
  655. <span class="md-ellipsis">
  656. Tags
  657. </span>
  658. </a>
  659. </li>
  660. </ul>
  661. </nav>
  662. </li>
  663. </ul>
  664. </nav>
  665. </li>
  666. </ul>
  667. </nav>
  668. </div>
  669. </div>
  670. </div>
  671. <div class="md-content" data-md-component="content">
  672. <article class="md-content__inner md-typeset">
  673. <h1 id="core-concepts-tiles-tile-component">Core Concepts: Tiles &amp; Tile Component</h1>
  674. <h2 id="what-is-a-tile">What is a Tile?</h2>
  675. <p><strong>Tiles</strong> are the fundamental building blocks of your dungeons. Think of them as reusable room prefabs, corridor segments, or any distinct piece of level geometry that DunGen will piece together.</p>
  676. <p>You design these Tiles visually within the Unity editor, just like any other prefab. DunGen's power comes from how it connects these pre-designed pieces based on rules you define.</p>
  677. <h2 id="the-tile-component">The Tile Component</h2>
  678. <p>The <code>Tile</code> component provides DunGen with specific metadata and allows you to override certain global generation settings on a per-tile basis.</p>
  679. <h3 id="tile-component-settings">Tile Component Settings</h3>
  680. <p>Here are the key settings available on the <code>Tile</code> component inspector:</p>
  681. <hr />
  682. <h4 id="allow-rotation">Allow Rotation</h4>
  683. <ul>
  684. <li><strong>Functionality:</strong> If checked, DunGen is allowed to rotate this Tile 90, 180, or 270 degrees around its Y-axis (up-axis) to match the orientation of an adjacent Tile's doorway.</li>
  685. <li><strong>When to Uncheck:</strong> You should uncheck this if your Tile:<ul>
  686. <li>Is designed for an isometric or fixed perspective where rotation would break the visual style.</li>
  687. <li>Has a specific "back wall" or orientation that must be preserved.</li>
  688. </ul>
  689. </li>
  690. </ul>
  691. <div class="admonition note">
  692. <p class="admonition-title">Global Override</p>
  693. <p>The <a href="dungeon-generator.html">Dungeon Generator</a> component has a global <code>Allow Tile Rotation</code> setting. If you need to disable rotation for <em>all</em> tiles, use the global setting instead of configuring each tile individually.</p>
  694. </div>
  695. <hr />
  696. <h4 id="repeat-mode">Repeat Mode</h4>
  697. <ul>
  698. <li><strong>Functionality:</strong> Determines how DunGen handles placing multiple instances of this <em>specific</em> Tile prefab within a single dungeon layout.</li>
  699. <li><strong>Options:</strong><ul>
  700. <li><code>Allow</code>: No restrictions. All repetition is allowed.</li>
  701. <li><code>Disallow Immediate</code>: This Tile can appear multiple times in the dungeon, but never directly connected to another instance of the <em>same</em> Tile prefab.</li>
  702. <li><code>Disallow</code>: This Tile prefab can appear at most <em>once</em> in the entire generated dungeon layout.</li>
  703. </ul>
  704. </li>
  705. </ul>
  706. <div class="admonition warning">
  707. <p class="admonition-title">Use <code>Disallow</code> Carefully</p>
  708. <p>If you use <code>Disallow</code> mode, ensure you have enough unique Tile prefabs available in your <a href="tile-sets.html">Tile Sets</a> for the configured dungeon length. Otherwise, DunGen might fail to generate a valid layout if it runs out of non-repeating tiles.</p>
  709. </div>
  710. <div class="admonition note">
  711. <p class="admonition-title">Global Override</p>
  712. <p>The <a href="dungeon-generator.html">Dungeon Generator</a> component has a global <code>Repeat Mode</code> override setting that applies to all tiles.</p>
  713. </div>
  714. <hr />
  715. <h4 id="override-automatic-tile-bounds">Override Automatic Tile Bounds</h4>
  716. <ul>
  717. <li><strong>Functionality:</strong> By default, DunGen calculates the physical boundaries (an Axis-Aligned Bounding Box - AABB) of a Tile based on the Renderers and Colliders within its hierarchy. Checking this box allows you to manually define the bounds used for collision detection during generation.</li>
  718. <li><strong>When to Use:</strong> Useful if the automatic bounds calculation isn't accurate for your Tile's effective space, perhaps due to complex shapes or invisible helper objects affecting the bounds.</li>
  719. </ul>
  720. <div class="admonition note">
  721. <p class="admonition-title">Note</p>
  722. <p>The <strong>Fit to Tile</strong> button can be used to match the overridden bounds to what DunGen's automatic calculation <em>would</em> be, giving you a starting point for manual adjustments.</p>
  723. </div>
  724. <hr />
  725. <h4 id="override-connection-chance">Override Connection Chance</h4>
  726. <ul>
  727. <li><strong>Functionality:</strong> Allows this specific Tile to override the global <code>Connection Chance</code> set in the <a href="dungeon-flow.html">Dungeon Flow</a> asset. This chance determines the likelihood of DunGen connecting two <em>otherwise unconnected</em> doorways that happen to overlap spatially (potentially creating shortcuts or loops).</li>
  728. </ul>
  729. <div class="admonition note">
  730. <p class="admonition-title">Interaction</p>
  731. <p>If two tiles with overlapping doorways <em>both</em> have this override enabled, the <em>lower</em> of the two percentage chances will be used.</p>
  732. </div>
  733. <hr />
  734. <h4 id="entrance-exit-doorways">Entrance / Exit Doorways</h4>
  735. <ul>
  736. <li><strong>Functionality:</strong> You can optionally designate specific <a href="../getting-started/1-creating-tiles.html">Doorway</a> GameObjects within this Tile as the required entry or primary exit points.</li>
  737. <li><strong>Entrance:</strong><ul>
  738. <li>If set, DunGen <em>must</em> connect to this specific Doorway when placing this Tile. The Tile can only be entered through this doorway.</li>
  739. <li>If unset (None), DunGen can enter the Tile through <em>any</em> available Doorway.</li>
  740. </ul>
  741. </li>
  742. <li><strong>Exit:</strong><ul>
  743. <li>If set, DunGen <em>must</em> use this specific Doorway as the <em>first</em> point of exit when pathing continues <em>from</em> this Tile.</li>
  744. <li>If unset (None) or once the exit is already in use, DunGen can exit the Tile through <em>any</em> available Doorway.</li>
  745. </ul>
  746. </li>
  747. <li><strong>Use Cases:</strong> Essential for controlling flow within complex tiles or ensuring specific placements, such as positioning a locked door (related to the <a href="../advanced-features/lock-key-system.html">Lock &amp; Key System</a>) correctly at the entrance of a boss room.</li>
  748. </ul>
  749. <hr />
  750. <h4 id="tags">Tags</h4>
  751. <ul>
  752. <li><strong>Functionality:</strong> Allows you to assign one or more custom tags to this Tile.</li>
  753. <li><strong>Purpose:</strong> These tags are used by the <a href="../advanced-features/connection-rules.html">Tile Connection Rules</a> system (configured in the Dungeon Flow asset) to allow or deny connections between specific types of tiles (e.g., preventing two "Corridor" tagged tiles from connecting directly). Tags are extremely versatile and can be used for any number of purposes in your own code.</li>
  754. </ul>
  755. <hr />
  756. <p>By understanding and utilizing these <code>Tile</code> component settings, you gain significantly more control over how your individual Tile prefabs behave and integrate into the final generated dungeon layout.</p>
  757. </article>
  758. </div>
  759. <script>var tabs=__md_get("__tabs");if(Array.isArray(tabs))e:for(var set of document.querySelectorAll(".tabbed-set")){var labels=set.querySelector(".tabbed-labels");for(var tab of tabs)for(var label of labels.getElementsByTagName("label"))if(label.innerText.trim()===tab){var input=document.getElementById(label.htmlFor);input.checked=!0;continue e}}</script>
  760. <script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
  761. </div>
  762. <button type="button" class="md-top md-icon" data-md-component="top" hidden>
  763. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8z"/></svg>
  764. Back to top
  765. </button>
  766. </main>
  767. <footer class="md-footer">
  768. <nav class="md-footer__inner md-grid" aria-label="Footer" >
  769. <a href="index.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Overview">
  770. <div class="md-footer__button md-icon">
  771. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11z"/></svg>
  772. </div>
  773. <div class="md-footer__title">
  774. <span class="md-footer__direction">
  775. Previous
  776. </span>
  777. <div class="md-ellipsis">
  778. Overview
  779. </div>
  780. </div>
  781. </a>
  782. <a href="weighting.html" class="md-footer__link md-footer__link--next" aria-label="Next: Weighting">
  783. <div class="md-footer__title">
  784. <span class="md-footer__direction">
  785. Next
  786. </span>
  787. <div class="md-ellipsis">
  788. Weighting
  789. </div>
  790. </div>
  791. <div class="md-footer__button md-icon">
  792. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11z"/></svg>
  793. </div>
  794. </a>
  795. </nav>
  796. <div class="md-footer-meta md-typeset">
  797. <div class="md-footer-meta__inner md-grid">
  798. <div class="md-copyright">
  799. <div class="md-copyright__highlight">
  800. Copyright &copy; Aegon Games Ltd.
  801. </div>
  802. Made with
  803. <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
  804. Material for MkDocs
  805. </a>
  806. </div>
  807. </div>
  808. </div>
  809. </footer>
  810. </div>
  811. <div class="md-dialog" data-md-component="dialog">
  812. <div class="md-dialog__inner md-typeset"></div>
  813. </div>
  814. <script id="__config" type="application/json">{"base": "..", "features": ["content.code.annotate", "content.code.copy", "content.tabs.link", "announce.dismiss", "header.autohide", "navigation.footer", "navigation.indexes", "navigation.top", "navigation.tracking"], "search": "../assets/javascripts/workers/search.f8cc74c7.min.js", "tags": null, "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": null}</script>
  815. <script src="../assets/javascripts/bundle.c8b220af.min.js"></script>
  816. </body>
  817. </html>