├── .gitattributes ├── .gitignore ├── LICENSE ├── Patterns ├── cave.json ├── cave.png ├── mechanical intermingled asteroids (n2).json ├── mechanical intermingled asteroids (n2).png ├── organised blocks.json ├── organised blocks.png ├── overlapping rooms.json ├── overlapping rooms.png ├── room cavern.json ├── room cavern.png ├── room network.json ├── room network.png ├── segmented with asteroids (n2).json ├── segmented with asteroids (n2).png ├── sharp scrappy.json └── sharp scrappy.png ├── README.md ├── Rooms ├── boss0.json ├── boss0.png ├── boss1.json ├── boss1.png ├── room0.json ├── room0.png ├── room1.json ├── room1.png ├── room10.json ├── room10.png ├── room11.json ├── room11.png ├── room12.json ├── room12.png ├── room13.json ├── room13.png ├── room14.json ├── room14.png ├── room15.json ├── room15.png ├── room16.json ├── room16.png ├── room17.json ├── room17.png ├── room18.json ├── room18.png ├── room19.json ├── room19.png ├── room2.json ├── room2.png ├── room20.json ├── room20.png ├── room21.json ├── room21.png ├── room22.json ├── room22.png ├── room23.json ├── room23.png ├── room24.json ├── room24.png ├── room25.json ├── room25.png ├── room26.json ├── room26.png ├── room27.json ├── room27.png ├── room28.json ├── room28.png ├── room29.json ├── room29.png ├── room3.json ├── room3.png ├── room30.json ├── room30.png ├── room31.json ├── room31.png ├── room32.json ├── room32.png ├── room33.json ├── room33.png ├── room34.json ├── room34.png ├── room35.json ├── room35.png ├── room36.json ├── room36.png ├── room37.json ├── room37.png ├── room38.json ├── room38.png ├── room39.json ├── room39.png ├── room4.json ├── room4.png ├── room40.json ├── room40.png ├── room41.json ├── room41.png ├── room42.json ├── room42.png ├── room43.json ├── room43.png ├── room44.json ├── room44.png ├── room45.json ├── room45.png ├── room46.json ├── room46.png ├── room47.json ├── room47.png ├── room48.json ├── room48.png ├── room49.json ├── room49.png ├── room5.json ├── room5.png ├── room50.json ├── room50.png ├── room51.json ├── room51.png ├── room52.json ├── room52.png ├── room53.json ├── room53.png ├── room54.json ├── room54.png ├── room55.json ├── room55.png ├── room56.json ├── room56.png ├── room57.json ├── room57.png ├── room6.json ├── room6.png ├── room7.json ├── room7.png ├── room8.json ├── room8.png ├── room9.json ├── room9.png ├── shop0.json ├── shop0.png ├── shop1.json ├── shop1.png ├── treasure0.json ├── treasure0.png ├── treasure1.json └── treasure1.png └── SpaghettiDungeonGen ├── BoringAreaRemover.cpp ├── CMakeLists.txt ├── ConnectionNode.cpp ├── ConnectionNodeFilteredCollection.cpp ├── ConnectionNodeFilteredIterator.cpp ├── ConnectionNodeWrapper.cpp ├── ConnectivityGraphVertexIteratorWrapper.cpp ├── ConnectivityGrapher.cpp ├── Coord.cpp ├── Corridor.cpp ├── DRandom.cpp ├── EmptySpacePathfinder.cpp ├── EntropyGrid.cpp ├── FileManager.cpp ├── GameInterface.cpp ├── Islands.cpp ├── Map.cpp ├── Pattern.cpp ├── PatternIndex.cpp ├── PlacedRoom.cpp ├── PossibleDoor.cpp ├── RoomGenerator.cpp ├── RoomPlacer.cpp ├── RoomPrefab.cpp ├── Tile.cpp ├── TileWallData.cpp ├── WFCDungeonGenInterface.cpp ├── WFCTileType.cpp ├── WallOffNothingAreas.cpp ├── WaveFunctionCollapse.cpp ├── include ├── BoringAreaRemover.h ├── ConnectionNode.h ├── ConnectionNodeFilteredCollection.h ├── ConnectionNodeFilteredIterator.h ├── ConnectionNodeWrapper.h ├── ConnectivityGraphVertexIteratorWrapper.h ├── ConnectivityGrapher.h ├── Coord.h ├── Corridor.h ├── CorridorInfo.h ├── DRandom.h ├── Direction.h ├── DoorPosition.h ├── EmptySpacePathfinder.h ├── EntropyGrid.h ├── FileManager.h ├── GameInterface.h ├── Islands.h ├── Map.h ├── MapArray.h ├── OutputTile.h ├── Pattern.h ├── PatternIndex.h ├── PlacedRoom.h ├── PossibleDoor.h ├── Requirements.h ├── RoomGenerator.h ├── RoomPlacer.h ├── RoomPrefab.h ├── RoomType.h ├── Tile.h ├── TileType.h ├── TileWallData.h ├── WFCDungeonGenInterface.h ├── WFCTileType.h ├── WallOffNothingAreas.h └── WaveFunctionCollapse.h └── main.cpp /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | *.ini 5 | build/ 6 | 7 | # User-specific files 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Build results 17 | [Dd]ebug/ 18 | [Dd]ebugPublic/ 19 | [Rr]elease/ 20 | [Rr]eleases/ 21 | DLL-Release/ 22 | x64/ 23 | x86/ 24 | bld/ 25 | [Bb]in/ 26 | [Oo]bj/ 27 | [Ll]og/ 28 | 29 | # Visual Studio 2015 cache/options directory 30 | .vs/ 31 | # Uncomment if you have tasks that create the project's static files in wwwroot 32 | #wwwroot/ 33 | 34 | # MSTest test Results 35 | [Tt]est[Rr]esult*/ 36 | [Bb]uild[Ll]og.* 37 | 38 | # NUNIT 39 | *.VisualState.xml 40 | TestResult.xml 41 | 42 | # Build Results of an ATL Project 43 | [Dd]ebugPS/ 44 | [Rr]eleasePS/ 45 | dlldata.c 46 | 47 | # DNX 48 | project.lock.json 49 | project.fragment.lock.json 50 | artifacts/ 51 | 52 | *_i.c 53 | *_p.c 54 | *_i.h 55 | *.ilk 56 | *.meta 57 | *.obj 58 | *.pch 59 | *.pdb 60 | *.pgc 61 | *.pgd 62 | *.rsp 63 | *.sbr 64 | *.tlb 65 | *.tli 66 | *.tlh 67 | *.tmp 68 | *.tmp_proj 69 | *.log 70 | *.vspscc 71 | *.vssscc 72 | .builds 73 | *.pidb 74 | *.svclog 75 | *.scc 76 | 77 | # Chutzpah Test files 78 | _Chutzpah* 79 | 80 | # Visual C++ cache files 81 | ipch/ 82 | *.aps 83 | *.ncb 84 | *.opendb 85 | *.opensdf 86 | *.sdf 87 | *.cachefile 88 | *.VC.db 89 | *.VC.VC.opendb 90 | 91 | # Visual Studio profiler 92 | *.psess 93 | *.vsp 94 | *.vspx 95 | *.sap 96 | 97 | # TFS 2012 Local Workspace 98 | $tf/ 99 | 100 | # Guidance Automation Toolkit 101 | *.gpState 102 | 103 | # ReSharper is a .NET coding add-in 104 | _ReSharper*/ 105 | *.[Rr]e[Ss]harper 106 | *.DotSettings.user 107 | 108 | # JustCode is a .NET coding add-in 109 | .JustCode 110 | 111 | # TeamCity is a build add-in 112 | _TeamCity* 113 | 114 | # DotCover is a Code Coverage Tool 115 | *.dotCover 116 | 117 | # NCrunch 118 | _NCrunch_* 119 | .*crunch*.local.xml 120 | nCrunchTemp_* 121 | 122 | # MightyMoose 123 | *.mm.* 124 | AutoTest.Net/ 125 | 126 | # Web workbench (sass) 127 | .sass-cache/ 128 | 129 | # Installshield output folder 130 | [Ee]xpress/ 131 | 132 | # DocProject is a documentation generator add-in 133 | DocProject/buildhelp/ 134 | DocProject/Help/*.HxT 135 | DocProject/Help/*.HxC 136 | DocProject/Help/*.hhc 137 | DocProject/Help/*.hhk 138 | DocProject/Help/*.hhp 139 | DocProject/Help/Html2 140 | DocProject/Help/html 141 | 142 | # Click-Once directory 143 | publish/ 144 | 145 | # Publish Web Output 146 | *.[Pp]ublish.xml 147 | *.azurePubxml 148 | # TODO: Comment the next line if you want to checkin your web deploy settings 149 | # but database connection strings (with potential passwords) will be unencrypted 150 | #*.pubxml 151 | *.publishproj 152 | 153 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 154 | # checkin your Azure Web App publish settings, but sensitive information contained 155 | # in these scripts will be unencrypted 156 | PublishScripts/ 157 | 158 | # NuGet Packages 159 | *.nupkg 160 | # The packages folder can be ignored because of Package Restore 161 | **/packages/* 162 | # except build/, which is used as an MSBuild target. 163 | !**/packages/build/ 164 | # Uncomment if necessary however generally it will be regenerated when needed 165 | #!**/packages/repositories.config 166 | # NuGet v3's project.json files produces more ignoreable files 167 | *.nuget.props 168 | *.nuget.targets 169 | 170 | # Microsoft Azure Build Output 171 | csx/ 172 | *.build.csdef 173 | 174 | # Microsoft Azure Emulator 175 | ecf/ 176 | rcf/ 177 | 178 | # Windows Store app package directories and files 179 | AppPackages/ 180 | BundleArtifacts/ 181 | Package.StoreAssociation.xml 182 | _pkginfo.txt 183 | 184 | # Visual Studio cache files 185 | # files ending in .cache can be ignored 186 | *.[Cc]ache 187 | # but keep track of directories ending in .cache 188 | !*.[Cc]ache/ 189 | 190 | # Others 191 | ClientBin/ 192 | ~$* 193 | *~ 194 | *.dbmdl 195 | *.dbproj.schemaview 196 | *.jfm 197 | *.pfx 198 | *.publishsettings 199 | node_modules/ 200 | orleans.codegen.cs 201 | 202 | # Since there are multiple workflows, uncomment next line to ignore bower_components 203 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 204 | #bower_components/ 205 | 206 | # RIA/Silverlight projects 207 | Generated_Code/ 208 | 209 | # Backup & report files from converting an old project file 210 | # to a newer Visual Studio version. Backup files are not needed, 211 | # because we have git ;-) 212 | _UpgradeReport_Files/ 213 | Backup*/ 214 | UpgradeLog*.XML 215 | UpgradeLog*.htm 216 | 217 | # SQL Server files 218 | *.mdf 219 | *.ldf 220 | 221 | # Business Intelligence projects 222 | *.rdl.data 223 | *.bim.layout 224 | *.bim_*.settings 225 | 226 | # Microsoft Fakes 227 | FakesAssemblies/ 228 | 229 | # GhostDoc plugin setting file 230 | *.GhostDoc.xml 231 | 232 | # Node.js Tools for Visual Studio 233 | .ntvs_analysis.dat 234 | 235 | # Visual Studio 6 build log 236 | *.plg 237 | 238 | # Visual Studio 6 workspace options file 239 | *.opt 240 | 241 | # Visual Studio LightSwitch build output 242 | **/*.HTMLClient/GeneratedArtifacts 243 | **/*.DesktopClient/GeneratedArtifacts 244 | **/*.DesktopClient/ModelManifest.xml 245 | **/*.Server/GeneratedArtifacts 246 | **/*.Server/ModelManifest.xml 247 | _Pvt_Extensions 248 | 249 | # Paket dependency manager 250 | .paket/paket.exe 251 | paket-files/ 252 | 253 | # FAKE - F# Make 254 | .fake/ 255 | 256 | # JetBrains Rider 257 | .idea/ 258 | *.sln.iml 259 | 260 | # CodeRush 261 | .cr/ 262 | 263 | # Python Tools for Visual Studio (PTVS) 264 | __pycache__/ 265 | *.pyc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 RedBreadcat 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Patterns/cave.json: -------------------------------------------------------------------------------- 1 | {"width":18,"height":18,"tiles":[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,2,0,2,2,2,2,2,0,0,0,0,0,0,0,0,0,2,2,2,0,2,2,2,2,2,2,0,0,0,0,0,0,0,2,2,2,0,0,2,2,2,2,2,2,0,0,0,0,0,0,2,2,2,0,0,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2],"n":3} -------------------------------------------------------------------------------- /Patterns/cave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Patterns/cave.png -------------------------------------------------------------------------------- /Patterns/mechanical intermingled asteroids (n2).json: -------------------------------------------------------------------------------- 1 | {"width":15,"height":15,"tiles":[2,2,2,2,0,0,0,0,0,0,0,0,4,4,0,2,2,2,2,2,2,0,0,0,0,0,4,4,4,4,2,2,2,2,2,2,0,0,0,0,0,0,4,4,4,2,2,2,2,2,2,2,2,2,2,2,2,0,4,0,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,0,0,2,0,0,0,2,2,2,2,2,2,2,2,2,0,0,2,0,0,0,2,2,2,2,2,2,2,2,2,0,0,2,4,4,0,0,0,0,2,2,2,0,0,0,0,0,2,4,4,4,0,0,0,2,2,2,0,0,4,4,0,2,4,4,4,4,0,0,2,2,2,0,0,4,4,0,2,0,4,4,4,0,0,2,2,2,0,4,4,4,0,2,0,0,0,0,0,0,2,2,2,0,4,4,0,0,2],"n":2} -------------------------------------------------------------------------------- /Patterns/mechanical intermingled asteroids (n2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Patterns/mechanical intermingled asteroids (n2).png -------------------------------------------------------------------------------- /Patterns/organised blocks.json: -------------------------------------------------------------------------------- 1 | {"width":18,"height":18,"tiles":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,0,2,2,2,2,2,0,2,2,2,0,0,0,2,1,1,1,2,0,2,1,1,1,2,0,2,1,2,0,0,0,2,1,1,1,2,0,2,1,1,1,2,0,2,2,2,0,0,0,2,1,1,1,2,0,2,1,1,1,2,0,0,0,0,0,0,0,2,1,1,1,2,0,2,1,1,1,2,0,2,2,2,0,0,0,2,1,1,1,2,0,2,1,1,1,2,0,2,1,2,0,0,0,2,2,2,2,2,0,2,1,1,1,2,0,2,1,2,0,0,0,0,0,0,0,0,0,2,1,1,1,2,0,2,1,2,0,0,0,2,2,2,2,2,2,2,1,1,1,2,0,2,1,2,0,0,0,2,1,1,1,1,1,1,1,1,1,2,0,2,1,2,0,0,0,2,1,1,1,1,1,1,1,1,1,2,0,2,2,2,0,0,0,2,1,1,1,1,1,1,1,1,1,2,0,0,0,0,0,0,0,2,1,1,1,1,1,1,1,1,1,2,0,2,2,2,0,0,0,2,2,2,2,2,2,2,2,2,2,2,0,2,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0],"n":3} -------------------------------------------------------------------------------- /Patterns/organised blocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Patterns/organised blocks.png -------------------------------------------------------------------------------- /Patterns/overlapping rooms.json: -------------------------------------------------------------------------------- 1 | {"width":18,"height":18,"tiles":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,2,1,1,1,1,1,2,0,0,0,0,0,0,0,0,0,0,0,2,1,1,1,1,1,2,0,0,0,0,0,0,0,0,0,0,0,2,1,1,1,2,2,2,2,2,2,0,0,0,0,0,2,2,2,2,1,1,1,2,1,1,1,1,2,0,0,0,0,0,2,1,1,2,1,1,1,2,1,1,1,1,2,0,0,0,0,0,2,1,1,2,2,2,2,2,1,1,1,1,2,0,0,0,0,0,2,1,1,1,1,2,0,2,1,1,1,1,2,0,0,0,0,0,2,1,1,1,1,2,0,2,2,1,1,2,2,0,0,0,0,0,2,1,1,1,1,2,2,2,2,1,1,2,0,0,0,0,0,0,2,2,2,2,2,2,1,1,2,1,1,2,0,0,0,0,0,0,0,0,2,1,1,1,1,2,2,1,1,2,2,0,0,0,0,0,0,0,2,1,1,1,1,2,1,1,1,1,2,0,0,0,0,0,0,0,2,1,1,1,1,2,1,1,1,1,2,0,0,0,0,0,0,0,2,1,1,1,1,2,2,2,2,2,2,0,0,0,0,0,0,0,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"n":3} -------------------------------------------------------------------------------- /Patterns/overlapping rooms.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Patterns/overlapping rooms.png -------------------------------------------------------------------------------- /Patterns/room cavern.json: -------------------------------------------------------------------------------- 1 | {"width":30,"height":30,"tiles":[4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,4,4,4,4,4,4,0,0,0,4,0,0,0,4,4,4,1,1,1,1,1,4,4,4,4,4,4,0,0,0,0,4,4,4,4,4,0,0,0,0,0,4,4,4,4,1,1,1,1,1,1,1,4,4,4,4,4,4,0,0,0,4,4,4,4,4,4,0,0,4,4,4,4,4,1,1,1,1,1,1,1,1,1,4,4,4,4,4,4,0,0,4,4,4,4,4,0,0,0,4,4,4,4,1,1,1,4,4,4,4,1,1,1,1,4,4,4,4,4,0,0,4,4,4,4,4,0,0,0,4,4,4,1,1,1,1,1,4,4,1,1,1,1,1,4,4,4,4,4,4,0,4,4,4,4,4,0,0,0,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,4,4,4,4,0,0,0,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,4,4,4,0,0,0,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,4,4,4,0,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,4,4,4,4,0,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,4,4,4,4,0,4,4,1,1,1,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,4,4,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,4,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4],"n":3} -------------------------------------------------------------------------------- /Patterns/room cavern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Patterns/room cavern.png -------------------------------------------------------------------------------- /Patterns/room network.json: -------------------------------------------------------------------------------- 1 | {"width":18,"height":18,"tiles":[0,0,0,0,2,1,2,0,0,0,0,0,2,1,2,0,0,0,0,0,0,0,2,1,2,0,0,0,0,0,2,1,2,0,0,0,0,0,2,2,2,1,2,2,0,0,0,2,2,1,2,2,2,0,0,0,2,1,1,1,1,2,0,0,0,2,1,1,1,1,2,0,2,2,2,1,1,1,1,2,2,2,2,2,1,1,1,1,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,1,1,1,1,2,2,2,2,2,1,1,1,1,2,2,0,0,2,1,2,2,2,2,0,0,0,2,1,1,1,1,2,0,0,0,2,1,2,0,0,0,0,0,0,2,1,1,1,1,2,0,0,0,2,1,2,0,0,0,0,0,0,2,1,1,1,1,2,0,0,0,2,1,2,0,0,0,0,0,0,2,2,1,2,2,2,0,0,2,2,1,2,2,0,0,0,0,0,0,2,1,2,0,0,0,0,2,1,1,1,2,0,2,2,2,2,2,2,1,2,0,0,0,2,2,1,1,1,2,2,2,1,1,1,1,1,1,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,1,1,1,2,2,2,1,1,1,1,1,1,2,2,2,2,0,2,1,2,2,2,0,2,2,2,2,1,2,2,2,0,0,0,0,2,1,2,0,0,0,0,0,0,2,1,2,0,0,0,0,0],"n":3} -------------------------------------------------------------------------------- /Patterns/room network.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Patterns/room network.png -------------------------------------------------------------------------------- /Patterns/segmented with asteroids (n2).json: -------------------------------------------------------------------------------- 1 | {"width":15,"height":15,"tiles":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,0,0,0,0,0,4,4,4,0,0,2,1,1,1,2,0,0,0,0,0,0,4,4,0,0,2,1,1,1,2,2,2,2,2,2,2,0,4,0,0,2,1,1,1,2,1,1,1,1,1,2,0,0,0,0,2,1,1,1,2,1,1,1,1,1,2,0,0,0,0,2,2,2,2,2,1,1,1,1,1,2,0,0,0,0,0,0,2,1,1,1,1,1,1,1,2,0,0,0,0,0,0,2,1,1,1,1,1,1,1,2,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,2,1,2,0,0,0,0,0,0,0,4,4,0,0,0,2,1,2,0,0,4,4,0,0,0,4,4,0,0,0,2,1,2,0,0,4,4,0,0,0,4,4,4,0,0,2,1,2,0,0,4,4,0,0,0,0,0,0,0,0,2,1,2,0,0,0,0,0,0],"n":2} -------------------------------------------------------------------------------- /Patterns/segmented with asteroids (n2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Patterns/segmented with asteroids (n2).png -------------------------------------------------------------------------------- /Patterns/sharp scrappy.json: -------------------------------------------------------------------------------- 1 | {"width":18,"height":18,"tiles":[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,2,0,0,0,0,0,2,2,2,2,0,0,0,0,0,0,0,0,2,0,0,0,0,0,2,2,2,2,0,2,2,0,0,0,0,0,2,0,0,0,0,0,2,2,2,2,0,2,2,0,0,0,0,2,2,0,0,0,0,0,2,2,2,2,0,0,0,0,0,0,2,2,0,0,0,2,2,2,2,0,2,2,0,0,0,0,0,0,2,2,0,0,0,2,2,2,2,0,2,2,0,0,0,0,0,0,2,2,0,0,0,2,2,2,2,0,2,2,0,0,0,0,0,0,2,0,0,0,0,2,2,2,2,0,2,2,2,2,2,2,2,0,2,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,2,2,2,2,2,0,0,0,2,2,2,2,2,2,0,0,0,0,2,2,2,2,2,0,0,0,2,2,2,2,2,2,0,0,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2],"n":3} -------------------------------------------------------------------------------- /Patterns/sharp scrappy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Patterns/sharp scrappy.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SpaghettiDungeonGenerator 2 | A brute force dungeon generator kept in line by a series of constraints. 3 | 4 | It's not quite ready for release, but here it is regardless. 5 | 6 | ## Requirements 7 | C++17 compiler 8 | 9 | Boost 10 | 11 | OpenCV (Unless GAME_COMPILE is defined) 12 | 13 | rapidjson 14 | 15 | 16 | ## Compile modes 17 | The intention of GAME_COMPILE is that the dungeon generator will be compiled as a shared library with reduced dependencies (So far, that means no OpenCV). 18 | -------------------------------------------------------------------------------- /Rooms/boss0.json: -------------------------------------------------------------------------------- 1 | {"x":[8,9,10,11,12,8,9,10,11,12,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,7,8,9,10,11,12,13,7,8,9,10,11,12,13,7,8,9,10,11,12,13,7,8,9,10,11,12,13,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,7,8,9,10,11,12,13,16,17,18,2,3,8,9,10,11,12,17,18,2,3,8,9,10,11,12,17,18,2,3,4,7,8,9,10,11,12,13,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],"y":[2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,9,9,9,9,9,9,9,10,10,10,10,10,10,10,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22],"wallx":[6,7,8,9,10,11,12,13,14,6,7,8,9,10,11,12,13,14,0,1,2,3,4,5,6,7,13,14,15,16,17,18,19,20,0,1,2,3,4,5,6,7,13,14,15,16,17,18,19,20,0,1,19,20,0,1,19,20,0,1,19,20,0,1,19,20,0,1,2,3,4,5,6,14,15,16,17,18,19,20,0,1,2,3,4,5,6,14,15,16,17,18,19,20,5,6,14,15,0,1,2,3,4,5,6,14,15,16,17,18,19,20,0,1,19,20,0,1,19,20,0,1,5,6,14,15,19,20,0,1,4,5,6,7,13,14,15,16,19,20,0,1,4,5,6,7,13,14,15,16,19,20,0,1,5,6,14,15,19,20,0,1,19,20,0,1,19,20,0,1,19,20,0,1,19,20,0,1,19,20,0,1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,19,20,0,1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,19,20],"wally":[0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24],"doorx1":[10],"doory1":[23],"doorx2":[10],"doory2":[24],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":1} -------------------------------------------------------------------------------- /Rooms/boss0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/boss0.png -------------------------------------------------------------------------------- /Rooms/boss1.json: -------------------------------------------------------------------------------- 1 | {"x":[5,6,7,8,5,6,7,8,5,6,7,8,5,6,7,8,4,5,6,7,8,3,4,5,6,7,8,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10,11,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12,13,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2,3,4,5,6,7,8,9,10,11,12,13,14,15,3,4,5,6,7,8,9,10,11,12,13,14,4,5,6,7,8,9,10,11,12,13,5,6,7,8,9,10,11,12],"y":[2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20],"wallx":[4,5,6,7,8,9,4,5,6,7,8,9,4,9,4,9,4,9,3,4,9,2,3,9,1,2,9,10,0,1,10,11,0,11,12,0,12,13,0,13,14,0,14,15,16,17,18,19,20,21,0,20,21,0,0,20,21,0,20,21,0,1,16,17,18,19,20,21,1,2,15,2,3,14,15,3,4,13,14,4,5,6,7,8,9,10,11,12,13],"wally":[0,0,0,0,0,0,1,1,1,1,1,1,2,2,3,3,4,4,5,5,5,6,6,6,7,7,7,7,8,8,8,8,9,9,9,10,10,10,11,11,11,12,12,12,12,12,12,12,12,12,13,13,13,14,15,15,15,16,16,16,17,17,17,17,17,17,17,17,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,21,21,21,21,21,21],"doorx1":[20],"doory1":[14],"doorx2":[21],"doory2":[14],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/boss1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/boss1.png -------------------------------------------------------------------------------- /Rooms/room0.json: -------------------------------------------------------------------------------- 1 | {"x":[3,4,5,6,7,2,3,4,5,6,7,8,9,10,11,12,13,14,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,3,4,5,6,7,8,9,10,11,12,13,14,15,16,4,5,6,7,8,9,10,11,12,13,14,15,4,5,6,7,8,9,10,11,12,13,14,5,6,7,8,9,10,11,12,13,5,6,7,8,9,10,11,12,13,6,7,8,9,10,11,12,7,8,9,10,11],"y":[2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,16,16,16,16,16],"wallx":[4,5,6,7,2,3,4,5,6,7,8,9,12,14,1,2,8,9,10,11,12,14,15,16,1,15,16,17,0,1,17,18,0,1,18,18,19,0,1,0,1,18,19,1,18,1,2,17,18,2,3,16,17,3,15,16,3,4,14,15,4,14,4,5,13,14,5,6,12,13,6,7,8,10,11,12,8,10],"wally":[0,0,0,0,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,6,6,7,7,8,8,8,8,9,9,10,10,10,10,11,11,11,11,12,12,12,13,13,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,18,18],"doorx1":[13,0,18,9],"doory1":[1,6,7,17],"doorx2":[13,1,19,9],"doory2":[2,6,7,18],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room0.png -------------------------------------------------------------------------------- /Rooms/room1.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,1,2,3,8,9,10,11,12,13,14,15,16,17,18,1,2,3,5,6,8,9,10,11,12,13,14,15,16,17,18,1,2,3,5,6,8,9,10,11,12,13,14,15,16,17,18,1,2,3,8,9,10,11,12,13,14,15,16,17,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,3,4,5,6,7,8,9,10,11,12,13,14,15,3,4,5,6,7,8,9,10,11,12,13,14,15,3,4,5,6,7,8,9,10,11,12,13,14,15],"y":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13],"wallx":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,18,19,0,19,0,19,0,19,0,4,5,6,7,19,0,4,7,19,4,7,0,4,5,6,7,19,0,19,0,19,0,19,0,1,2,16,17,18,19,2,16,2,16,2,3,4,5,6,7,8,10,11,12,13,14,15,16],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,2,3,3,4,4,4,4,4,4,5,5,5,5,6,6,7,7,7,7,7,7,8,8,9,9,10,10,11,11,11,11,11,11,11,12,12,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14],"doorx1":[17,0,19,9],"doory1":[0,6,6,14],"doorx2":[-1,-1,-1,-1],"doory2":[-1,-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room1.png -------------------------------------------------------------------------------- /Rooms/room10.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,1,2,3,4,5,6,11,12,13,14,15,1,2,3,4,5,6,11,12,13,14,15,1,2,3,4,5,6,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,5,6,11,12,13,14,15,1,2,3,4,5,6,11,12,13,14,15,1,2,3,4,5,6,13,1,2,3,4,5,6,13,4,13,4,12,13,4,12,4,12,4,12,4,10,11,12,13,14,15,4,10,11,12,13,14,15,4,5,6,7,8,9,10,11,12,13,14,15,10,11,12,13,14,15,10,11,12,13,14,15,10,11,12,13,14,15,10,11,12,13,14,15],"y":[1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,9,9,9,9,9,9,9,10,10,11,11,11,12,12,13,13,14,14,15,15,15,15,15,15,15,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17,17,17,18,18,18,18,18,18,19,19,19,19,19,19,20,20,20,20,20,20,21,21,21,21,21,21],"wallx":[0,1,2,3,4,5,6,7,0,7,10,11,12,13,14,15,16,0,7,10,16,0,7,10,16,0,7,8,9,10,16,0,7,8,9,10,16,0,7,10,16,0,7,10,11,12,14,15,16,0,7,10,11,12,14,15,16,0,1,2,3,5,6,7,11,12,14,3,5,11,14,3,5,11,13,14,3,5,11,13,3,5,9,10,11,13,14,15,16,3,5,9,16,3,5,6,7,8,9,16,3,16,3,4,5,6,7,8,9,16,9,16,9,16,9,16,9,10,11,13,14,15,16],"wally":[0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,4,4,6,6,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,11,11,11,11,12,12,12,12,12,13,13,13,13,14,14,14,14,14,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,17,17,18,18,18,18,18,18,18,18,19,19,20,20,21,21,22,22,22,22,22,22,22],"doorx1":[0,16,12],"doory1":[5,5,22],"doorx2":[-1,-1,-1],"doory2":[-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room10.png -------------------------------------------------------------------------------- /Rooms/room11.json: -------------------------------------------------------------------------------- 1 | {"x":[2,3,4,6,10,12,13,14,2,3,4,6,10,12,13,14,2,3,4,6,10,12,13,14,2,3,4,6,7,8,9,10,12,13,14,2,3,4,6,7,8,9,10,12,13,14,2,3,4,6,7,8,9,10,12,13,14,2,3,4,6,7,8,9,10,12,13,14,2,3,4,6,7,8,9,10,12,13,14,2,3,4,6,7,8,9,10,12,13,14,2,3,4,5,6,7,8,9,10,11,12,13,14,2,3,4,6,7,8,9,10,12,13,14,2,3,4,6,7,8,9,10,12,13,14,2,3,4,6,7,8,9,10,12,13,14,2,3,4,6,7,8,9,10,12,13,14,2,3,4,6,7,8,9,10,12,13,14,2,3,4,6,7,8,9,10,12,13,14,2,3,4,6,10,12,13,14,2,3,4,6,10,12,13,14,2,3,4,6,10,12,13,14],"y":[2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20],"wallx":[0,1,2,3,4,5,7,9,11,12,13,14,15,16,0,1,2,3,4,5,7,9,11,12,13,14,15,16,5,7,9,11,0,1,5,7,9,11,15,16,0,1,5,7,8,9,11,15,16,0,1,5,11,15,16,0,1,5,11,15,16,0,1,5,11,15,16,0,1,5,11,15,16,0,1,5,11,15,16,0,1,5,11,15,16,0,1,15,16,0,1,5,11,15,16,0,1,5,11,15,16,0,1,5,11,15,16,0,1,5,11,15,16,0,1,5,11,15,16,0,1,5,11,15,16,0,1,5,7,8,9,11,15,16,0,1,5,7,9,11,15,16,5,7,9,11,0,1,2,3,4,5,7,9,11,12,13,14,15,16,0,1,2,3,4,5,7,9,11,12,13,14,15,16],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,8,8,9,9,9,9,9,9,10,10,10,10,10,10,11,11,11,11,12,12,12,12,12,12,13,13,13,13,13,13,14,14,14,14,14,14,15,15,15,15,15,15,16,16,16,16,16,16,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22],"doorx1":[6,10,0,15,0,15,6,10],"doory1":[0,0,2,2,20,20,21,21],"doorx2":[6,10,1,16,1,16,6,10],"doory2":[1,1,2,2,20,20,22,22],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room11.png -------------------------------------------------------------------------------- /Rooms/room12.json: -------------------------------------------------------------------------------- 1 | {"x":[2,3,4,2,3,4,12,13,14,15,16,17,18,19,20,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,2,3,4,12,13,14,15,16,17,18,19,20,12,13,14,15,16,17,18,19,20,17,17,17,17,4,5,6,17,3,4,5,6,7,14,15,16,17,18,19,20,2,3,4,5,6,7,8,14,15,16,17,18,19,20,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,2,3,4,5,6,7,8,14,15,16,17,18,19,20,3,4,5,6,7,14,15,16,17,18,19,20,4,5,6,13,14,15,16,17,18,19,20,5,12,13,14,15,16,17,18,19,20,5,11,12,13,14,15,16,17,18,19,20,5,10,11,12,13,14,15,16,17,18,19,20,5,9,10,11,5,8,9,10,11,5,6,7,8,9,10,11,5,6,7,8,9,10,11,5,6,7,8,9,10,11,5,6,7,8,9,10,11,5,6,7,8,9,10,11],"y":[2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,7,8,9,10,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,22,22,22,22,22,23,23,23,23,23,23,23,24,24,24,24,24,24,24,25,25,25,25,25,25,25,26,26,26,26,26,26,26,27,27,27,27,27,27,27],"wallx":[0,1,2,4,5,6,0,1,2,4,5,6,11,12,13,14,15,16,17,18,19,20,21,22,0,1,5,6,11,12,13,14,15,16,17,18,19,20,21,22,0,1,5,6,7,8,9,10,11,21,22,0,1,5,6,7,8,9,10,11,21,22,0,1,2,3,4,5,6,11,21,22,11,12,13,14,15,16,18,19,20,21,22,15,16,18,19,4,6,18,19,3,4,6,7,15,16,18,19,2,3,7,8,13,14,15,16,18,19,20,21,22,1,2,8,9,13,21,22,0,1,9,10,11,12,13,21,22,21,22,0,1,9,10,11,12,13,21,22,1,2,8,9,12,13,2,3,7,8,11,12,21,22,3,4,6,7,10,11,21,22,4,6,9,10,21,22,4,6,8,9,21,22,4,6,7,8,12,13,14,15,16,17,18,19,20,21,22,3,4,6,7,12,13,14,15,16,17,18,19,20,21,22,3,4,12,13,3,4,12,13,3,4,12,13,3,4,12,13,3,4,12,13,3,4,5,6,7,9,10,11,12,13,3,4,5,6,7,9,10,11,12,13],"wally":[0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,14,14,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29],"doorx1":[3,0,21,5,15,0,21,8],"doory1":[0,4,4,9,9,14,16,28],"doorx2":[3,1,22,5,16,1,22,8],"doory2":[1,4,4,10,9,14,16,29],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room12.png -------------------------------------------------------------------------------- /Rooms/room13.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9],"y":[1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,9,9,9,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,13,13,13,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21],"wallx":[0,1,2,3,4,6,7,8,9,10,0,10,0,10,0,10,0,10,0,4,5,6,7,8,9,10,0,10,0,10,0,10,0,1,2,3,4,5,6,10,0,10,0,0,10,0,4,5,6,7,8,9,10,0,10,0,10,0,10,0,1,2,3,4,5,6,10,0,10,0,10,0,10,0,10,0,1,2,3,4,6,7,8,9,10],"wally":[0,0,0,0,0,0,0,0,0,0,1,1,2,2,3,3,4,4,5,5,5,5,5,5,5,5,6,6,7,7,8,8,9,9,9,9,9,9,9,9,10,10,11,12,12,13,13,13,13,13,13,13,13,14,14,15,15,16,16,17,17,17,17,17,17,17,17,18,18,19,19,20,20,21,21,22,22,22,22,22,22,22,22,22,22],"doorx1":[5,10,5],"doory1":[0,11,22],"doorx2":[-1,-1,-1],"doory2":[-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room13.png -------------------------------------------------------------------------------- /Rooms/room14.json: -------------------------------------------------------------------------------- 1 | {"x":[4,5,6,7,8,3,4,5,6,7,8,9,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,3,4,5,6,7,8,9,4,5,6,7,8],"y":[2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,10,10,10,10,10],"wallx":[0,1,2,3,4,5,7,8,9,10,11,12,0,1,2,3,4,5,7,8,9,10,11,12,0,1,2,3,9,10,11,12,0,1,2,10,11,12,0,1,11,12,0,1,11,12,0,1,11,12,0,1,11,12,0,1,2,10,11,12,0,1,2,3,9,10,11,12,0,1,2,3,4,5,7,8,9,10,11,12,0,1,2,3,4,5,7,8,9,10,11,12],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,5,5,5,5,7,7,7,7,8,8,8,8,9,9,9,9,9,9,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12],"doorx1":[6,0,11,6],"doory1":[0,6,6,11],"doorx2":[6,1,12,6],"doory2":[1,6,6,12],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room14.png -------------------------------------------------------------------------------- /Rooms/room15.json: -------------------------------------------------------------------------------- 1 | {"x":[11,12,13,14,15,16,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,2,3,11,12,13,14,15,16,2,3,5,6,7,8,9,2,3,5,6,7,8,9,10,11,2,3,5,6,7,8,9,10,11,2,3,5,6,7,8,9,11,1,2,3,11,1,2,3,4,5,11,1,2,3,4,5,11,1,2,3,4,5,6,7,8,9,10,11,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5],"y":[1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,11,11,11,11,11,11,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,15,15,15,15,15,16,16,16,16,16],"wallx":[9,10,11,12,14,15,16,17,1,2,3,4,5,6,7,8,9,10,17,1,17,1,1,17,1,4,5,6,7,8,9,10,17,1,4,10,11,12,13,14,15,16,17,1,4,12,1,4,12,0,1,4,10,12,0,4,5,6,7,8,9,10,12,0,6,10,12,0,6,7,8,9,10,12,12,0,6,7,8,9,10,11,12,0,6,0,6,0,1,2,4,5,6],"wally":[0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,3,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,7,7,7,8,8,8,9,9,9,9,9,10,10,10,10,10,10,10,10,10,11,11,11,11,12,12,12,12,12,12,12,13,14,14,14,14,14,14,14,14,15,15,16,16,17,17,17,17,17,17],"doorx1":[13,17,0,3],"doory1":[0,3,13,17],"doorx2":[-1,-1,-1,-1],"doory2":[-1,-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room15.png -------------------------------------------------------------------------------- /Rooms/room16.json: -------------------------------------------------------------------------------- 1 | {"x":[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9,10,11,12,13,16,2,3,6,7,8,9,10,13,16,2,3,6,7,8,9,10,13,14,15,16,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,2,3,4,5,6,9,10,11,12,13,14,15,16,2,3,4,5,6,9,10,11,12,13,14,15,16,2,5,6,7,8,9,10,11,12,13,16,2,5,6,7,8,9,12,13,16,2,3,4,5,6,7,8,9,12,13,14,15,16,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"y":[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12],"wallx":[0,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,0,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,0,1,17,18,0,1,14,15,17,18,0,1,4,5,11,12,14,15,17,18,0,1,4,5,11,12,17,18,0,1,17,18,7,8,0,1,7,8,17,18,0,1,3,4,14,15,17,18,0,1,3,4,10,11,14,15,17,18,0,1,10,11,17,18,0,1,17,18,0,1,2,3,4,5,6,7,8,9,10,11,12,14,15,16,17,18,0,1,2,3,4,5,6,7,8,9,10,11,12,14,15,16,17,18],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,7,7,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14],"doorx1":[8,0,17,13],"doory1":[0,7,7,13],"doorx2":[8,1,18,13],"doory2":[1,7,7,14],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room16.png -------------------------------------------------------------------------------- /Rooms/room17.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,1,2,3,4,5,6,7,8,9,10,11,12,13,14,1,2,3,4,5,6,7,8,9,10,11,12,13,14,1,2,3,4,5,6,7,8,9,10,11,12,13,14,1,2,3,4,5,6,7,8,9,10,11,12,13,14,8,9,10,11,12,13,14,8,9,10,11,12,13,14,8,9,10,11,12,13,14,8,9,10,11,12,13,14,2,3,4,8,9,10,11,12,13,14,2,3,4,8,9,10,11,12,13,14,2,3,4,8,9,10,11,12,13,14,2,3,4,8,9,10,11,12,13,14,8,9,10,11,12,13,14],"y":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,8,8,8,8,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14],"wallx":[0,1,2,4,5,6,7,8,9,10,11,12,13,14,15,0,15,0,15,0,0,15,0,15,0,1,2,3,4,5,6,7,15,7,15,1,2,3,4,5,7,15,1,2,3,4,5,7,15,1,5,7,15,1,5,7,15,1,5,7,15,1,5,7,15,1,2,3,4,5,7,15,7,8,9,10,12,13,14,15],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,2,3,4,4,5,5,6,6,6,6,6,6,6,6,6,7,7,8,8,8,8,8,8,8,9,9,9,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15],"doorx1":[3,15,11],"doory1":[0,3,15],"doorx2":[-1,-1,-1],"doory2":[-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room17.png -------------------------------------------------------------------------------- /Rooms/room18.json: -------------------------------------------------------------------------------- 1 | {"x":[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,12,13,14,15,16,17,18,12,13,14,15,16,17,18,12,13,14,15,16,17,18,12,13,14,15,16,17,18,12,13,14,15,16,17,18,12,13,14,15,16,17,18,2,3,4,5,12,13,14,15,16,17,18,2,3,4,5,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,12,13,14,15,16,17,18,2,3,4,5,12,13,14,15,16,17,18,2,3,4,5,12,13,14,15,16,17,18],"y":[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,8,8,8,8,9,9,9,9,9,9,9,10,10,10,10,10,10,10,11,11,11,11,11,11,11,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,18,18],"wallx":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,16,17,18,19,20,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,16,17,18,19,20,0,1,19,20,0,1,19,20,0,1,19,20,0,1,19,20,0,1,2,3,4,5,6,7,8,9,10,11,19,20,0,1,2,3,4,5,6,7,8,9,10,11,19,20,10,11,19,20,10,11,19,20,0,1,2,3,4,5,6,7,10,11,19,20,0,1,2,3,4,5,6,7,10,11,19,20,0,1,6,7,10,11,19,20,0,1,6,7,8,9,10,11,19,20,0,1,19,20,0,1,6,7,8,9,10,11,19,20,0,1,6,7,10,11,19,20,0,1,6,7,10,11,19,20,0,1,2,3,4,5,6,7,10,11,12,13,14,16,17,18,19,20,0,1,2,3,4,5,6,7,10,11,12,13,14,16,17,18,19,20],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,5,5,5,5,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20],"doorx1":[15,0,19,15],"doory1":[0,4,4,19],"doorx2":[15,1,20,15],"doory2":[1,4,4,20],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room18.png -------------------------------------------------------------------------------- /Rooms/room19.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,3,4,10,11,12,13,14,15,3,4,10,11,12,13,14,15,3,4,10,11,12,13,14,15,3,4,10,11,12,13,14,15,1,2,3,4,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,9,10,11,12,13,14,15,1,2,3,4,9,10,11,12,13,14,15],"y":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15],"wallx":[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,16,0,16,0,16,0,16,0,16,0,1,2,5,6,7,8,9,16,2,5,9,16,2,5,9,16,0,1,2,5,9,16,0,5,6,7,8,9,16,0,16,0,16,0,5,6,7,8,16,0,5,8,16,0,1,2,3,4,5,8,9,10,11,13,14,15,16],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,2,4,4,5,5,6,6,6,6,6,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,9,9,10,10,10,10,10,10,10,11,11,13,13,14,14,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,16,16,16,16,16,16],"doorx1":[12,0,16,0,16,12],"doory1":[0,3,3,12,12,16],"doorx2":[-1,-1,-1,-1,-1,-1],"doory2":[-1,-1,-1,-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room19.png -------------------------------------------------------------------------------- /Rooms/room2.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8],"y":[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8],"wallx":[0,1,3,4,5,6,7,8,9,0,9,0,0,9,0,9,0,9,0,9,9,0,9,0,1,2,3,4,5,6,8,9],"wally":[0,0,0,0,0,0,0,0,0,1,1,2,3,3,4,4,5,5,6,6,7,8,8,9,9,9,9,9,9,9,9,9],"doorx1":[2,9,0,7],"doory1":[0,2,7,9],"doorx2":[-1,-1,-1,-1],"doory2":[-1,-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room2.png -------------------------------------------------------------------------------- /Rooms/room20.json: -------------------------------------------------------------------------------- 1 | {"x":[2,3,4,5,6,7,8,9,10,11,12,2,3,4,5,6,7,8,11,12,2,3,4,5,6,7,8,11,12,2,3,4,5,6,7,8,9,10,11,12,2,3,4,5,6,7,8,9,10,11,12,2,3,4,5,6,7,8,9,10,11,12,2,3,4,5,6,7,8,9,10,11,12,2,3,4,5,6,7,8,9,10,11,12],"y":[2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9],"wallx":[0,1,2,3,4,5,6,8,9,10,11,12,13,14,0,1,2,3,4,5,6,8,9,10,11,12,13,14,0,1,13,14,9,10,13,14,0,1,9,10,13,14,0,1,13,14,0,1,13,14,0,1,13,14,0,1,0,1,13,14,0,1,2,3,4,5,6,8,9,10,11,12,13,14,0,1,2,3,4,5,6,8,9,10,11,12,13,14],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11],"doorx1":[7,0,13,7],"doory1":[0,3,8,10],"doorx2":[7,1,14,7],"doory2":[1,3,8,11],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room20.png -------------------------------------------------------------------------------- /Rooms/room21.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10],"y":[1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,8,8,8,8,9,9,9,9,9,9,9,10,10,10,10,10,10,10,11,11,11,11,11,11,11,12,12,12,12,12,12,12,13,13,13,13,13,13,13,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20],"wallx":[0,1,2,3,5,6,7,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,0,8,9,10,11,0,11,0,11,0,11,0,11,0,11,0,11,0,1,2,3,4,5,6,7,9,10,11],"wally":[0,0,0,0,0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,9,9,10,10,11,11,12,12,13,13,14,14,14,14,14,15,15,16,16,17,17,18,18,19,19,20,20,21,21,21,21,21,21,21,21,21,21,21],"doorx1":[4,0,8,8],"doory1":[0,8,8,21],"doorx2":[-1,-1,-1,-1],"doory2":[-1,-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room21.png -------------------------------------------------------------------------------- /Rooms/room22.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,6,7,1,2,3,4,5,6,7,2,3,4,5,6,2,3,4,5,6,2,3,4,5,6,1,2,3,4,5,6,7,1,2,6,7],"y":[1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7],"wallx":[0,1,2,3,5,6,7,8,0,3,5,8,0,8,0,1,7,8,0,1,7,8,0,8,0,3,5,8,0,1,2,3,5,6,7,8],"wally":[0,0,0,0,0,0,0,0,1,1,1,1,2,2,3,3,3,3,5,5,5,5,6,6,7,7,7,7,8,8,8,8,8,8,8,8],"doorx1":[4,0,7,4],"doory1":[0,4,4,7],"doorx2":[4,1,8,4],"doory2":[1,4,4,8],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room22.png -------------------------------------------------------------------------------- /Rooms/room23.json: -------------------------------------------------------------------------------- 1 | {"x":[2,3,4,5,6,7,8,9,10,11,12,2,3,4,5,6,7,8,9,10,11,12,2,3,4,5,6,7,8,9,10,11,12,2,3,4,5,6,7,8,9,10,11,12,2,3,4,5,6,7,8,9,10,11,12,2,3,4,5,6,7,8,9,10,11,12,2,6,7,8,9,10,11,12,2,4,6,7,8,9,10,11,12,2,3,4,5,6,7,8,9,10,11,12,5,6,7,8,9,10,11,12,5,6,7,9,10,11,12,9,10,11,12,9,10,11,12,7,8,9,10,11,12],"y":[2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,15,15],"wallx":[0,1,2,3,4,5,6,8,9,10,11,12,13,14,0,1,2,3,4,5,6,8,9,10,11,12,13,14,0,1,13,14,0,1,13,14,0,1,13,14,0,1,13,14,0,1,13,14,0,1,3,4,5,13,14,0,1,3,5,13,14,0,1,13,14,1,2,3,4,13,14,3,4,8,13,14,4,5,6,7,8,13,14,5,6,7,8,13,14,5,6,13,14,6,7,8,9,10,11,12,13,14,6,7,8,9,10,11,12,13,14],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,8,8,8,8,8,8,8,9,9,9,9,9,9,10,10,10,10,11,11,11,11,11,11,12,12,12,12,12,13,13,13,13,13,13,13,14,14,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17],"doorx1":[7,0,13],"doory1":[0,7,7],"doorx2":[7,1,14],"doory2":[1,7,7],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room23.png -------------------------------------------------------------------------------- /Rooms/room24.json: -------------------------------------------------------------------------------- 1 | {"x":[2,3,4,5,6,7,8,9,10,11,12,13,14,2,3,4,5,6,7,8,9,10,11,12,13,14,2,3,4,5,6,7,8,9,10,11,12,13,14,2,3,4,5,6,7,8,9,10,11,12,13,14,2,3,4,5,6,7,8,9,10,14,2,3,6,7,8,9,10,14,2,6,7,8,9,10,14,2,6,7,8,9,10,11,12,13,14,2,6,7,8,12,13,2,7,12,2,3,7,12,2,3,7,8,9,11],"y":[2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,11,11,11,12,12,12,12,13,13,13,13,13,13],"wallx":[0,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,0,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,0,1,15,16,0,1,15,16,0,1,15,16,0,1,11,12,13,15,16,0,1,4,5,11,13,15,16,0,1,3,4,5,11,12,13,15,16,0,1,3,5,15,16,0,1,3,5,9,10,11,14,15,1,3,4,5,6,8,9,11,13,1,4,6,8,9,10,11,13,1,4,5,6,10,12,1,2,3,4,6,7,8,9,10,11,12],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14],"doorx1":[8,0,15],"doory1":[0,5,5],"doorx2":[8,1,16],"doory2":[1,5,5],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room24.png -------------------------------------------------------------------------------- /Rooms/room25.json: -------------------------------------------------------------------------------- 1 | {"x":[5,6,7,8,9,10,11,12,13,14,15,4,5,6,7,8,9,10,11,12,13,14,15,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,14,15,1,2,3,14,15,1,2,13,14,15,1,12,13,14,15,12,13,6,7,8,6,7,8,5,6,7,8,9],"y":[1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,7,7,7,7,7,8,8,8,8,8,9,9,11,11,11,12,12,12,13,13,13,13,13],"wallx":[4,5,6,7,8,9,10,11,12,13,15,16,3,4,16,1,2,3,16,0,1,16,0,16,5,6,7,8,9,10,11,12,13,16,0,4,5,12,13,16,0,3,4,11,12,16,0,2,3,11,0,1,2,11,14,15,16,5,6,7,8,9,11,12,13,14,15,5,9,4,5,9,10,4,10,4,5,6,7,8,9,10],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,2,2,2,2,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,11,11,12,12,12,12,13,13,14,14,14,14,14,14,14],"doorx1":[14,0,16],"doory1":[0,5,8],"doorx2":[-1,-1,-1],"doory2":[-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room25.png -------------------------------------------------------------------------------- /Rooms/room26.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,1,2,3,4,5,6,8,9,10,11,12,13,14,1,2,3,4,5,6,8,9,10,11,12,13,14,1,2,3,4,5,6,8,9,14,3,4,8,9,11,12,14,2,3,4,5,6,7,8,9,11,12,14,2,3,4,5,6,7,8,9,14,2,3,4,5,6,7,8,9,10,11,12,13,14,2,3,4,5,6,7,8,9,10,11,12,13,14,2,3,8,9,14,2,3,5,6,7,8,9,10,11,12,14,2,3,5,6,7,8,9,10,11,12,14,2,3,5,6,7,8,9,10,11,12,14,2,3,5,6,7,8,9,10,11,12,14,5,6,7,8,9,10,11,12],"y":[1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15],"wallx":[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,16,0,7,8,9,10,11,13,14,15,16,0,7,15,16,0,7,15,16,0,7,10,11,12,13,15,16,0,1,2,5,6,7,10,13,15,16,0,1,10,13,15,16,0,1,10,11,12,13,15,16,0,1,15,16,0,1,4,5,6,7,10,11,12,13,15,16,0,1,4,13,15,16,0,1,4,13,15,16,0,1,4,13,15,16,0,1,4,13,15,16,0,1,2,3,4,13,14,15,16,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,7,7,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,12,12,12,12,12,12,13,13,13,13,13,13,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],"doorx1":[12,0,15],"doory1":[0,8,8],"doorx2":[12,1,16],"doory2":[1,8,8],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room26.png -------------------------------------------------------------------------------- /Rooms/room27.json: -------------------------------------------------------------------------------- 1 | {"x":[2,3,4,16,17,18,2,3,4,16,17,18,2,3,4,16,17,18,2,3,4,16,17,18,2,3,4,16,17,18,2,3,4,16,17,18,2,3,4,16,17,18,2,3,4,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,16,17,18,2,3,4,16,17,18,2,3,4,16,17,18,2,3,4,16,17,18,2,3,4,16,17,18,2,3,4,16,17,18,2,3,4,16,17,18,2,3,4,16,17,18],"y":[1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,13,13,13,13,13,13,14,14,14,14,14,14,15,15,15,15,15,15,16,16,16,16,16,16,17,17,17,17,17,17,18,18,18,18,18,18,19,19,19,19,19,19],"wallx":[0,1,2,3,4,5,15,16,17,18,19,20,0,1,5,15,19,20,0,1,5,15,19,20,0,1,5,15,19,20,0,1,5,15,19,20,0,1,5,15,19,20,0,1,5,15,19,20,0,1,5,15,19,20,0,1,5,6,7,8,9,10,11,12,13,14,15,19,20,0,1,19,20,0,1,19,20,0,1,5,6,7,8,9,10,11,12,13,14,15,19,20,0,1,5,15,19,20,0,1,5,15,19,20,0,1,5,15,19,20,0,1,5,15,19,20,0,1,5,15,19,20,0,1,5,15,19,20,0,1,5,15,19,20,0,1,2,3,4,5,15,16,17,18,19,20],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,14,14,14,14,14,14,15,15,15,15,15,15,16,16,16,16,16,16,17,17,17,17,17,17,18,18,18,18,18,18,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20],"doorx1":[0,19],"doory1":[10,10],"doorx2":[1,20],"doory2":[10,10],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":1} -------------------------------------------------------------------------------- /Rooms/room27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room27.png -------------------------------------------------------------------------------- /Rooms/room28.json: -------------------------------------------------------------------------------- 1 | {"x":[7,8,9,10,11,12,13,8,9,10,11,12,13,14,9,10,11,12,13,14,15,10,11,12,13,14,15,16,11,12,13,14,15,16,17,12,13,14,15,16,17,12,13,14,15,16,17,12,13,14,15,16,17,12,13,14,15,16,17,11,12,13,14,15,16,17,10,11,12,13,14,15,16,17,9,10,11,12,13,14,15,16,17,8,9,10,11,12,13,14,15,16,17,7,8,9,10,11,12,13,14,15,16,6,7,8,9,10,11,12,13,14,15,5,6,7,8,9,10,11,12,13,14,4,5,6,7,8,9,10,11,12,13],"y":[2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,8,8,9,9,9,9,9,9,10,10,10,10,10,10,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,18],"wallx":[3,4,5,6,7,8,9,11,12,13,4,5,6,7,8,9,11,12,13,14,5,6,14,15,6,7,15,16,7,8,16,17,8,9,17,18,19,9,10,18,19,10,11,18,19,11,18,19,11,18,19,10,11,9,10,18,19,8,9,18,19,7,8,18,19,6,7,18,19,5,6,17,18,4,5,16,17,3,4,15,16,2,3,14,15,1,2,3,4,5,6,7,8,10,11,12,13,14,0,1,2,3,4,5,6,7,8,10,11,12,13],"wally":[0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,9,9,9,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20],"doorx1":[10,18,9],"doory1":[0,10,19],"doorx2":[10,19,9],"doory2":[1,10,20],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room28.png -------------------------------------------------------------------------------- /Rooms/room29.json: -------------------------------------------------------------------------------- 1 | {"x":[2,3,4,5,6,2,3,4,5,6,13,14,2,3,4,5,12,13,2,3,4,5,11,12,13,16,4,5,6,7,8,9,10,11,14,15,16,4,6,7,8,9,10,14,15,16,4,7,8,9,13,14,15,16,3,4,6,7,8,9,10,12,13,14,15,16,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,1,2,3,4,5,6,9,10,11,12,13,14,15,16,1,2,3,4,5,9,10,11,12,13,14,15,16,1,2,3,4,8,9,10,11,12,13,14,15,16,1,2,3,4,7,8,9,10,11,12,13,14,15,16,1,2,5,6,7,8,9,10,11,12,13,14,15,16,1,2,5,6,7,8,9,10,11,12,13,14,15,16,1,4,5,6,7,8,9,10,11,12,13,14,15,16],"y":[1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,16,16,16,16,16],"wallx":[0,1,2,3,4,5,6,7,11,12,13,14,15,16,17,18,0,1,7,11,12,13,14,15,16,17,18,0,1,7,11,12,15,16,17,18,6,7,8,9,10,11,14,15,16,17,18,0,1,6,7,8,9,10,14,15,17,18,0,1,2,3,12,13,17,18,3,5,11,12,13,17,18,0,1,2,3,5,6,10,11,12,17,18,0,1,2,5,11,17,18,0,5,0,7,8,17,18,0,6,7,8,17,18,0,5,6,7,17,18,0,5,6,17,18,0,3,4,17,18,0,3,4,17,18,0,2,3,17,18,0,1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,0,1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,9,9,10,10,10,10,10,11,11,11,11,11,11,12,12,12,12,12,12,13,13,13,13,13,14,14,14,14,14,15,15,15,15,15,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18],"doorx1":[0,17,10],"doory1":[3,9,17],"doorx2":[1,18,10],"doory2":[3,9,18],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room29.png -------------------------------------------------------------------------------- /Rooms/room3.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,10,11,12,13,14,15,16,17,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],"y":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9],"wallx":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,0,19,0,19,19,0,19,0,1,2,3,4,5,6,7,8,9,0,19,19,0,19,0,19,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,2,3,4,4,5,5,5,5,5,5,5,5,5,5,6,6,7,8,8,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10],"doorx1":[0,19,0],"doory1":[3,5,7],"doorx2":[-1,-1,-1],"doory2":[-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":1} -------------------------------------------------------------------------------- /Rooms/room3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room3.png -------------------------------------------------------------------------------- /Rooms/room30.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,8,9,7,8,9,7,8,9,7,8,9,1,2,3,4,5,7,8,9,11,12,13,14,15,1,2,3,4,5,7,8,9,11,12,13,14,15,1,2,3,4,5,7,8,9,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],"y":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,6,6,6,7,7,7,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],"wallx":[0,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,0,16,0,16,0,16,0,16,0,1,2,3,4,5,6,10,11,12,13,14,15,16,6,10,6,10,0,1,2,3,4,5,6,10,11,12,13,14,15,16,0,6,10,16,0,6,10,16,0,6,10,16,0,16,0,16,0,16,0,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,2,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,13,13,14,14,15,15,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],"doorx1":[8,0,16,8],"doory1":[0,12,12,16],"doorx2":[-1,-1,-1,-1],"doory2":[-1,-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":1} -------------------------------------------------------------------------------- /Rooms/room30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room30.png -------------------------------------------------------------------------------- /Rooms/room31.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,12,13,14,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,2,7,16,17,2,7,16,17,2,7,16,17,2,3,4,5,6,7,8,9,16,17,2,3,4,5,6,7,8,9,16,17,2,7,8,9,16,17,2,7,8,9,10,11,12,13,14,15,16,17,2,12,17,2,12,17,2,12,17,2,5,6,7,8,12,17,2,5,8,12,17,2,10,11,12,13,17,2,10,11,12,13,17,18,1,2,3,4,13,17,18,1,2,3,4,13,14,15,16,17,18,1,2,3,4,8,9,10,11,12,13,17,18],"y":[1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,11,11,11,12,12,12,13,13,13,13,13,13,13,14,14,14,14,14,15,15,15,15,15,15,16,16,16,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19],"wallx":[0,1,2,3,11,12,14,15,0,3,4,5,6,7,8,9,10,11,15,16,17,18,0,18,0,1,3,4,5,6,8,9,10,11,12,13,14,15,18,1,3,6,8,15,18,1,3,4,5,6,8,9,10,15,18,1,10,15,18,1,10,15,18,1,3,4,5,6,10,11,12,13,14,15,18,1,3,6,18,1,3,6,7,8,9,10,11,13,14,15,16,18,1,3,11,13,16,18,1,3,4,5,6,7,8,9,11,13,16,18,1,3,4,9,11,13,16,18,1,3,4,6,7,9,10,11,13,14,16,18,1,3,7,8,9,14,16,18,19,0,1,3,4,5,9,14,16,19,0,5,9,10,11,12,14,15,16,19,0,5,7,8,9,10,11,12,0,5,7,14,15,16,19,0,1,3,4,5,7,8,10,11,12,13,14,16,17,18,19],"wally":[0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20],"doorx1":[13,19,2,9],"doory1":[0,18,20,20],"doorx2":[-1,-1,-1,-1],"doory2":[-1,-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room31.png -------------------------------------------------------------------------------- /Rooms/room32.json: -------------------------------------------------------------------------------- 1 | {"x":[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,5,6,7,8,9,10,11,12,13,16,17,18,2,3,4,5,6,7,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,15,16,17,18,2,3,4,7,8,9,10,11,12,13,14,15,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],"y":[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9],"wallx":[0,1,2,3,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,0,1,2,3,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,0,1,19,20,0,1,19,20,0,1,19,20,0,1,3,4,14,15,19,20,0,1,8,9,19,20,0,1,13,14,19,20,0,1,5,6,16,17,19,20,0,1,19,20,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11],"doorx1":[4,16],"doory1":[0,0],"doorx2":[4,16],"doory2":[1,1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room32.png -------------------------------------------------------------------------------- /Rooms/room33.json: -------------------------------------------------------------------------------- 1 | {"x":[5,6,7,8,9,10,11,12,13,14,15,16,4,5,6,7,8,9,10,11,12,13,14,15,16,3,4,5,6,7,8,9,10,11,12,13,14,15,16,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,1,2,3,4,5,6,1,2,3,4,5,6],"y":[1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,11,11,11,11,11,11],"wallx":[0,1,2,3,4,5,6,7,8,10,11,12,13,14,15,16,17,0,1,2,3,4,17,0,1,2,3,17,0,1,2,17,0,17,0,0,17,0,17,0,17,0,17,0,7,8,9,10,11,12,13,14,15,16,17,0,7,0,1,2,4,5,6,7],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,2,2,2,2,2,3,3,3,3,4,4,5,6,6,7,7,8,8,9,9,10,10,10,10,10,10,10,10,10,10,10,10,11,11,12,12,12,12,12,12,12],"doorx1":[9,17,3],"doory1":[0,5,12],"doorx2":[-1,-1,-1],"doory2":[-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room33.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room33.png -------------------------------------------------------------------------------- /Rooms/room34.json: -------------------------------------------------------------------------------- 1 | {"x":[7,8,9,7,8,9,14,15,16,7,8,9,14,15,16,2,3,4,5,6,7,8,9,10,11,12,14,15,16,2,3,4,5,6,7,8,9,10,11,12,14,15,16,2,3,4,5,6,7,8,9,10,11,12,14,15,16,11,12,13,14,15,16,4,5,6,7,8,9,10,11,12,4,5,6,7,8,9,10,11,12,4,5,6,7,8,9,10,11,12,4,5,6,7,12,4,5,6,7,12,13,14,15,16,17,4,12,13,14,15,16,17,4,12,13,14,15,16,17,1,2,3,4,12,13,14,15,16,17,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,1,2,3,4,12,13,14,15,16,17],"y":[1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17],"wallx":[6,7,8,9,10,6,10,13,14,16,17,6,10,13,17,1,2,3,4,5,6,10,11,12,13,17,1,13,17,13,17,1,13,17,1,2,3,4,5,6,7,8,9,10,17,3,13,14,15,16,17,3,13,14,15,16,17,3,13,3,8,9,10,11,13,14,15,16,17,18,3,8,11,18,3,5,6,7,8,11,18,0,1,2,3,5,11,0,5,6,7,8,9,10,11,18,18,0,5,6,7,8,9,10,11,18,0,1,2,4,5,11,12,14,15,16,17,18],"wally":[0,0,0,0,0,1,1,1,1,1,1,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,5,5,6,6,6,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,9,9,9,9,9,9,10,10,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,13,13,13,13,13,13,13,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,16,17,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,18,18,18],"doorx1":[15,1,18,0,3,13],"doory1":[1,5,14,16,18,18],"doorx2":[-1,-1,-1,-1,-1,-1],"doory2":[-1,-1,-1,-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room34.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room34.png -------------------------------------------------------------------------------- /Rooms/room35.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,4,6,7,9,11,12,1,2,4,6,7,9,11,12,1,2,4,6,7,9,11,12,1,2,4,6,7,9,11,12,1,2,4,6,7,9,11,12],"y":[1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16],"wallx":[0,1,2,3,4,5,6,7,8,9,11,12,13,0,13,13,0,13,0,13,0,1,2,3,4,5,6,7,13,0,13,0,13,0,0,13,0,13,0,13,0,3,5,8,10,13,0,3,5,8,10,13,0,3,5,8,10,13,0,3,5,8,10,13,0,3,5,8,10,13,0,1,3,4,5,6,7,8,9,10,11,12,13],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,3,3,4,4,5,5,5,5,5,5,5,5,5,6,6,7,7,8,9,9,10,10,11,11,12,12,12,12,12,12,13,13,13,13,13,13,14,14,14,14,14,14,15,15,15,15,15,15,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17,17,17,17],"doorx1":[10,0,13,2],"doory1":[0,2,8,17],"doorx2":[-1,-1,-1,-1],"doory2":[-1,-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room35.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room35.png -------------------------------------------------------------------------------- /Rooms/room36.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,1,2,3,4,5,6,7,8,9,10,11,12,13,14,1,2,3,4,5,6,7,8,9,10,11,12,13,14,1,2,3,4,5,6,7,8,9,10,11,12,13,14,1,6,7,8,9,10,11,12,13,14,1,2,3,4,5,6,7,8,9,10,11,12,13,14,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,8,9,1,2,3,4,5,6,8,1,2,8,8,13,14,8,10,11,12,13,14,8,9,10,11,12,13,14,8,9,10,11,12,13,14],"y":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,11,11,11,12,12,12,13,13,13,13,13,13,14,14,14,14,14,14,14,15,15,15,15,15,15,15],"wallx":[0,1,2,3,4,5,6,7,9,10,11,12,13,14,15,0,15,15,0,15,0,0,2,3,4,5,15,0,15,0,13,14,15,0,10,11,12,13,0,7,10,15,0,7,9,10,14,15,0,3,4,5,6,7,9,12,13,14,15,0,1,2,3,7,9,10,11,12,15,7,9,4,5,6,7,15,2,3,4,5,6,7,15,0,1,2,3,4,5,6,7,8,9,10,12,13,14,15],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,3,3,4,5,5,5,5,5,5,6,6,7,7,7,7,8,8,8,8,8,9,9,9,9,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,13,13,14,14,14,14,14,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],"doorx1":[8,0,15,15,11],"doory1":[0,2,4,13,16],"doorx2":[-1,-1,-1,-1,-1],"doory2":[-1,-1,-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room36.png -------------------------------------------------------------------------------- /Rooms/room37.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,9,10,1,2,3,4,5,6,9,10,1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,9,10,1,2,3,4,5,6,9,10,1,2,3,4,5,6,7,8,9,10],"y":[3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11],"wallx":[0,1,0,1,0,1,2,3,4,6,7,8,9,10,11,12,13,0,11,12,13,0,7,8,11,0,7,8,11,0,11,0,11,0,7,8,11,0,7,8,11,0,11,12,13,0,1,2,3,4,6,7,8,9,10,11,12,13,0,1,0,1],"wally":[0,0,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,14,14],"doorx1":[5,0,11,5],"doory1":[2,7,7,12],"doorx2":[-1,-1,-1,-1],"doory2":[-1,-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":1} -------------------------------------------------------------------------------- /Rooms/room37.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room37.png -------------------------------------------------------------------------------- /Rooms/room38.json: -------------------------------------------------------------------------------- 1 | {"x":[5,6,7,8,9,12,13,14,15,16,17,18,19,20,21,5,6,7,8,9,12,13,14,15,16,17,18,19,20,21,5,6,7,8,9,12,13,14,15,16,17,18,19,20,21,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,5,6,7,8,9,12,13,14,15,16,17,18,19,20,21,5,6,7,8,9,12,13,20,21,1,2,3,4,5,6,7,8,9,12,13,20,21,1,2,3,4,5,6,7,20,21,1,2,3,4,5,6,7,19,20,21,1,2,3,4,5,6,17,18,19,20,21,1,2,3,4,5,6,14,15,16,17,18,19,20,21,1,2,3,4,5,15,16,17,18,19,20,21,1,2,3,4,5],"y":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13],"wallx":[4,5,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,4,10,11,22,4,10,11,22,4,10,11,22,4,22,4,10,11,22,0,1,2,3,4,10,11,14,15,16,17,18,19,22,0,10,11,14,19,22,0,8,9,10,11,12,13,14,18,19,22,0,8,10,11,12,16,17,18,22,0,7,10,11,13,14,15,16,22,0,7,10,11,13,0,6,10,11,13,14,22,0,6,14,15,16,17,18,19,20,21,22,0,1,2,4,5],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,11,11,11,11,11,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14],"doorx1":[18,22,3],"doory1":[0,11,14],"doorx2":[-1,-1,-1],"doory2":[-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room38.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room38.png -------------------------------------------------------------------------------- /Rooms/room39.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,1,2,3,4,5,6,10,11,12,13,14,1,2,4,5,6,7,8,9,10,11,12,13,14,1,2,4,5,6,7,8,9,10,11,13,14,1,2,3,4,5,6,7,8,9,10,11,12,13,14,1,2,3,4,5,6,7,8,9,10,11,12,13,14,1,2,3,4,8,9,10,11,12,13,14,1,2,3,8,9,10,11,12,13,14],"y":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8],"wallx":[0,1,3,4,5,6,7,8,9,10,12,13,14,15,0,15,0,7,8,9,15,0,3,15,0,3,12,15,0,15,0,15,0,5,6,7,0,4,5,6,7,15,0,1,3,4,5,6,7,8,9,10,12,13,14,15],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,2,2,2,2,3,3,3,4,4,4,4,5,5,6,6,7,7,7,7,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9],"doorx1":[2,11,15,2,11],"doory1":[0,0,7,9,9],"doorx2":[-1,-1,-1,-1,-1],"doory2":[-1,-1,-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room39.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room39.png -------------------------------------------------------------------------------- /Rooms/room4.json: -------------------------------------------------------------------------------- 1 | {"x":[6,7,8,9,10,11,12,5,6,7,8,9,10,11,12,13,4,5,6,7,8,9,10,11,12,13,14,3,4,5,6,7,8,9,10,11,12,13,14,15,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,1,2,3,4,5,6,7,11,12,13,14,15,16,17,1,2,3,4,5,6,8,9,10,12,13,14,15,16,17,1,2,3,4,5,6,8,9,10,12,13,14,15,16,17,1,2,3,4,5,6,8,9,10,12,13,14,15,16,17,1,2,3,4,5,6,7,11,12,13,14,15,16,17,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,3,4,5,6,7,8,9,10,11,12,13,14,15,4,5,6,7,8,9,10,11,12,13,14,5,6,7,8,9,10,11,12,13,6,7,8,9,10,11,12],"y":[1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17],"wallx":[5,6,7,8,10,11,12,13,4,5,13,14,3,4,14,15,2,3,15,16,1,2,16,17,0,1,17,18,0,18,0,8,9,10,18,0,7,11,18,7,11,0,7,11,18,0,8,9,10,18,0,18,0,1,17,18,1,2,16,17,2,3,15,16,3,4,14,15,4,5,13,14,5,6,7,8,10,11,12,13],"wally":[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,7,7,7,7,7,8,8,8,8,9,9,10,10,10,10,11,11,11,11,11,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,18,18,18,18],"doorx1":[9,0,18,9],"doory1":[0,9,9,18],"doorx2":[-1,-1,-1,-1],"doory2":[-1,-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":2} -------------------------------------------------------------------------------- /Rooms/room4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room4.png -------------------------------------------------------------------------------- /Rooms/room40.json: -------------------------------------------------------------------------------- 1 | {"x":[3,4,5,6,7,11,12,13,17,18,19,20,21,3,4,5,6,7,11,12,13,17,18,19,20,21,3,4,5,6,7,11,12,13,17,18,19,20,21,3,4,5,11,12,13,17,18,19,20,21,5,11,12,13,19,11,12,13,19,5,11,12,13,19,11,12,13,19,2,3,5,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,5,11,12,13,19,5,11,12,13,19,5,11,12,13,19,5,11,12,13,19,3,4,5,6,7,11,12,13,17,18,19,20,21,3,4,5,6,7,11,12,13,17,18,19,20,21,3,4,5,6,7,11,12,13,17,18,19,20,21,3,4,5,6,7,11,12,13,17,18,19,20,21],"y":[1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,7,7,7,7,7,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,13,13,13,13,13,14,14,14,14,14,15,15,15,15,15,16,16,16,16,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19],"wallx":[2,3,4,5,6,7,8,10,11,13,14,16,17,18,19,20,21,22,2,8,10,14,16,22,2,8,10,14,16,22,2,8,10,14,16,22,2,6,7,8,10,14,16,22,2,3,4,6,7,8,10,14,16,17,18,20,21,22,4,5,6,10,14,18,20,4,6,10,14,18,20,0,1,2,3,4,5,6,7,8,9,10,14,15,16,17,18,20,21,22,23,24,0,1,4,6,24,0,24,0,1,2,3,4,6,7,8,9,10,14,15,16,17,18,20,21,22,23,24,4,6,10,14,18,20,4,6,10,14,18,20,2,3,4,6,7,8,10,14,16,17,18,20,21,22,2,8,10,14,16,22,2,8,10,14,16,22,2,8,10,14,16,22,2,8,10,14,16,22,2,3,4,5,6,7,8,10,11,13,14,16,17,18,19,20,21,22],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,17,17,17,17,17,17,18,18,18,18,18,18,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20],"doorx1":[12,0,24,12],"doory1":[0,10,10,20],"doorx2":[-1,-1,-1,-1],"doory2":[-1,-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room40.png -------------------------------------------------------------------------------- /Rooms/room41.json: -------------------------------------------------------------------------------- 1 | {"x":[3,4,5,6,7,8,9,3,4,5,6,7,8,9,3,4,5,6,7,8,9,6,6,6,6,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,6,6,6,6,3,4,5,6,7,8,9,3,4,5,6,7,8,9,3,4,5,6,7,8,9],"y":[2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,6,7,8,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,14,15,16,17,18,18,18,18,18,18,18,19,19,19,19,19,19,19,20,20,20,20,20,20,20],"wallx":[2,3,4,5,7,8,9,10,2,3,4,5,7,8,9,10,2,10,2,10,2,10,2,3,4,5,7,8,9,10,5,7,5,7,0,1,2,3,4,5,7,8,9,10,11,12,0,1,11,12,0,1,11,12,0,1,11,12,0,1,11,12,0,1,2,3,4,5,7,8,9,10,11,12,5,7,5,7,2,3,4,5,7,8,9,10,2,10,2,10,2,10,2,3,4,5,7,8,9,10,2,3,4,5,7,8,9,10],"wally":[0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,2,2,3,3,4,4,5,5,5,5,5,5,5,5,6,6,7,7,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,10,10,10,10,12,12,12,12,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,15,15,16,16,17,17,17,17,17,17,17,17,18,18,19,19,20,20,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22],"doorx1":[6,0,11,6],"doory1":[0,11,11,21],"doorx2":[6,1,12,6],"doory2":[1,11,11,22],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room41.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room41.png -------------------------------------------------------------------------------- /Rooms/room42.json: -------------------------------------------------------------------------------- 1 | {"x":[7,8,9,10,11,12,13,6,7,8,9,10,11,12,13,14,15,6,7,8,9,10,11,12,13,14,15,6,7,8,9,10,11,12,13,14,15,9,14,15,9,14,15,9,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,3,9,15,3,9,15,3,9,15,3,9,15,3,4,5,6,7,8,9,10,11,12,13,14,15,6,7,8,9,10,11,12,6,7,8,9,10,11,12],"y":[1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,5,5,5,6,6,6,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,14,14,14,15,15,15,16,16,16,17,17,17,17,17,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,19,19,19,19,19,19,19],"wallx":[5,6,7,8,10,11,12,13,5,6,14,15,16,5,16,5,16,5,16,5,6,7,8,10,11,12,13,16,8,10,13,16,0,1,2,3,4,5,6,7,8,10,11,12,13,16,17,18,0,18,0,18,0,18,0,18,0,1,2,4,5,6,7,8,10,11,12,13,14,16,17,18,2,4,8,10,14,16,2,4,8,10,14,16,2,4,5,6,7,8,10,11,12,13,14,16,2,16,2,3,4,5,13,14,15,16,5,13,5,6,7,8,10,11,12,13],"wally":[0,0,0,0,0,0,0,0,1,1,1,1,1,2,2,3,3,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,9,9,11,11,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,16,16,16,17,17,18,18,18,18,18,18,18,18,19,19,20,20,20,20,20,20,20,20],"doorx1":[9,0,18,9],"doory1":[0,10,10,20],"doorx2":[-1,-1,-1,-1],"doory2":[-1,-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room42.png -------------------------------------------------------------------------------- /Rooms/room43.json: -------------------------------------------------------------------------------- 1 | {"x":[7,8,9,10,11,12,13,7,8,9,10,11,12,13,14,15,16,17,9,10,11,12,13,14,15,16,17,9,10,11,12,13,14,15,16,17,10,16,17,10,16,17,10,16,17,10,16,17,2,3,9,10,11,12,13,14,15,16,17,18,19,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,3,10,17,17,17,17,11,12,13,17,11,12,13,14,15,16,17,11,12,13,11,12,13],"y":[1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,6,6,6,7,7,7,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,15,16,17,18,18,18,18,19,19,19,19,19,19,19,20,20,20,21,21,21],"wallx":[6,7,8,9,11,12,13,14,6,14,15,16,17,18,6,18,2,3,6,7,8,18,2,3,6,7,8,18,3,4,6,7,8,9,11,12,13,14,15,18,6,7,9,11,15,18,9,11,15,18,0,1,2,3,4,8,9,11,12,13,14,15,18,19,20,0,1,4,5,6,7,8,20,0,20,0,20,0,1,20,0,1,2,4,5,6,7,8,9,11,12,13,14,15,16,18,19,20,2,3,4,9,10,11,16,18,10,11,16,18,6,7,10,11,12,13,14,16,18,7,10,14,15,16,18,2,3,4,10,18,1,2,3,4,10,14,15,16,17,18,9,10,14,9,10,11,13,14],"wally":[0,0,0,0,0,0,0,0,1,1,1,1,1,1,2,2,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,12,12,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,17,17,18,18,18,18,18,18,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,21,21,21,22,22,22,22,22],"doorx1":[10,0,20,12],"doory1":[0,11,11,22],"doorx2":[-1,-1,-1,-1],"doory2":[-1,-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room43.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room43.png -------------------------------------------------------------------------------- /Rooms/room44.json: -------------------------------------------------------------------------------- 1 | {"x":[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10],"y":[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17],"wallx":[0,1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,19,20,0,1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,19,20,0,1,19,20,0,1,19,20,0,1,19,20,0,1,5,6,19,20,0,1,5,6,19,20,0,1,19,20,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,16,17,18,19,20,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,16,17,18,19,20,1,2,3,4,5,6,7,8,9,10,11,1,11,1,11,1,11,1,11,1,11],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12,12,13,13,14,14,15,15,16,16,17,17],"doorx1":[10,0,19,15],"doory1":[0,5,5,9],"doorx2":[10,1,20,15],"doory2":[1,5,5,10],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room44.png -------------------------------------------------------------------------------- /Rooms/room45.json: -------------------------------------------------------------------------------- 1 | {"x":[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2,3,4,7,8,9,10,11,12,13,14,15,16,17,18,19,2,3,4,7,8,9,10,11,12,13,14,15,16,17,18,19,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,13,14,15,16,17,18,19],"y":[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16],"wallx":[0,1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,19,20,0,1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,19,20,0,1,0,1,0,1,0,1,0,1,5,6,0,1,5,6,0,1,0,19,20,0,17,18,19,20,17,18,19,20,18,19,20,0,1,2,3,4,5,6,7,8,9,10,11,12,0,1,2,3,4,5,6,7,8,9,10,11,12],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,3,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,9,9,9,10,10,10,10,10,11,11,11,11,12,12,12,16,16,16,16,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17,17,17,17],"doorx1":[10],"doory1":[0],"doorx2":[10],"doory2":[1],"openconnectionsx":[20,20,20,20,20,20,20,0,0,0,20,0,20,0,20,20,13,14,15,16,17,18,19,20],"openconnectionsy":[2,3,4,5,6,7,8,11,12,13,13,14,14,15,15,16,17,17,17,17,17,17,17,17],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room45.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room45.png -------------------------------------------------------------------------------- /Rooms/room46.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8],"y":[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8],"wallx":[0,9,0,9],"wally":[0,0,9,9],"doorx1":[],"doory1":[],"doorx2":[],"doory2":[],"openconnectionsx":[1,2,3,4,5,6,7,8,0,9,0,9,0,9,0,9,0,9,0,9,0,9,0,9,1,2,3,4,5,6,7,8],"openconnectionsy":[0,0,0,0,0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,9,9,9,9,9,9],"rotation_type":2} -------------------------------------------------------------------------------- /Rooms/room46.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room46.png -------------------------------------------------------------------------------- /Rooms/room47.json: -------------------------------------------------------------------------------- 1 | {"x":[2,3,4,5,6,7,8,9,10,11,12,13,2,3,4,5,6,7,8,11,12,13,2,3,4,5,6,7,8,11,12,13,2,3,4,5,6,7,8,9,10,11,12,2,3,4,5,6,7,8,9,10,11,12,2,3,4,6,7,8,9,10,11,12,2,3,6,7,8,9,10,11,12,2,3,6,7,8,9,10,11,12,2,3,4,5,6,7,8,9,10,11,12],"y":[2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10],"wallx":[0,1,2,3,4,5,6,8,9,10,11,12,13,14,0,1,2,3,4,5,6,8,9,10,11,12,13,14,0,1,0,1,9,10,0,1,9,10,0,1,13,14,0,1,13,14,0,1,5,13,14,0,1,4,5,0,1,4,5,13,14,0,1,13,14,0,1,13,14],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,7,8,8,8,8,9,9,9,9,9,9,10,10,10,10,11,11,11,11],"doorx1":[7,13],"doory1":[0,8],"doorx2":[7,14],"doory2":[1,8],"openconnectionsx":[14,14,14,2,3,4,5,6,7,8,9,10,11,12],"openconnectionsy":[2,3,4,11,11,11,11,11,11,11,11,11,11,11],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room47.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room47.png -------------------------------------------------------------------------------- /Rooms/room48.json: -------------------------------------------------------------------------------- 1 | {"x":[2,3,4,5,6,7,8,9,10,11,12,13,14,2,3,4,5,6,7,8,9,10,11,12,13,14,2,3,4,5,6,7,8,9,10,11,12,13,14,2,3,4,5,6,7,8,9,10,11,12,13,14,2,3,4,5,6,7,8,9,10,11,12,13,14,2,3,4,5,6,7,8,9,10,11,12,13,14,2,3,4,5,6,10,11,12,13,14,2,3,4,5,11,12,13,14,2,3,4,11,12,13,14,2,3,4,11,12,13,14,2,3,11,12,13,14],"y":[2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,11,11,11,11,11,11,11,12,12,12,12,12,12],"wallx":[0,1,2,3,4,5,6,7,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7,9,10,11,12,13,14,15,0,1,0,1,0,1,0,1,0,1,15,16,17,18,15,16,17,18,0,1,0,1,0,1,0,1,0,1,0,1,2,3,4,10,11,12,13,14,15,0,1,2,3,11,12,13,14,15],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,3,3,4,4,5,5,6,6,6,6,6,6,7,7,7,7,8,8,9,9,10,10,11,11,12,12,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14],"doorx1":[8,0],"doory1":[0,7],"doorx2":[8,1],"doory2":[1,7],"openconnectionsx":[15,15,15,15,7,8,9,15,6,10,15,5,10,15,5,10,15,4,10,15],"openconnectionsy":[2,3,4,5,8,8,8,8,9,9,9,10,10,10,11,11,11,12,12,12],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room48.png -------------------------------------------------------------------------------- /Rooms/room49.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,16,17,18,19,1,2,3,4,16,17,18,19,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,1,2,3,4,16,17,18,19,1,2,3,4,16,17,18,19,1,2,3,4,16,17,18,19,1,2,3,4,16,17,18,19,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,1,2,3,4,16,17,18,19,1,2,3,4,16,17,18,19,1,2,3,4,16,17,18,19,1,2,3,4,16,17,18,19,1,2,3,4,16,17,18,19,1,2,3,4,16,17,18,19,1,2,3,4,16,17,18,19,1,2,3,4,16,17,18,19],"y":[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19],"wallx":[0,1,2,3,4,5,15,16,17,18,19,20,5,15,5,6,7,8,9,10,11,12,13,14,15,5,6,7,8,9,10,11,12,13,14,15,5,15,5,15,5,6,7,8,9,10,11,12,13,14,15,5,6,7,13,14,15,5,15,5,15,5,15,5,15,5,15,5,15,5,15,0,1,2,3,4,5,15,16,17,18,19,20],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,2,2,2,2,2,2,2,2,2,2,5,5,5,5,5,5,5,5,5,5,5,6,6,7,7,8,8,8,8,8,8,8,8,8,8,8,12,12,12,12,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20,20,20,20,20,20,20,20,20,20,20],"doorx1":[],"doory1":[],"doorx2":[],"doory2":[],"openconnectionsx":[0,20,0,20,0,20,0,20,0,20,0,20,0,20,0,20,0,20,0,20,0,20,0,8,9,10,11,12,20,0,20,0,20,0,20,0,20,0,20,0,20,0,20],"openconnectionsy":[1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,12,12,12,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19],"rotation_type":1} -------------------------------------------------------------------------------- /Rooms/room49.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room49.png -------------------------------------------------------------------------------- /Rooms/room5.json: -------------------------------------------------------------------------------- 1 | {"x":[2,3,4,5,6,7,8,9,10,11,12,2,3,4,5,6,7,8,9,10,11,12,2,3,4,5,6,7,8,9,10,11,12,2,3,4,5,6,7,2,3,4,5,6,7,2,3,4,5,6,7,2,3,4,5,6,7,2,3,4,5,6,7,2,3,4,5,6,7,2,3,4,5,6,7,2,3,4,5,6,7],"y":[2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,8,8,9,9,9,9,9,9,10,10,10,10,10,10,11,11,11,11,11,11,12,12,12,12,12,12],"wallx":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,0,1,13,14,0,1,13,14,0,1,8,9,10,11,12,13,14,0,1,8,9,10,11,12,13,14,0,1,8,9,0,1,8,9,0,1,8,9,0,1,8,9,0,1,8,9,0,1,8,9,0,1,2,3,5,6,7,8,9,0,1,2,3,5,6,7,8,9],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14],"doorx1":[0,13,4],"doory1":[3,3,13],"doorx2":[1,14,4],"doory2":[3,3,14],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room5.png -------------------------------------------------------------------------------- /Rooms/room50.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9],"y":[1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,9,9,9,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,13,13,13,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21],"wallx":[0,1,2,3,4,5,6,7,8,9,10,4,5,6,7,8,9,10,0,1,2,3,4,5,6,4,5,6,7,8,9,10,0,1,2,3,4,5,6,0,1,2,3,4,5,6,7,8,9,10],"wally":[0,0,0,0,0,0,0,0,0,0,0,5,5,5,5,5,5,5,9,9,9,9,9,9,9,13,13,13,13,13,13,13,17,17,17,17,17,17,17,22,22,22,22,22,22,22,22,22,22,22],"doorx1":[],"doory1":[],"doorx2":[],"doory2":[],"openconnectionsx":[0,10,0,10,0,10,0,10,0,0,10,0,10,0,10,10,0,10,0,10,0,10,0,0,10,0,10,0,10,10,0,10,0,10,0,10,0,10],"openconnectionsy":[1,1,2,2,3,3,4,4,5,6,6,7,7,8,8,9,10,10,11,11,12,12,13,14,14,15,15,16,16,17,18,18,19,19,20,20,21,21],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room50.png -------------------------------------------------------------------------------- /Rooms/room51.json: -------------------------------------------------------------------------------- 1 | {"x":[2,3,4,5,6,7,8,9,2,3,4,5,6,7,8,9,10,11,12,2,3,4,5,6,7,8,9,10,11,12,2,3,4,5,6,7,8,9,10,11,12,2,3,4,5,6,7,8,2,3,4,5,6,7,8,2,3,4,5,6,7,8,2,3,4,5,6,7,8,2,3,4,5,6,7,8,2,3,4,5,6,7,8,2,3,4,5,6,7,8,2,3,4,5,6,7,8],"y":[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,8,8,8,8,9,9,9,9,9,9,9,10,10,10,10,10,10,10,11,11,11,11,11,11,11,12,12,12,12,12,12,12],"wallx":[0,1,7,8,9,10,11,12,13,14,0,1,10,11,12,13,14,0,1,13,14,13,14,0,1,13,14,0,1,9,10,11,12,13,14,0,1,9,10,11,12,13,14,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,5,6,7,8,9,0,1,2,3,5,6,7,8,9],"wally":[0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,2,2,2,2,3,3,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14],"doorx1":[0,4],"doory1":[3,13],"doorx2":[1,4],"doory2":[3,14],"openconnectionsx":[2,3,4,5,6,9,9,9,9,9,9],"openconnectionsy":[0,0,0,0,0,7,8,9,10,11,12],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room51.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room51.png -------------------------------------------------------------------------------- /Rooms/room52.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,1,2,3,4,5,6,7,8,9,10,11,12,13,14,1,2,3,4,5,6,7,8,9,10,11,12,13,14,1,2,3,4,5,6,7,8,9,10,11,12,13,14,1,2,3,4,5,6,7,8,9,10,11,12,13,14,2,3,4,8,9,10,11,12,13,14,2,3,4,8,9,10,11,12,13,14,2,3,4,8,9,10,11,12,13,14,2,3,4,8,9,10,11,12,13,14,2,3,4,8,9,10,11,12,13,14,2,3,4,8,9,10,11,12,13,14,2,3,4,8,9,10,11,12,13,14,2,3,4,8,9,10,11,12,13,14,8,9,10,11,12,13,14],"y":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14],"wallx":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0,0,0,0,0,0,1,5,6,7,1,5,7,1,5,7,1,5,7,1,5,7,1,5,7,1,5,7,1,5,7,1,5,7,7,8,9,10,11,12,13,14,15],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,6,6,6,6,7,7,7,8,8,8,9,9,9,10,10,10,11,11,11,12,12,12,13,13,13,14,14,14,15,15,15,15,15,15,15,15,15],"doorx1":[],"doory1":[],"doorx2":[],"doory2":[],"openconnectionsx":[15,15,15,15,15,15,15,15,15,15,15,15,15,2,3,4,15],"openconnectionsy":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,14,14,14],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room52.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room52.png -------------------------------------------------------------------------------- /Rooms/room53.json: -------------------------------------------------------------------------------- 1 | {"x":[3,4,5,6,7,8,9,3,4,5,6,7,8,9,3,4,5,6,7,8,9,3,4,5,6,7,8,9,6,6,6,6,1,2,3,4,5,6,7,8,9,10,11,1,2,3,4,5,6,7,8,9,10,11,1,2,3,4,5,6,7,8,9,10,11,1,2,3,4,5,6,7,8,9,10,11,1,2,3,4,5,6,7,8,9,10,11,6,6,6,6,3,4,5,6,7,8,9,3,4,5,6,7,8,9,3,4,5,6,7,8,9,3,4,5,6,7,8,9],"y":[1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,6,7,8,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,14,15,16,17,18,18,18,18,18,18,18,19,19,19,19,19,19,19,20,20,20,20,20,20,20,21,21,21,21,21,21,21],"wallx":[2,3,4,5,6,7,8,9,10,2,3,4,5,7,8,9,10,5,7,5,7,0,1,2,3,4,5,7,8,9,10,11,12,0,1,2,3,4,5,7,8,9,10,11,12,5,7,5,7,2,3,4,5,7,8,9,10,2,3,4,5,6,7,8,9,10],"wally":[0,0,0,0,0,0,0,0,0,5,5,5,5,5,5,5,5,6,6,7,7,8,8,8,8,8,8,8,8,8,8,8,8,14,14,14,14,14,14,14,14,14,14,14,14,15,15,16,16,17,17,17,17,17,17,17,17,22,22,22,22,22,22,22,22,22],"doorx1":[],"doory1":[],"doorx2":[],"doory2":[],"openconnectionsx":[2,10,2,10,2,10,2,10,0,12,0,12,0,12,0,12,0,12,2,10,2,10,2,10,2,10],"openconnectionsy":[1,1,2,2,3,3,4,4,9,9,10,10,11,11,12,12,13,13,18,18,19,19,20,20,21,21],"rotation_type":2} -------------------------------------------------------------------------------- /Rooms/room53.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room53.png -------------------------------------------------------------------------------- /Rooms/room54.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,6,7,1,2,3,4,5,6,7,2,3,4,5,6,2,3,4,5,6,2,3,4,5,6,1,2,3,4,5,6,7,1,2,6,7],"y":[1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7],"wallx":[0,3,4,5,8,3,4,5,0,1,7,8,0,1,7,8,0,1,7,8,3,4,5,0,3,4,5,8],"wally":[0,0,0,0,0,1,1,1,3,3,3,3,4,4,4,4,5,5,5,5,7,7,7,8,8,8,8,8],"doorx1":[],"doory1":[],"doorx2":[],"doory2":[],"openconnectionsx":[1,2,6,7,0,8,0,8,0,8,0,8,1,2,6,7],"openconnectionsy":[0,0,0,0,1,1,2,2,6,6,7,7,8,8,8,8],"rotation_type":2} -------------------------------------------------------------------------------- /Rooms/room54.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room54.png -------------------------------------------------------------------------------- /Rooms/room55.json: -------------------------------------------------------------------------------- 1 | {"x":[11,12,13,14,15,16,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,2,3,11,12,13,14,15,16,2,3,5,6,7,8,9,2,3,5,6,7,8,9,10,11,2,3,5,6,7,8,9,10,11,2,3,5,6,7,8,9,11,1,2,3,11,1,2,3,4,5,11,1,2,3,4,5,11,1,2,3,4,5,6,7,8,9,10,11,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5],"y":[1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,11,11,11,11,11,11,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,15,15,15,15,15,16,16,16,16,16],"wallx":[9,10,17,1,5,6,7,8,9,10,1,4,5,6,7,8,9,10,1,4,10,11,12,13,14,15,16,17,1,4,12,1,4,12,0,1,4,10,12,4,5,6,7,8,9,10,12,6,10,6,7,8,9,10,6,7,8,12,6,6,0,6],"wally":[0,0,0,1,1,1,1,1,1,1,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,7,7,7,8,8,8,9,9,9,9,9,10,10,10,10,10,10,10,10,11,11,12,12,12,12,12,14,14,14,14,15,16,17,17],"doorx1":[],"doory1":[],"doorx2":[],"doory2":[],"openconnectionsx":[11,12,13,14,15,16,2,3,4,17,1,17,1,17,1,17,17,0,0,12,0,12,0,12,0,9,10,11,0,0,1,2,3,4,5],"openconnectionsy":[0,0,0,0,0,0,1,1,1,1,2,2,3,3,4,4,5,10,11,11,12,12,13,13,14,14,14,14,15,16,17,17,17,17,17],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room55.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room55.png -------------------------------------------------------------------------------- /Rooms/room56.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,15,1,2,3,4,5,6,7,8,9,10,11,15,1,2,3,4,5,6,7,8,9,10,11,12,15,1,2,3,4,5,6,7,8,9,10,11,12,15,3,4,10,11,12,15,3,4,10,11,12,15,3,4,10,11,12,13,14,15,3,4,10,11,12,13,14,15,1,2,3,4,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,9,10,11,12,13,14,15,1,2,3,4,9,10,11,12,13,14,15],"y":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15],"wallx":[0,16,0,0,12,13,14,0,12,13,14,0,13,14,0,13,14,0,1,2,5,6,7,8,9,13,14,2,5,9,13,14,2,5,9,0,1,2,5,9,5,6,7,8,9,5,6,7,8,5,8,0,5,8,9,10,11,12,13,14,15,16],"wally":[0,0,1,2,2,2,2,3,3,3,3,4,4,4,5,5,5,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,8,8,8,9,9,9,9,9,10,10,10,10,10,14,14,14,14,15,15,16,16,16,16,16,16,16,16,16,16,16],"doorx1":[],"doory1":[],"doorx2":[],"doory2":[],"openconnectionsx":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,16,16,16,16,16,16,16,16,0,16,0,16,0,16,0,16,0,16,0,16,1,2,3,4],"openconnectionsy":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,16,16],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room56.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room56.png -------------------------------------------------------------------------------- /Rooms/room57.json: -------------------------------------------------------------------------------- 1 | {"x":[7,8,9,7,8,9,14,15,16,7,8,9,14,15,16,2,3,4,5,6,7,8,9,10,11,12,14,15,16,2,3,4,5,6,7,8,9,10,11,12,14,15,16,2,3,4,5,6,7,8,9,10,11,12,14,15,16,7,11,12,13,14,15,16,4,5,6,7,10,11,12,13,14,15,16,4,5,6,7,10,11,12,4,5,6,7,10,11,12,4,5,6,7,12,4,5,6,7,12,13,14,15,16,17,4,12,13,14,15,16,17,4,12,13,14,15,16,17,1,2,3,4,12,13,14,15,16,17,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,1,2,3,4,12,13,14,15,16,17],"y":[1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,10,10,10,10,10,10,10,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17],"wallx":[6,10,17,1,6,10,13,13,13,13,1,3,4,5,6,8,9,10,8,9,8,9,13,17,8,9,8,9,10,11,13,18,8,11,5,6,7,8,11,0,3,5,11,5,6,7,8,9,10,11,5,11,0,5,11,18],"wally":[0,0,1,3,3,3,3,4,5,6,7,7,7,7,7,7,7,7,8,8,9,9,9,9,10,10,11,11,11,11,11,11,12,12,13,13,13,13,13,14,14,14,14,15,15,15,15,15,15,15,17,17,18,18,18,18],"doorx1":[],"doory1":[],"doorx2":[],"doory2":[],"openconnectionsx":[7,8,9,6,10,13,14,15,16,6,10,13,17,2,3,4,5,11,12,17,1,17,1,17,1,17,2,17,3,17,3,14,15,16,3,13,3,14,15,16,17,3,18,3,18,1,2,18,0,18,0,18,0,6,7,8,9,10,18,1,2,3,4,12,13,14,15,16,17],"openconnectionsy":[0,0,0,1,1,1,1,1,1,2,2,2,2,3,3,3,3,3,3,3,4,4,5,5,6,6,7,7,8,8,9,9,9,9,10,10,11,11,11,11,11,12,12,13,13,14,14,14,15,15,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,18],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room57.png -------------------------------------------------------------------------------- /Rooms/room6.json: -------------------------------------------------------------------------------- 1 | {"x":[8,9,10,11,12,13,14,8,9,10,11,12,13,14,8,9,10,11,12,13,14,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,8,9,10,11,12,13,14,8,9,10,11,12,13,14,8,9,10,11,12,13,14],"y":[2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,14,14,14,14,14,14,14,15,15,15,15,15,15,15],"wallx":[6,7,8,9,10,11,12,13,14,15,16,6,7,8,9,10,11,12,13,14,15,16,6,7,15,16,0,1,2,3,4,5,6,7,15,16,17,18,19,0,1,2,3,4,5,6,7,15,16,17,18,19,0,1,18,19,0,1,18,19,0,1,18,19,0,1,18,19,0,1,18,19,0,1,18,19,0,1,18,19,0,1,2,3,4,5,6,7,15,16,17,18,19,0,1,2,3,4,5,6,7,15,16,17,18,19,6,7,15,16,6,7,8,9,10,11,12,13,14,15,16,6,7,8,9,10,11,12,13,14,15,16],"wally":[0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17,17],"doorx1":[0,18],"doory1":[9,9],"doorx2":[1,19],"doory2":[9,9],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room6.png -------------------------------------------------------------------------------- /Rooms/room7.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,7,8,9,10,11,12,13,1,2,3,4,5,6,7,8,9,10,11,12,13,1,2,3,4,5,6,7,8,9,10,11,12,13,1,2,3,4,5,6,7,8,9,10,11,12,13,1,2,3,4,5,6,7,8,9,10,11,12,13,1,2,3,4,5,6,7,8,9,10,11,12,13,1,2,3,4,5,6,7,8,9,10,11,12,13,1,2,3,4,5,6,7,8,9,10,11,12,13,4,10,4,10,4,10,1,2,3,4,5,6,7,8,9,10,11,12,13,1,2,3,4,5,6,7,8,9,10,11,12,13,1,2,3,4,5,6,7,8,9,10,11,12,13,1,2,3,4,5,6,7,8,9,10,11,12,13,4,5,6,7,8,9,10,4,5,6,7,8,9,10],"y":[1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,10,10,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,17,17,17,17,17,17,17],"wallx":[0,1,2,3,5,6,7,8,9,11,12,13,14,0,14,0,14,0,14,0,14,0,14,0,14,0,14,0,1,2,3,5,6,7,8,9,11,12,13,14,3,5,9,11,0,1,2,3,5,6,7,8,9,11,12,13,14,0,14,0,14,0,14,0,1,2,3,11,12,13,14,3,11,3,4,5,6,7,8,9,10,11],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,2,3,3,5,5,6,6,7,7,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,14,14,15,15,16,16,16,16,16,16,16,16,17,17,18,18,18,18,18,18,18,18,18],"doorx1":[4,10,0,14,0,14],"doory1":[0,0,4,4,13,13],"doorx2":[-1,-1,-1,-1,-1,-1],"doory2":[-1,-1,-1,-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":1} -------------------------------------------------------------------------------- /Rooms/room7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room7.png -------------------------------------------------------------------------------- /Rooms/room8.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,2,3,4,5,6,7,8,9,10,11,12,3,4,5,6,7,8,9,10,11,12,4,5,8,11,12,4,5,7,8,9,11,12,4,5,7,8,9,11,12,4,5,7,8,9,11,12,4,5,11,12,4,5,6,7,8,9,10,11,12,4,5,6,7,8,9,10,11,12],"y":[1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,8,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10],"wallx":[0,1,2,3,5,6,7,8,9,10,12,13,14,0,3,5,6,7,8,9,10,12,13,14,0,1,13,14,1,2,13,14,2,3,6,7,9,10,13,14,3,6,10,13,14,3,6,10,3,6,10,13,14,3,6,7,8,9,10,13,14,3,13,14,3,13,14,3,5,6,7,8,9,10,12,13,14,3,5,6,7,8,9,10,12,13,14],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,10,10,10,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12],"doorx1":[4,11,13,4,11],"doory1":[0,0,6,11,11],"doorx2":[4,11,14,4,11],"doory2":[1,1,6,12,12],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room8.png -------------------------------------------------------------------------------- /Rooms/room9.json: -------------------------------------------------------------------------------- 1 | {"x":[2,3,4,5,6,7,8,9,10,2,3,9,10,2,3,4,5,6,7,8,9,10,2,3,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,5,6,7,9,10,2,3,5,6,7,9,10,2,3,5,6,7,9,10,2,3,6,9,10,2,3,4,5,6,7,8,9,10],"y":[2,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,9,9,9,9,9,9,9,10,10,10,10,10,10,10,11,11,11,11,11,12,12,12,12,12,12,12,12,12],"wallx":[0,1,2,3,4,5,7,8,9,10,11,12,0,1,2,3,4,5,7,8,9,10,11,12,0,1,11,12,0,1,4,5,6,7,8,11,12,0,1,11,12,4,5,6,7,8,0,1,11,12,0,1,11,12,0,1,4,8,11,12,0,1,4,8,11,12,0,1,4,8,11,12,0,1,4,5,7,8,11,12,0,1,11,12,0,1,2,3,4,5,7,8,9,10,11,12,0,1,2,3,4,5,7,8,9,10,11,12],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,9,9,9,9,9,9,10,10,10,10,10,10,11,11,11,11,11,11,11,11,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14],"doorx1":[6,0,11,6],"doory1":[0,5,5,13],"doorx2":[6,1,12,6],"doory2":[1,5,5,14],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/room9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/room9.png -------------------------------------------------------------------------------- /Rooms/shop0.json: -------------------------------------------------------------------------------- 1 | {"x":[4,5,6,7,8,3,4,5,6,7,8,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8],"y":[1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8],"wallx":[0,1,2,3,4,6,7,8,9,0,1,2,3,9,0,1,2,9,0,1,9,0,9,0,9,0,9,0,9,0,1,2,3,4,6,7,8,9],"wally":[0,0,0,0,0,0,0,0,0,1,1,1,1,1,2,2,2,2,3,3,3,5,5,6,6,7,7,8,8,9,9,9,9,9,9,9,9,9],"doorx1":[5,0,9,5],"doory1":[0,4,4,9],"doorx2":[-1,-1,-1,-1],"doory2":[-1,-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/shop0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/shop0.png -------------------------------------------------------------------------------- /Rooms/shop1.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,5,6,1,2,6,1,2,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6],"y":[1,1,1,1,1,1,2,2,2,3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,8,8,9,9,9,9,9,9,10,10,10,10,10,10],"wallx":[0,1,2,3,4,5,6,7,7,0,3,4,5,7,0,3,4,5,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,1,2,3,4,5,7],"wally":[0,0,0,0,0,0,0,0,1,2,2,2,2,2,3,3,3,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,11,11,11,11,11],"doorx1":[0,6],"doory1":[1,11],"doorx2":[-1,-1],"doory2":[-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":0} -------------------------------------------------------------------------------- /Rooms/shop1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/shop1.png -------------------------------------------------------------------------------- /Rooms/treasure0.json: -------------------------------------------------------------------------------- 1 | {"x":[1,3,4,5,6,7,8,9,11,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,10,11,1,2,3,6,9,10,11,1,2,3,5,6,7,9,10,11,1,2,3,4,5,6,7,8,9,10,11,1,2,3,5,6,7,9,10,11,1,2,3,6,9,10,11,1,2,3,4,5,6,7,8,9,10,11,3,4,5,6,7,8,9,1,3,4,5,6,7,8,9,11],"y":[1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11],"wallx":[0,1,2,3,4,5,7,8,9,10,11,12,0,2,10,12,0,1,2,10,11,12,0,12,0,4,5,7,8,12,0,4,8,12,0,4,8,12,0,4,5,7,8,12,0,12,0,1,2,10,11,12,0,2,10,12,0,1,2,3,4,5,7,8,9,10,11,12],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,2,2,3,3,4,4,4,4,4,4,5,5,5,5,7,7,7,7,8,8,8,8,8,8,9,9,10,10,10,10,10,10,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12],"doorx1":[6,0,12,6],"doory1":[0,6,6,12],"doorx2":[-1,-1,-1,-1],"doory2":[-1,-1,-1,-1],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":2} -------------------------------------------------------------------------------- /Rooms/treasure0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/treasure0.png -------------------------------------------------------------------------------- /Rooms/treasure1.json: -------------------------------------------------------------------------------- 1 | {"x":[1,2,3,4,8,9,10,11,1,2,3,4,6,8,9,10,11,1,2,3,4,6,8,9,10,11,1,2,3,4,5,6,7,8,9,10,11,3,4,6,8,9,1,2,3,4,5,6,7,8,9,10,11,1,2,3,4,5,6,7,8,9,10,11,1,2,3,4,5,6,7,8,9,10,11,3,4,6,8,9,1,2,3,4,5,6,7,8,9,10,11,1,2,3,4,6,8,9,10,11,1,2,3,4,6,8,9,10,11,1,2,3,4,8,9,10,11],"y":[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13],"wallx":[0,1,2,3,4,5,7,8,9,10,11,12,0,5,7,12,0,5,7,12,0,5,7,12,0,12,0,1,2,5,7,10,11,12,0,12,0,12,0,1,2,5,7,10,11,12,0,12,0,5,7,12,0,5,7,12,0,5,7,12,0,1,2,3,4,5,7,8,9,10,11,12],"wally":[0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,5,5,5,5,5,5,5,5,6,6,8,8,9,9,9,9,9,9,9,9,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14],"doorx1":[6,0,12,6],"doory1":[0,7,7,13],"doorx2":[6,-1,-1,6],"doory2":[1,-1,-1,14],"openconnectionsx":[],"openconnectionsy":[],"rotation_type":1} -------------------------------------------------------------------------------- /Rooms/treasure1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedBreadcat/SpaghettiDungeonGenerator/1153dd8f26dfd835ca70c520e735f199f50ef858/Rooms/treasure1.png -------------------------------------------------------------------------------- /SpaghettiDungeonGen/BoringAreaRemover.cpp: -------------------------------------------------------------------------------- 1 | #include "BoringAreaRemover.h" 2 | #include "Map.h" 3 | #include 4 | #include 5 | 6 | extern Map m; 7 | 8 | BoringAreaRemover::BoringAreaRemover() 9 | { 10 | SetSize(m.width, m.height); 11 | 12 | for (int j = 0; j < height; j++) 13 | { 14 | for (int i = 0; i < width; i++) 15 | { 16 | Set(i, j, INT_MAX); 17 | } 18 | } 19 | } 20 | 21 | void BoringAreaRemover::Run() 22 | { 23 | //Calculate distance map 24 | for (int j = 0; j < height; j++) 25 | { 26 | for (int i = 0; i < width; i++) 27 | { 28 | TileType type = m.Get(i, j).type; 29 | if (type == TileType::CorridorDilatedToMaximumPreviouslyWFC || type == TileType::CorridorFloor) 30 | { 31 | FloodFillToProduceDistanceMap({ i, j }); 32 | } 33 | } 34 | } 35 | 36 | //If distance above threshold value, and is boring, make tile a wall 37 | for (int j = 0; j < height; j++) 38 | { 39 | for (int i = 0; i < width; i++) 40 | { 41 | //todo: make IsTileBoring() function 42 | TileType type = m.Get(i, j).type; 43 | if (type == TileType::Nothing || type == TileType::CorridorDilatedToMaximum) 44 | { 45 | int distance = Get(i, j); 46 | //INT_MAX is untouched by the algorithm, and so can't really be classified as boring 47 | //It could be the little nooks and crannies of empty space inside/between rooms, which we would like to keep 48 | if (distance != INT_MAX && distance > 10) 49 | { 50 | m.Set(i, j, Tile(TileType::FreeWall)); 51 | } 52 | } 53 | } 54 | } 55 | } 56 | 57 | void BoringAreaRemover::FloodFillToProduceDistanceMap(Coord start) 58 | { 59 | std::queue> to_update; //coord, distance 60 | to_update.push({ start, 0 }); 61 | 62 | auto check_neighbour_and_push = 63 | [&](Coord neighbour, int distance) 64 | { 65 | if (IsValid(neighbour)) 66 | { 67 | TileType type = m.Get(neighbour).type; 68 | if (type == TileType::Nothing || type == TileType::CorridorDilatedToMaximum) 69 | { 70 | if (Get(neighbour) > distance) 71 | { 72 | Set(neighbour, distance); 73 | to_update.push({ neighbour, distance }); 74 | } 75 | } 76 | } 77 | }; 78 | 79 | while (!to_update.empty()) 80 | { 81 | auto [coord, distance] = to_update.front(); 82 | to_update.pop(); 83 | 84 | distance++; 85 | check_neighbour_and_push(coord + Coord{ -1, 0 }, distance); 86 | check_neighbour_and_push(coord + Coord{ 1, 0 }, distance); 87 | check_neighbour_and_push(coord + Coord{ 0, -1 }, distance); 88 | check_neighbour_and_push(coord + Coord{ 0, 1 }, distance); 89 | } 90 | } -------------------------------------------------------------------------------- /SpaghettiDungeonGen/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.15) 2 | 3 | project(SpaghettiDungeonGen) 4 | set(CMAKE_CXX_STANDARD 17) 5 | 6 | set(Boost_USE_MULTITHREADED ON) 7 | 8 | find_package(OpenCV REQUIRED COMPONENTS core imgproc highgui) 9 | find_package(Boost REQUIRED COMPONENTS filesystem random) 10 | include_directories(${OpenCV_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}) 11 | 12 | file(GLOB SOURCES include/*.h *.cpp) 13 | 14 | add_executable(SpaghettiDungeonGen ${SOURCES}) 15 | 16 | target_include_directories(SpaghettiDungeonGen PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include) 17 | target_link_libraries(SpaghettiDungeonGen ${OpenCV_LIBS} ${Boost_LIBRARIES}) -------------------------------------------------------------------------------- /SpaghettiDungeonGen/ConnectionNode.cpp: -------------------------------------------------------------------------------- 1 | #include "ConnectionNode.h" 2 | 3 | ConnectionNode::~ConnectionNode() 4 | { 5 | } 6 | 7 | bool ConnectionNode::operator==(const ConnectionNode& other) const 8 | { 9 | return this == &other; 10 | } 11 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/ConnectionNodeFilteredCollection.cpp: -------------------------------------------------------------------------------- 1 | #include "ConnectionNodeFilteredCollection.h" 2 | #include "Map.h" 3 | #include "DRandom.h" 4 | 5 | extern Map m; 6 | 7 | template 8 | ConnectionNodeFilteredIterator ConnectionNodeFilteredCollection::begin() 9 | { 10 | return ConnectionNodeFilteredIterator(m.nodes.begin()); 11 | } 12 | 13 | template 14 | ConnectionNodeFilteredIterator ConnectionNodeFilteredCollection::end() 15 | { 16 | return ConnectionNodeFilteredIterator(m.nodes.end()); 17 | } 18 | 19 | template 20 | T& ConnectionNodeFilteredCollection::recent() 21 | { 22 | return *begin(); //Doesn't simply return the first in the list. It returns the first corridor or room depending 23 | } 24 | 25 | template 26 | T& ConnectionNodeFilteredCollection::random() 27 | { 28 | int increments = DRandom::instance->GetInt(0, size - 1); 29 | 30 | ConnectionNodeFilteredIterator iter = begin(); 31 | while (increments > 0) 32 | { 33 | ++iter; 34 | increments--; 35 | } 36 | return *iter; 37 | } 38 | 39 | //Normally, templates must be defined purely in header files 40 | //However, I like .cpp files. 41 | //If you know which types will be used, a non-hacky workaround is possible: https://stackoverflow.com/questions/115703/storing-c-template-function-definitions-in-a-cpp-file 42 | template class ConnectionNodeFilteredCollection; 43 | template class ConnectionNodeFilteredCollection; -------------------------------------------------------------------------------- /SpaghettiDungeonGen/ConnectionNodeFilteredIterator.cpp: -------------------------------------------------------------------------------- 1 | #include "ConnectionNodeFilteredIterator.h" 2 | #include "Map.h" 3 | 4 | extern Map m; 5 | 6 | template 7 | ConnectionNodeFilteredIterator::ConnectionNodeFilteredIterator(list_iter element_in) 8 | { 9 | element = element_in; 10 | list_iter end = m.nodes.end(); 11 | 12 | while (element != end) 13 | { 14 | if (dynamic_cast(element->get())) 15 | { 16 | break; 17 | } 18 | else 19 | { 20 | element++; 21 | } 22 | } 23 | } 24 | 25 | template 26 | ConnectionNodeFilteredIterator ConnectionNodeFilteredIterator::operator++() 27 | { 28 | list_iter end = m.nodes.end(); 29 | 30 | while (true) 31 | { 32 | element++; 33 | if (element == end || dynamic_cast(element->get())) 34 | { 35 | return *this; 36 | } 37 | } 38 | } 39 | 40 | template 41 | bool ConnectionNodeFilteredIterator::operator==(const ConnectionNodeFilteredIterator & other) 42 | { 43 | return element == other.element; 44 | } 45 | 46 | template 47 | bool ConnectionNodeFilteredIterator::operator!=(const ConnectionNodeFilteredIterator& other) 48 | { 49 | return element != other.element; 50 | } 51 | 52 | template 53 | T& ConnectionNodeFilteredIterator::operator*() 54 | { 55 | return *(T*)element->get(); 56 | } 57 | 58 | //Normally, templates must be defined purely in header files 59 | //However, I like .cpp files. 60 | //If you know which types will be used, a non-hacky workaround is possible: https://stackoverflow.com/questions/115703/storing-c-template-function-definitions-in-a-cpp-file 61 | template class ConnectionNodeFilteredIterator; 62 | template class ConnectionNodeFilteredIterator; 63 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/ConnectionNodeWrapper.cpp: -------------------------------------------------------------------------------- 1 | #include "ConnectionNodeWrapper.h" 2 | #include 3 | #include 4 | 5 | ConnectionNodeWrapper::ConnectionNodeWrapper(int id_in, ConnectionNode& node_in) : node_ref(std::ref(node_in)) 6 | { 7 | id = id_in; 8 | } 9 | 10 | ConnectionNodeWrapper& ConnectionNodeWrapper::operator=(const ConnectionNodeWrapper& other) 11 | { 12 | this->id = other.id; 13 | this->node_ref = std::ref(other.node_ref.get()); 14 | return *this; 15 | } 16 | 17 | bool ConnectionNodeWrapper::operator==(const ConnectionNodeWrapper& other) const 18 | { 19 | return id == other.id; 20 | } 21 | 22 | bool ConnectionNodeWrapper::operator!=(const ConnectionNodeWrapper& other) const 23 | { 24 | return id != other.id; 25 | } 26 | 27 | bool ConnectionNodeWrapper::operator<(const ConnectionNodeWrapper & other) const 28 | { 29 | return id < other.id; 30 | } 31 | 32 | ConnectionNode& ConnectionNodeWrapper::node() 33 | { 34 | return node_ref.get(); 35 | } 36 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/ConnectivityGraphVertexIteratorWrapper.cpp: -------------------------------------------------------------------------------- 1 | #include "ConnectivityGraphVertexIteratorWrapper.h" 2 | #include "Map.h" 3 | 4 | extern Map m; 5 | 6 | ConnectivityGraphVertexIteratorWrapper::ConnectivityGraphVertexIteratorWrapper() 7 | { 8 | } 9 | 10 | ConnectivityGraphVertexIteratorWrapper::ConnectivityGraphVertexIteratorWrapper(list_iter iter_in) 11 | { 12 | iter = iter_in; 13 | } 14 | 15 | int ConnectivityGraphVertexIteratorWrapper::operator*() 16 | { 17 | ConnectionNode& node = *iter->get(); 18 | return m.NodeToWrapperInt(node); 19 | } 20 | 21 | bool ConnectivityGraphVertexIteratorWrapper::operator!=(ConnectivityGraphVertexIteratorWrapper const & rhs) 22 | { 23 | return iter != rhs.iter; 24 | } 25 | 26 | bool ConnectivityGraphVertexIteratorWrapper::operator==(ConnectivityGraphVertexIteratorWrapper const & rhs) 27 | { 28 | return iter == rhs.iter; 29 | } 30 | 31 | ConnectivityGraphVertexIteratorWrapper& ConnectivityGraphVertexIteratorWrapper::operator++() //Pre-increment. 32 | { 33 | iter++; 34 | return *this; 35 | } 36 | 37 | ConnectivityGraphVertexIteratorWrapper ConnectivityGraphVertexIteratorWrapper::operator++(int) //Post-increment 38 | { 39 | ConnectivityGraphVertexIteratorWrapper copy(iter); //Post-increment returns copy 40 | iter++; 41 | return copy; 42 | } -------------------------------------------------------------------------------- /SpaghettiDungeonGen/Coord.cpp: -------------------------------------------------------------------------------- 1 | #include "Coord.h" 2 | 3 | bool operator==(Coord const& lhs, Coord const& rhs) 4 | { 5 | return (lhs.x == rhs.x) && (lhs.y == rhs.y); 6 | } 7 | 8 | Coord operator+(Coord const& lhs, Coord const& rhs) 9 | { 10 | return {lhs.x + rhs.x, lhs.y + rhs.y}; 11 | } 12 | 13 | Coord operator-(Coord const& lhs, Coord const& rhs) 14 | { 15 | return { lhs.x - rhs.x, lhs.y - rhs.y }; 16 | } 17 | 18 | Coord operator*(Coord const& lhs, int rhs) 19 | { 20 | return { lhs.x * rhs, lhs.y * rhs }; 21 | } -------------------------------------------------------------------------------- /SpaghettiDungeonGen/DRandom.cpp: -------------------------------------------------------------------------------- 1 | #include "DRandom.h" 2 | #include 3 | 4 | DRandom* DRandom::instance = nullptr; 5 | 6 | DRandom::DRandom(unsigned int seed) 7 | { 8 | rng.seed(seed); 9 | instance = this; 10 | } 11 | 12 | DRandom::~DRandom() 13 | { 14 | instance = nullptr; 15 | } 16 | 17 | Direction DRandom::GetDirection() 18 | { 19 | boost::random::uniform_int_distribution distributionDir(0, 3); 20 | return static_cast(distributionDir(rng)); 21 | } 22 | 23 | int DRandom::GetInt(int a, int b) 24 | { 25 | boost::random::uniform_int_distribution dist(a, b); 26 | return dist(rng); 27 | } 28 | 29 | float DRandom::GetFloat(float a, float b) 30 | { 31 | boost::random::uniform_real_distribution dist(a, b); 32 | return dist(rng); 33 | } 34 | 35 | float DRandom::GetZeroOne() 36 | { 37 | boost::random::uniform_real_distribution dist(0.0f, 1.0f); 38 | return dist(rng); 39 | } -------------------------------------------------------------------------------- /SpaghettiDungeonGen/EntropyGrid.cpp: -------------------------------------------------------------------------------- 1 | #include "EntropyGrid.h" 2 | #include "DRandom.h" 3 | #include 4 | #include 5 | 6 | namespace WFC 7 | { 8 | 9 | EntropyGrid::EntropyGrid(int width, int height) : 10 | width(width), 11 | height(height) 12 | { 13 | entropies_with_noise.resize(boost::extents[height][width]); 14 | noise.resize(boost::extents[height][width]); 15 | } 16 | 17 | void EntropyGrid::Create(const boost::multi_array& output, const std::vector& patterns) 18 | { 19 | for (int j = 0; j < height; j++) 20 | { 21 | for (int i = 0; i < width; i++) 22 | { 23 | Coord pos = { i, j }; 24 | noise[j][i] = DRandom::instance->GetZeroOne(); 25 | entropies_with_noise[j][i] = noise[j][i]; 26 | for (size_t possible_pattern = 0; possible_pattern < output[j][i].possible_patterns.size(); possible_pattern++) 27 | { 28 | const auto& directions = output[j][i].possible_patterns[possible_pattern]; 29 | entropies_with_noise[j][i] += patterns[possible_pattern].frequency * (directions[0] + directions[1] + directions[2] + directions[3]); 30 | } 31 | min_entropy_tracker.push({ pos, entropies_with_noise[j][i] }); 32 | } 33 | } 34 | } 35 | 36 | void EntropyGrid::Collapse(Coord coord) 37 | { 38 | entropies_with_noise[coord.y][coord.x] = 0; 39 | } 40 | 41 | EntropyGrid::LowestEntropyResult EntropyGrid::GetLowestEntropyPixel() 42 | { 43 | while (!min_entropy_tracker.empty()) 44 | { 45 | LowestEntropyResult result = min_entropy_tracker.top(); 46 | min_entropy_tracker.pop(); 47 | 48 | if (entropies_with_noise[result.position.y][result.position.x] != 0) 49 | { 50 | //Floating point stuff could mess this up 51 | return { result.position, result.value - noise[result.position.y][result.position.x] }; 52 | } 53 | } 54 | 55 | return { {}, std::numeric_limits::max() }; 56 | } 57 | 58 | void EntropyGrid::ReduceEntropyNoUpdate(Coord pos, int amount) 59 | { 60 | entropies_with_noise[pos.y][pos.x] -= amount; 61 | } 62 | 63 | void EntropyGrid::CheckIfCoordShouldBeNewMinimum(Coord pos) 64 | { 65 | min_entropy_tracker.push({ pos, entropies_with_noise[pos.y][pos.x] }); 66 | } 67 | 68 | bool operator<(const EntropyGrid::LowestEntropyResult& lhs, const EntropyGrid::LowestEntropyResult& rhs) 69 | { 70 | //Opposite way around so we get a reversed priority queue 71 | return lhs.value > rhs.value; 72 | } 73 | 74 | } -------------------------------------------------------------------------------- /SpaghettiDungeonGen/FileManager.cpp: -------------------------------------------------------------------------------- 1 | #include "FileManager.h" 2 | #include "RoomPrefab.h" 3 | #include "Pattern.h" 4 | #include 5 | #include 6 | 7 | using namespace boost::filesystem; 8 | 9 | namespace FileManager 10 | { 11 | 12 | void ConvertRoomsToJSON(bool full_refresh) 13 | { 14 | directory_iterator end_iter; 15 | for (directory_iterator itr("C:\\Users\\Example\\Documents\\git\\SpaghettiDungeonGen\\Rooms"); itr != end_iter; itr++) 16 | { 17 | auto json_path = change_extension(itr->path(), "json"); 18 | if (is_regular_file(itr->path()) && extension(itr->path()) == ".png") 19 | { 20 | //Don't re-write JSON, unless full_refresh is true 21 | if (full_refresh || !boost::filesystem::exists(json_path)) 22 | { 23 | RoomPrefab::ExportImageToJSON(itr->path().string(), json_path.string()); 24 | } 25 | } 26 | } 27 | } 28 | 29 | void ConvertPatternsToJSON(bool full_refresh) 30 | { 31 | directory_iterator end_iter; 32 | for (directory_iterator itr("C:\\Users\\Example\\Documents\\git\\SpaghettiDungeonGen\\Patterns"); itr != end_iter; itr++) 33 | { 34 | auto json_path = change_extension(itr->path(), "json"); 35 | if (is_regular_file(itr->path()) && extension(itr->path()) == ".png") 36 | { 37 | //Don't re-write JSON, unless full_refresh is true 38 | if (full_refresh || !boost::filesystem::exists(json_path)) 39 | { 40 | WFC::Pattern::ImageToJSON(itr->path().string(), json_path.string()); 41 | } 42 | } 43 | } 44 | } 45 | 46 | } 47 | 48 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/GameInterface.cpp: -------------------------------------------------------------------------------- 1 | #ifdef GAME_COMPILE 2 | #include "GameInterface.h" 3 | #include "RoomPlacer.h" 4 | #include "Map.h" 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | extern Map m; 11 | 12 | //https://stackoverflow.com/questions/44464552/how-to-properly-marshal-strings-from-unity-to-c-c 13 | extern "C" 14 | { 15 | char* Generate(const char* load_disk_path, int width, int height, unsigned int seed, int min_rooms, int min_boss_distance, int min_treasure_distance, int min_shop_distance, int min_non_start_distance) 16 | { 17 | Requirements requirements; 18 | requirements.min_rooms = min_rooms; 19 | requirements.min_boss_distance = min_boss_distance; 20 | requirements.min_treasure_distance = min_treasure_distance; 21 | requirements.min_shop_distance = min_shop_distance; 22 | requirements.min_non_start_distance = min_non_start_distance; 23 | 24 | RoomPlacer rp(load_disk_path); 25 | 26 | rp.PlaceRooms(width, height, seed, requirements); 27 | 28 | std::string json = ExportMapToJSON(); 29 | 30 | char* json_to_unity = new char[json.size() + 1]; 31 | for (size_t i = 0; i < json.size(); i++) 32 | { 33 | json_to_unity[i] = json[i]; 34 | } 35 | json_to_unity[json.size()] = '\0'; 36 | 37 | return json_to_unity; 38 | } 39 | 40 | void Delete(char* str) 41 | { 42 | delete[] str; 43 | } 44 | } 45 | 46 | std::string ExportMapToJSON() 47 | { 48 | rapidjson::Document doc; 49 | doc.SetObject(); 50 | 51 | auto& a = doc.GetAllocator(); 52 | 53 | rapidjson::Value v_rooms(rapidjson::Type::kArrayType); 54 | for (auto& room : m.rooms) 55 | { 56 | rapidjson::Value j_room(rapidjson::Type::kObjectType); 57 | j_room.AddMember("x", room.p.x, a); 58 | j_room.AddMember("y", room.p.y, a); 59 | j_room.AddMember("rotation", room.rotation, a); 60 | j_room.AddMember("prefab_index", room.prefab_index, a); 61 | j_room.AddMember("room_type", static_cast(room.room_type), a); 62 | j_room.AddMember("room_connectivity", static_cast(room.room_connectivity), a); 63 | 64 | TileWallData* data; 65 | if (std::holds_alternative(room.tile_wall_data)) 66 | { 67 | data = std::get(room.tile_wall_data); 68 | } 69 | else 70 | { 71 | data = std::get>(room.tile_wall_data).get(); 72 | } 73 | 74 | rapidjson::Value v_tiles(rapidjson::Type::kArrayType); 75 | for (auto& t : data->tiles) 76 | { 77 | rapidjson::Value j_tile(rapidjson::Type::kObjectType); 78 | j_tile.AddMember("x", t.x, a); 79 | j_tile.AddMember("y", t.y, a); 80 | v_tiles.PushBack(j_tile, a); 81 | } 82 | 83 | rapidjson::Value v_walls(rapidjson::Type::kArrayType); 84 | for (auto& w : data->walls) 85 | { 86 | rapidjson::Value j_wall(rapidjson::Type::kObjectType); 87 | j_wall.AddMember("x", w.x, a); 88 | j_wall.AddMember("y", w.y, a); 89 | v_walls.PushBack(j_wall, a); 90 | } 91 | 92 | rapidjson::Value v_doors(rapidjson::Type::kArrayType); 93 | rapidjson::Value v_open_connections(rapidjson::Type::kArrayType); 94 | for (auto& d : room.possible_doors) 95 | { 96 | if (d.open_connectable) 97 | { 98 | if (d.Connected()) 99 | { 100 | rapidjson::Value j_connection(rapidjson::Type::kObjectType); 101 | j_connection.AddMember("x", d.tile1_relative.x, a); 102 | j_connection.AddMember("y", d.tile1_relative.y, a); 103 | v_open_connections.PushBack(j_connection, a); 104 | } 105 | else 106 | { 107 | rapidjson::Value j_wall(rapidjson::Type::kObjectType); 108 | j_wall.AddMember("x", d.tile1_relative.x, a); 109 | j_wall.AddMember("y", d.tile1_relative.y, a); 110 | v_walls.PushBack(j_wall, a); 111 | } 112 | } 113 | else 114 | { 115 | if (d.Connected()) 116 | { 117 | rapidjson::Value j_door(rapidjson::Type::kObjectType); 118 | j_door.AddMember("x1", d.tile1_relative.x, a); 119 | j_door.AddMember("y1", d.tile1_relative.y, a); 120 | j_door.AddMember("x2", d.tile2_relative.x, a); 121 | j_door.AddMember("y2", d.tile2_relative.y, a); 122 | j_door.AddMember("f", (int)d.facing, a); 123 | v_doors.PushBack(j_door, a); 124 | } 125 | else 126 | { 127 | rapidjson::Value j_wall1(rapidjson::Type::kObjectType); 128 | j_wall1.AddMember("x", d.tile1_relative.x, a); 129 | j_wall1.AddMember("y", d.tile1_relative.y, a); 130 | v_walls.PushBack(j_wall1, a); 131 | //Connection may be useful 132 | 133 | if (d.facing != DoorFacing::SingleTile) 134 | { 135 | rapidjson::Value j_wall2(rapidjson::Type::kObjectType); 136 | j_wall2.AddMember("x", d.tile2_relative.x, a); 137 | j_wall2.AddMember("y", d.tile2_relative.y, a); 138 | v_walls.PushBack(j_wall2, a); 139 | } 140 | } 141 | } 142 | } 143 | j_room.AddMember("tiles", v_tiles, a); 144 | j_room.AddMember("walls", v_walls, a); 145 | j_room.AddMember("doors", v_doors, a); 146 | j_room.AddMember("open_connections", v_open_connections, a); 147 | 148 | v_rooms.PushBack(j_room, a); 149 | } 150 | doc.AddMember("Rooms", v_rooms, a); 151 | 152 | rapidjson::Value v_corridors(rapidjson::Type::kArrayType); 153 | for (auto& corridor : m.corridors) 154 | { 155 | rapidjson::Value j_corridor(rapidjson::Type::kObjectType); 156 | 157 | rapidjson::Value v_tiles(rapidjson::Type::kArrayType); 158 | for (auto& t : corridor.tile_wall_data->tiles) 159 | { 160 | rapidjson::Value j_tile(rapidjson::Type::kObjectType); 161 | j_tile.AddMember("x", t.x, a); 162 | j_tile.AddMember("y", t.y, a); 163 | v_tiles.PushBack(j_tile, a); 164 | } 165 | j_corridor.AddMember("tiles", v_tiles, a); 166 | 167 | rapidjson::Value v_walls(rapidjson::Type::kArrayType); 168 | for (auto& w : corridor.tile_wall_data->walls) 169 | { 170 | rapidjson::Value j_wall(rapidjson::Type::kObjectType); 171 | j_wall.AddMember("x", w.x, a); 172 | j_wall.AddMember("y", w.y, a); 173 | v_walls.PushBack(j_wall, a); 174 | } 175 | j_corridor.AddMember("walls", v_walls, a); 176 | 177 | v_corridors.PushBack(j_corridor, a); 178 | } 179 | doc.AddMember("Corridors", v_corridors, a); 180 | 181 | doc.AddMember("Width", m.width, a); 182 | doc.AddMember("Height", m.height, a); 183 | 184 | std::stringstream output; 185 | rapidjson::OStreamWrapper osw(output); 186 | rapidjson::Writer writer(osw); 187 | doc.Accept(writer); 188 | 189 | return output.str(); 190 | } 191 | #endif -------------------------------------------------------------------------------- /SpaghettiDungeonGen/Islands.cpp: -------------------------------------------------------------------------------- 1 | #include "Islands.h" 2 | #include "PlacedRoom.h" 3 | #include "Map.h" 4 | #include "DRandom.h" 5 | #include 6 | 7 | using namespace std; 8 | 9 | extern Map m; 10 | 11 | Islands::Islands(const std::map& islands_map_in, int num_islands) : 12 | islands_map(islands_map_in) 13 | { 14 | islands.resize(num_islands); 15 | 16 | for (auto& component : islands_map) 17 | { 18 | islands[component.second].push_back(m.IntToWrapperNode(component.first)); 19 | } 20 | } 21 | 22 | bool Islands::ConnectIslands(int id1, int id2) 23 | { 24 | //We're not connected 2 doors explicitly 25 | //Verify that each islands has potential doors available, then do a BFS to find the nearest door with a connection_node equal to a room in the island 26 | //The room_to_ignore stuff I have presently is wrong. Instead, should connect to a room that is within a vector of rooms on the target island. 27 | 28 | bool island1_has_connectable_available = false; //Available door, corridor or open connectable 29 | for (auto node1 : islands[id1]) 30 | { 31 | if (node1.get().IsRoom()) 32 | { 33 | const PlacedRoom& room = static_cast(node1.get()); 34 | if (room.HasConnectionAvailable()) 35 | { 36 | island1_has_connectable_available = true; 37 | break; 38 | } 39 | } 40 | else //It's a corridor 41 | { 42 | island1_has_connectable_available = true; 43 | break; 44 | } 45 | } 46 | 47 | if (island1_has_connectable_available) 48 | { 49 | bool island2_has_connectable_available = false; 50 | for (auto node2 : islands[id2]) 51 | { 52 | if (node2.get().IsRoom()) 53 | { 54 | const PlacedRoom& room2 = static_cast(node2.get()); 55 | if (room2.HasConnectionAvailable()) 56 | { 57 | island2_has_connectable_available = true; 58 | break; 59 | } 60 | } 61 | else //It's a corridor 62 | { 63 | island2_has_connectable_available = true; 64 | break; 65 | } 66 | } 67 | 68 | if (island2_has_connectable_available) 69 | { 70 | //Select either a random corridor, door or open connection on island 1, and find a path to a connectable on island 2 71 | struct StartingAtCorridor {}; 72 | 73 | Coord start; 74 | ConnectionNode* node_to_connect_to1 = nullptr; 75 | std::variant startConnectionType; 76 | 77 | for (auto node1 : islands[id1]) 78 | { 79 | if (node1.get().IsRoom()) 80 | { 81 | auto& room1 = static_cast(node1.get()); 82 | 83 | //todo: randomly pick door instead? 84 | for (auto& d : room1.possible_doors) 85 | { 86 | if (!d.Connected()) 87 | { 88 | start = room1.p + d.tile_outside_relative; 89 | node_to_connect_to1 = &room1; 90 | startConnectionType = &d; 91 | break; 92 | } 93 | } 94 | } 95 | else //It's a corridor 96 | { 97 | auto& corridor1 = static_cast(node1.get()); 98 | start = corridor1.tile_wall_data->tiles[DRandom::instance->GetInt(0, (int)corridor1.tile_wall_data->tiles.size() - 1)]; 99 | node_to_connect_to1 = &node1.get(); 100 | startConnectionType = StartingAtCorridor(); 101 | } 102 | 103 | if (node_to_connect_to1 != nullptr) //Valid node found 104 | { 105 | break; 106 | } 107 | } 108 | 109 | if (node_to_connect_to1 == nullptr) 110 | { 111 | assert(false && "node_to_connect_to_ptr1 should be defined"); 112 | } 113 | 114 | optional path_opt = m.empty_space_pathfinder.GetPathToNearestConnectable(start, islands[id2]); 115 | optional> corridor_opt; 116 | if (path_opt) 117 | { 118 | switch (path_opt->connectedTileType) 119 | { 120 | case TileType::PossibleConnection: 121 | { 122 | PlacedRoom& room2 = static_cast(path_opt->node); 123 | PossibleDoor& door2 = room2.possible_doors[path_opt->index_of_connectable]; 124 | corridor_opt = Corridor::TryToPlace(*node_to_connect_to1, room2, path_opt->path, 1); 125 | 126 | if (corridor_opt) 127 | { 128 | door2.SetConnectionWithCorridor(room2, *corridor_opt); 129 | } 130 | break; 131 | } 132 | case TileType::CorridorWall: 133 | { 134 | Corridor& corridor2 = static_cast(path_opt->node); 135 | corridor_opt = Corridor::TryToPlace(*node_to_connect_to1, corridor2, path_opt->path, 1); //Connect corridor to corridor 136 | break; 137 | } 138 | default: 139 | std::cout << "Invalid return from GetPathToNearestConnectable() " << (int)path_opt->connectedTileType << std::endl; 140 | } 141 | 142 | if (corridor_opt) 143 | { 144 | if (holds_alternative(startConnectionType)) 145 | { 146 | get(startConnectionType)->SetConnectionWithCorridor(*node_to_connect_to1, *corridor_opt); 147 | } 148 | return true; 149 | } 150 | } 151 | } 152 | } 153 | 154 | return false; 155 | } 156 | 157 | void Islands::RemoveCorridorOnlyIslands() 158 | { 159 | for (auto& island : islands) 160 | { 161 | bool erase_island = true; 162 | for (const ConnectionNode& node : island) 163 | { 164 | if (node.IsRoom()) 165 | { 166 | erase_island = false; 167 | continue; 168 | } 169 | } 170 | 171 | if (erase_island) 172 | { 173 | for (ConnectionNode& node : island) 174 | { 175 | m.EraseCorridor(static_cast(node), true); 176 | } 177 | } 178 | } 179 | } -------------------------------------------------------------------------------- /SpaghettiDungeonGen/Pattern.cpp: -------------------------------------------------------------------------------- 1 | #include "Pattern.h" 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | #ifndef GAME_COMPILE 10 | #include 11 | #include 12 | #endif 13 | 14 | namespace WFC 15 | { 16 | Pattern::Pattern(int n) : 17 | frequency(0), 18 | tile_hash(0) 19 | { 20 | tiles.resize(boost::extents[n][n]); 21 | } 22 | 23 | size_t Pattern::GetTileHash() const 24 | { 25 | return tile_hash; 26 | } 27 | 28 | void Pattern::SetTileHash() 29 | { 30 | tile_hash = 0; 31 | int n = (int)tiles.shape()[0]; 32 | for (int j = 0; j < n; j++) 33 | { 34 | for (int i = 0; i < n; i++) 35 | { 36 | boost::hash_combine(tile_hash, tiles[j][i].tile); 37 | } 38 | } 39 | } 40 | 41 | Pattern Pattern::GetRotated90() const 42 | { 43 | int n = (int)tiles.shape()[0]; 44 | Pattern p(n); 45 | 46 | for (int j = 0; j < n; j++) 47 | { 48 | for (int i = 0; i < n; i++) 49 | { 50 | p.tiles[j][i] = tiles[n - i - 1][j]; 51 | } 52 | } 53 | 54 | p.SetTileHash(); 55 | return p; 56 | } 57 | 58 | Pattern Pattern::GetFlipped() const 59 | { 60 | int n = (int)tiles.shape()[0]; 61 | Pattern p(n); 62 | 63 | for (int j = 0; j < n; j++) 64 | { 65 | for (int i = 0; i < n; i++) 66 | { 67 | p.tiles[j][i] = tiles[j][n - i - 1]; 68 | } 69 | } 70 | 71 | p.SetTileHash(); 72 | return p; 73 | } 74 | 75 | std::vector Pattern::LoadPatternsFromJSON(std::string_view path, int& n_out) 76 | { 77 | rapidjson::Document doc; 78 | std::ifstream file(path.data()); 79 | std::stringstream buffer; 80 | buffer << file.rdbuf(); 81 | doc.Parse(buffer.str().c_str()); 82 | 83 | boost::multi_array texture; 84 | texture.resize(boost::extents[doc["height"].GetInt()][doc["width"].GetInt()]); 85 | 86 | for (int i = 0; i < texture.num_elements(); i++) 87 | { 88 | texture.data()[i] = (WFCTileType::WFCTile)doc["tiles"].GetArray()[i].GetInt(); 89 | } 90 | n_out = doc["n"].GetInt(); 91 | 92 | return ExtractPatternsFromTexture(n_out, texture); 93 | } 94 | 95 | std::vector Pattern::ExtractPatternsFromTexture(int n, const boost::multi_array& texture) 96 | { 97 | std::vector patterns; 98 | std::unordered_map pattern_hash_to_index; 99 | 100 | int width = (int)texture.shape()[0]; 101 | int height = (int)texture.shape()[1]; 102 | for (int j = 0; j <= height - n; j++) 103 | { 104 | for (int i = 0; i <= width - n; i++) 105 | { 106 | Pattern p(n); 107 | 108 | for (int p_j = 0; p_j < n; p_j++) 109 | { 110 | for (int p_i = 0; p_i < n; p_i++) 111 | { 112 | p.tiles[p_j][p_i].tile = texture[j + p_j][i + p_i]; 113 | } 114 | } 115 | p.SetTileHash(); 116 | 117 | Pattern rotated90 = p.GetRotated90(); 118 | Pattern rotated180 = rotated90.GetRotated90(); 119 | Pattern rotated270 = rotated180.GetRotated90(); 120 | Pattern flipped = p.GetFlipped(); 121 | Pattern flipped90 = flipped.GetRotated90(); 122 | Pattern flipped180 = flipped90.GetRotated90(); 123 | Pattern flipped270 = flipped180.GetRotated90(); 124 | 125 | AddPattern(p, patterns, pattern_hash_to_index); 126 | AddPattern(rotated90, patterns, pattern_hash_to_index); 127 | AddPattern(rotated180, patterns, pattern_hash_to_index); 128 | AddPattern(rotated270, patterns, pattern_hash_to_index); 129 | AddPattern(flipped, patterns, pattern_hash_to_index); 130 | AddPattern(flipped90, patterns, pattern_hash_to_index); 131 | AddPattern(flipped180, patterns, pattern_hash_to_index); 132 | AddPattern(flipped270, patterns, pattern_hash_to_index); 133 | } 134 | } 135 | 136 | return patterns; 137 | } 138 | 139 | void Pattern::AddPattern(const Pattern& pattern, std::vector& patterns, std::unordered_map& pattern_hash_to_index) 140 | { 141 | size_t hash = pattern.GetTileHash(); 142 | auto found = pattern_hash_to_index.find(hash); 143 | int index; 144 | if (found == pattern_hash_to_index.end()) 145 | { 146 | patterns.push_back(pattern); 147 | index = (int)patterns.size() - 1; 148 | pattern_hash_to_index.insert({ hash, index }); 149 | } 150 | else 151 | { 152 | index = found->second; 153 | } 154 | patterns[index].frequency++; 155 | } 156 | 157 | void Pattern::ImageToJSON(std::string_view texture_path, std::string_view json_path, int n_force) 158 | { 159 | #ifndef GAME_COMPILE 160 | cv::Mat img = cv::imread(texture_path.data(), cv::IMREAD_COLOR); 161 | 162 | rapidjson::Document doc; 163 | doc.SetObject(); 164 | auto& a = doc.GetAllocator(); 165 | 166 | doc.AddMember("width", img.cols, a); 167 | doc.AddMember("height", img.rows, a); 168 | //Note: could have a "palette" variable, where I hardcode that "Wall2" must be an asteroid tile type, for example 169 | //Can hardcode various filenames to palettes here for easy reproduction. 170 | rapidjson::Value tile_array(rapidjson::Type::kArrayType); 171 | 172 | for (int j = 0; j < img.rows; j++) 173 | { 174 | cv::Vec3b* row = img.ptr(j); 175 | 176 | for (int i = 0; i < img.cols; i++) 177 | { 178 | uint8_t b = row[i][0]; 179 | uint8_t g = row[i][1]; 180 | uint8_t r = row[i][2]; 181 | WFCTileType tile; 182 | tile.Set(r, g, b); 183 | int type = static_cast(tile.tile); 184 | tile_array.PushBack(type, a); 185 | } 186 | } 187 | 188 | doc.AddMember("tiles", tile_array, a); 189 | 190 | int n; 191 | if (n_force == -1) 192 | { 193 | std::regex re(R"(\(n(\d+)\))"); 194 | std::smatch match; 195 | std::string texture_path_str{ texture_path }; 196 | std::regex_search(texture_path_str, match, re); 197 | if (match.length() > 1) 198 | { 199 | n = stoi(match[1]); 200 | } 201 | else 202 | { 203 | n = 3; 204 | } 205 | } 206 | else 207 | { 208 | n = n_force; 209 | } 210 | 211 | doc.AddMember("n", n, a); 212 | 213 | std::ofstream output(json_path.data()); 214 | rapidjson::OStreamWrapper osw(output); 215 | rapidjson::Writer writer(osw); 216 | doc.Accept(writer); 217 | #endif 218 | } 219 | 220 | } 221 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/PatternIndex.cpp: -------------------------------------------------------------------------------- 1 | #include "PatternIndex.h" 2 | 3 | namespace WFC 4 | { 5 | Direction DirectionFromOffset(Coord offset) 6 | { 7 | if (offset.x == -1 && offset.y == 0) 8 | { 9 | return Direction::Left; 10 | } 11 | else if (offset.x == 1 && offset.y == 0) 12 | { 13 | return Direction::Right; 14 | } 15 | else if (offset.x == 0 && offset.y == -1) 16 | { 17 | return Direction::Up; 18 | } 19 | else if (offset.x == 0 && offset.y == 1) 20 | { 21 | return Direction::Down; 22 | } 23 | else 24 | { 25 | //TODO BAD 26 | return Direction::Left; 27 | } 28 | } 29 | 30 | void PatternIndex::CreatePatternIndex(int n, const std::vector& patterns) 31 | { 32 | index.resize(boost::extents[patterns.size()][patterns.size()]); 33 | 34 | for (int pattern_a = 0; pattern_a < patterns.size(); pattern_a++) 35 | { 36 | for (int pattern_b = 0; pattern_b < patterns.size(); pattern_b++) 37 | { 38 | TryAddPatternToIndex(n, { -1, 0 }, pattern_a, pattern_b, patterns); 39 | TryAddPatternToIndex(n, { 1, 0 }, pattern_a, pattern_b, patterns); 40 | TryAddPatternToIndex(n, { 0, -1 }, pattern_a, pattern_b, patterns); 41 | TryAddPatternToIndex(n, { 0, 1 }, pattern_a, pattern_b, patterns); 42 | } 43 | } 44 | } 45 | 46 | bool PatternIndex::CheckPatternConnectsToBaseline(int pattern_baseline, Direction direction, int pattern_other) 47 | { 48 | return index[pattern_other][pattern_baseline][static_cast(direction)]; 49 | } 50 | 51 | void PatternIndex::TryAddPatternToIndex(int n, Coord offset, int pattern_baseline, int pattern_sliding, const std::vector& patterns) 52 | { 53 | if (CheckPatternAtPositionCanOverlap(n, offset, patterns[pattern_baseline], patterns[pattern_sliding])) 54 | { 55 | Direction direction = DirectionFromOffset(offset); 56 | index[pattern_sliding][pattern_baseline][static_cast(direction)] = true; 57 | } 58 | } 59 | 60 | bool PatternIndex::CheckPatternAtPositionCanOverlap(int n, Coord offset, const Pattern& pattern_baseline, const Pattern& pattern_sliding) 61 | { 62 | for (int baseline_y = 0; baseline_y < n; baseline_y++) 63 | { 64 | int comparison_y = baseline_y - offset.y; 65 | if (comparison_y >= 0 && comparison_y < n) 66 | { 67 | for (int baseline_x = 0; baseline_x < n; baseline_x++) 68 | { 69 | int comparison_x = baseline_x - offset.x; 70 | if (comparison_x >= 0 && comparison_x < n) 71 | { 72 | //(baseline_x, baseline_y) is overlapping 73 | //The equivalent tile for the sliding pattern is baseline-offset 74 | int sliding_x = baseline_x - offset.x; 75 | int sliding_y = baseline_y - offset.y; 76 | 77 | if (pattern_baseline.tiles[baseline_y][baseline_x] != pattern_sliding.tiles[sliding_y][sliding_x]) 78 | { 79 | //Tiles don't match 80 | return false; 81 | } 82 | } 83 | } 84 | } 85 | } 86 | return true; 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/PlacedRoom.cpp: -------------------------------------------------------------------------------- 1 | #include "PlacedRoom.h" 2 | #include "Map.h" 3 | #include 4 | 5 | extern Map m; 6 | 7 | PlacedRoom::PlacedRoom(int x, int y, const std::vector& doors_in, TileWallData* tile_wall_data, int rotation_in, int prefab_index) : //Prefab room 8 | p{ x, y }, 9 | rotation(rotation_in), 10 | prefab_index(prefab_index) 11 | { 12 | //Doors that face the edge of the map won't be placed, and will just be a wall 13 | std::vector extra_walls; 14 | for (auto& d : doors_in) 15 | { 16 | if (m.IsValid(p + d.tile_outside_relative)) 17 | { 18 | possible_doors.push_back(d); 19 | } 20 | else 21 | { 22 | extra_walls.push_back(d.tile1_relative); 23 | if (d.facing != DoorFacing::SingleTile) 24 | { 25 | extra_walls.push_back(d.tile2_relative); 26 | } 27 | } 28 | } 29 | 30 | if (extra_walls.size() == 0) //No extra walls 31 | { 32 | this->tile_wall_data = tile_wall_data; 33 | } 34 | else //Added extra walls, so we need to store a custom tile layout in the unique_ptr 35 | { 36 | auto custom_data = std::make_unique(); //Don't use the constructor with arguments, because that moves 37 | custom_data->tiles = tile_wall_data->tiles; 38 | custom_data->walls = tile_wall_data->walls; 39 | custom_data->walls.insert(custom_data->walls.end(), extra_walls.begin(), extra_walls.end()); 40 | this->tile_wall_data = std::move(custom_data); 41 | } 42 | 43 | Place(); 44 | } 45 | 46 | PlacedRoom::PlacedRoom(int x, int y, const std::vector& doors_in, std::unique_ptr tile_wall_data) : //Proc gen room 47 | p{ x, y }, 48 | rotation(0), 49 | prefab_index(-1) 50 | { 51 | //Doors that face the edge of the map won't be placed, and will just be a wall 52 | for (auto& d : doors_in) 53 | { 54 | if (m.IsValid(p + d.tile_outside_relative)) 55 | { 56 | possible_doors.push_back(d); 57 | } 58 | else 59 | { 60 | tile_wall_data->walls.push_back(d.tile1_relative); 61 | if (d.facing != DoorFacing::SingleTile) 62 | { 63 | tile_wall_data->walls.push_back(d.tile2_relative); 64 | } 65 | } 66 | } 67 | 68 | this->tile_wall_data = std::move(tile_wall_data); 69 | Place(); 70 | } 71 | 72 | void PlacedRoom::Place() 73 | { 74 | TileWallData* data; 75 | if (std::holds_alternative(tile_wall_data)) 76 | { 77 | data = std::get(tile_wall_data); 78 | } 79 | else 80 | { 81 | data = std::get>(tile_wall_data).get(); 82 | } 83 | 84 | for (auto& w : data->walls) 85 | { 86 | m.Set(p + w, Tile(TileType::RoomWall, this)); 87 | } 88 | 89 | for (auto& tile : data->tiles) 90 | { 91 | m.Set(p + tile, Tile(TileType::RoomFloor, this)); 92 | } 93 | 94 | for (auto& d : possible_doors) 95 | { 96 | d.Place(p, *this); 97 | } 98 | } 99 | 100 | bool PlacedRoom::IsRoom() const 101 | { 102 | return true; 103 | } 104 | 105 | bool PlacedRoom::IsCorridor() const 106 | { 107 | return false; 108 | } 109 | 110 | void PlacedRoom::Unplace() //Not the destructor, because sometimes I may want to delete a room from memory, yet leave the tiles placed still 111 | { 112 | TileWallData* data; 113 | if (std::holds_alternative(tile_wall_data)) 114 | { 115 | data = std::get(tile_wall_data); 116 | } 117 | else 118 | { 119 | data = std::get>(tile_wall_data).get(); 120 | } 121 | 122 | for (auto& c : data->tiles) 123 | { 124 | m.Set(p + c, Tile(TileType::Nothing)); 125 | } 126 | 127 | for (auto& c : data->walls) 128 | { 129 | m.Set(p + c, Tile(TileType::Nothing)); 130 | } 131 | 132 | for (auto& d : possible_doors) 133 | { 134 | d.Unplace(p); 135 | } 136 | } 137 | 138 | void PlacedRoom::ConnectToNearbyRoomsOrCorridors() 139 | { 140 | for (auto& d : possible_doors) 141 | { 142 | if (!d.Connected()) 143 | { 144 | TryPlaceDoor(d); 145 | } 146 | } 147 | } 148 | 149 | void PlacedRoom::TryPlaceDoor(PossibleDoor& d) 150 | { 151 | Coord d1_outside = p + d.tile_outside_relative; 152 | 153 | if (m.IsValid(d1_outside)) 154 | { 155 | if (m.Get(d1_outside).type == TileType::CorridorWall) 156 | { 157 | d.SetConnectionWithCorridor(*this, static_cast(m.Get(d1_outside).GetNode())); 158 | } 159 | else 160 | { 161 | DoorFacing desired_other_door_facing_unless_single; 162 | switch (d.facing) 163 | { 164 | case DoorFacing::Top: 165 | desired_other_door_facing_unless_single = DoorFacing::Bottom; 166 | break; 167 | case DoorFacing::Bottom: 168 | desired_other_door_facing_unless_single = DoorFacing::Top; 169 | break; 170 | case DoorFacing::Left: 171 | desired_other_door_facing_unless_single = DoorFacing::Right; 172 | break; 173 | case DoorFacing::Right: 174 | desired_other_door_facing_unless_single = DoorFacing::Left; 175 | break; 176 | case DoorFacing::SingleTile: 177 | desired_other_door_facing_unless_single = DoorFacing::SingleTile; //We don't actually desire single tile. We desire any tile. 178 | break; 179 | } 180 | 181 | for (auto& other_r : m.rooms) 182 | { 183 | if (&other_r != this) //Don't want to compare a room to itself 184 | { 185 | //One of the rooms involved must be normal or procedural. We don't want to connect special rooms to special rooms. 186 | if (room_type == RoomType::Normal || other_r.room_type == RoomType::Normal || room_type == RoomType::Procedural || other_r.room_type == RoomType::Procedural) 187 | { 188 | for (auto& other_d : other_r.possible_doors) 189 | { 190 | if (d1_outside == other_r.p + other_d.GetOutsideAdjacentTile()) 191 | { 192 | d.SetConnectionWithAnotherDoor(other_d, *this, other_r); 193 | } 194 | } 195 | } 196 | } 197 | } 198 | } 199 | } 200 | } 201 | 202 | int PlacedRoom::UnconnectedDoors() const 203 | { 204 | int unconnected = 0; 205 | 206 | for (const auto& d : possible_doors) 207 | { 208 | if (!d.Connected()) 209 | { 210 | unconnected++; 211 | } 212 | } 213 | return unconnected; 214 | } 215 | 216 | bool PlacedRoom::HasConnectionAvailable() const 217 | { 218 | for (const auto& d : possible_doors) 219 | { 220 | if (!d.Connected()) 221 | { 222 | return true; 223 | } 224 | } 225 | 226 | return false; 227 | } -------------------------------------------------------------------------------- /SpaghettiDungeonGen/Tile.cpp: -------------------------------------------------------------------------------- 1 | #include "Tile.h" 2 | 3 | Tile::Tile() : 4 | type(TileType::Nothing), 5 | node(nullptr) 6 | { 7 | } 8 | 9 | Tile::Tile(TileType type) : 10 | type(type), 11 | node(nullptr) 12 | { 13 | } 14 | 15 | Tile::Tile(TileType type, ConnectionNode* node) : 16 | type(type), 17 | node(node) 18 | { 19 | } 20 | 21 | bool Tile::IsPathable() const 22 | { 23 | return type == TileType::Nothing || type == TileType::WFCFloor || type == TileType::WFCWall || type == TileType::CorridorFloor; //WFCWall is pathable, because we can cut right through it 24 | } 25 | 26 | bool Tile::RoomCanBePlacedOnStrict() const 27 | { 28 | return (type == TileType::Nothing || type == TileType::WFCFloor); 29 | } 30 | 31 | bool Tile::RoomCanBePlacedOnRelaxed() const 32 | { 33 | return (type == TileType::Nothing || type == TileType::WFCWall || type == TileType::WFCFloor); 34 | } 35 | 36 | bool Tile::IsRoom() const 37 | { 38 | return type == TileType::RoomFloor || type == TileType::RoomWall; 39 | } 40 | 41 | ConnectionNode& Tile::GetNode() const 42 | { 43 | return *node; 44 | } -------------------------------------------------------------------------------- /SpaghettiDungeonGen/TileWallData.cpp: -------------------------------------------------------------------------------- 1 | #include "TileWallData.h" 2 | 3 | TileWallData::TileWallData() 4 | { 5 | } 6 | 7 | TileWallData::TileWallData(std::vector& tiles, std::vector& walls) 8 | { 9 | this->tiles = std::move(tiles); 10 | this->walls = std::move(walls); 11 | } 12 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/WFCDungeonGenInterface.cpp: -------------------------------------------------------------------------------- 1 | #include "WFCDungeonGenInterface.h" 2 | #include "WaveFunctionCollapse.h" 3 | #include "Map.h" 4 | #include "DRandom.h" 5 | #include 6 | 7 | extern Map m; 8 | 9 | namespace WFC 10 | { 11 | 12 | WFCDungeonGenInterface::WFCDungeonGenInterface(std::string_view load_disk_path) 13 | { 14 | std::string patterns_path = std::string(load_disk_path) + "\\Patterns"; 15 | boost::filesystem::directory_iterator end_iter; 16 | for (boost::filesystem::directory_iterator itr(patterns_path); itr != end_iter; itr++) 17 | { 18 | if (boost::filesystem::is_regular_file(itr->path()) && boost::filesystem::extension(itr->path()) == ".json") 19 | { 20 | pattern_paths.push_back(itr->path().string()); 21 | } 22 | } 23 | } 24 | 25 | int WFCDungeonGenInterface::Place(int x, int y, int width, int height) 26 | { 27 | const std::string& path = pattern_paths[DRandom::instance->GetInt(0, pattern_paths.size() - 1)]; 28 | 29 | int placed = 0; 30 | //Could alternatively use the Map to fill up WFC output with pre-collapsed values 31 | WaveFunctionCollapse wfc(path, width, height); 32 | auto output = wfc.Run(); 33 | for (int j = y; j < y + height; j++) 34 | { 35 | for (int i = x; i < x + width; i++) 36 | { 37 | if (m.Get(i, j).type == TileType::Nothing) 38 | { 39 | auto outputTile = output[j - y][i - x]; 40 | if (outputTile == WFCTileType::Wall || outputTile == WFCTileType::Asteroid) 41 | { 42 | m.Set(i, j, Tile(TileType::WFCWall)); 43 | } 44 | else if (outputTile == WFCTileType::Empty || outputTile == WFCTileType::Floor || outputTile == WFCTileType::NonRoomFloor) 45 | { 46 | m.Set(i, j, Tile(TileType::WFCFloor)); 47 | } 48 | 49 | placed++; 50 | } 51 | } 52 | } 53 | 54 | return placed; 55 | } 56 | 57 | int WFCDungeonGenInterface::PlaceConstantVisualisation(int x, int y, int width, int height) 58 | { 59 | const std::string& path = pattern_paths[DRandom::instance->GetInt(0, pattern_paths.size() - 1)]; 60 | 61 | //Could alternatively use the Map to fill up WFC output with pre-collapsed values 62 | WaveFunctionCollapse wfc(path, width, height); 63 | 64 | int drawStep = 0; 65 | 66 | auto apply_to_map = 67 | [&](const boost::multi_array& wfc) 68 | { 69 | int placed = 0; 70 | for (int j = y; j < y + height; j++) 71 | { 72 | for (int i = x; i < x + width; i++) 73 | { 74 | if (m.Get(i, j).type == TileType::Nothing || m.Get(i, j).type == TileType::WFCWall || m.Get(i, j).type == TileType::WFCFloor) 75 | { 76 | auto outputTile = wfc[j - y][i - x]; 77 | if (outputTile == WFCTileType::Wall || outputTile == WFCTileType::Asteroid) 78 | { 79 | m.Set(i, j, Tile(TileType::WFCWall)); 80 | } 81 | else if (outputTile == WFCTileType::Empty || outputTile == WFCTileType::Floor || outputTile == WFCTileType::NonRoomFloor) 82 | { 83 | m.Set(i, j, Tile(TileType::WFCFloor)); 84 | } 85 | 86 | placed++; 87 | } 88 | } 89 | } 90 | if (drawStep++ % 20 == 0) 91 | { 92 | m.Display(false); 93 | } 94 | return placed; 95 | }; 96 | 97 | auto output = wfc.RunVisualiseContinuous(apply_to_map); 98 | 99 | 100 | return apply_to_map(output); 101 | } 102 | 103 | } -------------------------------------------------------------------------------- /SpaghettiDungeonGen/WFCTileType.cpp: -------------------------------------------------------------------------------- 1 | #include "WFCTileType.h" 2 | #include 3 | 4 | namespace WFC 5 | { 6 | bool WFCTileType::operator==(const WFCTileType& other) const 7 | { 8 | return tile == other.tile; 9 | } 10 | 11 | bool WFCTileType::operator!=(const WFCTileType& other) const 12 | { 13 | return tile != other.tile; 14 | } 15 | 16 | std::tuple WFCTileType::ToRGB() const 17 | { 18 | switch (tile) 19 | { 20 | case Empty: 21 | return { 255, 255, 255 }; 22 | case Wall: 23 | return { 255, 0, 0 }; 24 | case Floor: 25 | return { 0, 255, 0 }; 26 | case NonRoomFloor: 27 | return { 0, 0, 255 }; 28 | case Asteroid: 29 | return { 255, 127, 0 }; 30 | default: 31 | std::cout << "Unknown WFC tile" << std::endl; 32 | return { 255, 0, 255 }; 33 | } 34 | } 35 | 36 | void WFCTileType::Set(uint8_t r, uint8_t g, uint8_t b) 37 | { 38 | //Multiple definitions at different colours so patterns can be more flexible 39 | if (r == 255 && g == 255 && b == 255) 40 | { 41 | tile = Empty; 42 | } 43 | else if (r == 127 && g == 127 && b == 127) 44 | { 45 | tile = Empty; 46 | } 47 | else if (r == 255 && g == 0 && b == 0) 48 | { 49 | tile = Wall; 50 | } 51 | else if (r == 127 && g == 0 && b == 0) 52 | { 53 | tile = Wall; 54 | } 55 | else if (r == 0 && g == 255 && b == 0) 56 | { 57 | tile = Floor; 58 | } 59 | else if (r == 0 && g == 127 && b == 0) 60 | { 61 | tile = Floor; 62 | } 63 | else if (r == 0 && g == 0 && b == 255) 64 | { 65 | tile = NonRoomFloor; 66 | } 67 | else if (r == 0 && g == 0 && b == 127) 68 | { 69 | tile = NonRoomFloor; 70 | } 71 | else if (r == 255 && g == 127 && b == 0) 72 | { 73 | tile = Asteroid; 74 | } 75 | else 76 | { 77 | std::cout << "Unknown WFC tile colour " << (int)r << ' ' << (int)g << ' ' << (int)b << '\n'; 78 | } 79 | } 80 | 81 | } -------------------------------------------------------------------------------- /SpaghettiDungeonGen/WallOffNothingAreas.cpp: -------------------------------------------------------------------------------- 1 | #include "WallOffNothingAreas.h" 2 | #include "Map.h" 3 | #include 4 | 5 | extern Map m; 6 | 7 | void WallOffNothingAreas::Run() 8 | { 9 | MapArray map_copy = m; 10 | 11 | for (int j = 0; j < m.height; j++) 12 | { 13 | for (int i = 0; i < m.width; i++) 14 | { 15 | if (map_copy.Get(i, j).type == TileType::Nothing) 16 | { 17 | FloodFill({i, j}, map_copy); 18 | } 19 | } 20 | } 21 | } 22 | 23 | void WallOffNothingAreas::FloodFill(Coord start, MapArray& map_copy) 24 | { 25 | std::vector possible_walls; 26 | std::queue to_update; 27 | to_update.push(start); 28 | 29 | auto check_neighbour_and_push = 30 | [&](Coord neighbour) 31 | { 32 | if (map_copy.IsValid(neighbour)) 33 | { 34 | if (map_copy.Get(neighbour).type == TileType::Nothing) 35 | { 36 | possible_walls.push_back(neighbour); 37 | map_copy.Set(neighbour, Tile(TileType::FreeWall)); 38 | to_update.push(neighbour); 39 | } 40 | } 41 | }; 42 | 43 | while (!to_update.empty()) 44 | { 45 | Coord c = to_update.front(); 46 | to_update.pop(); 47 | 48 | check_neighbour_and_push(c + Coord{ -1, 0 }); 49 | check_neighbour_and_push(c + Coord{ 1, 0 }); 50 | check_neighbour_and_push(c + Coord{ 0, -1 }); 51 | check_neighbour_and_push(c + Coord{ 0, 1 }); 52 | } 53 | 54 | //If there's a lot of walls we can place, then apply changes to map 55 | if (possible_walls.size() > 60) 56 | { 57 | for (const auto w : possible_walls) 58 | { 59 | m.Set(w, Tile(TileType::FreeWall)); 60 | } 61 | } 62 | } -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/BoringAreaRemover.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "MapArray.h" 3 | 4 | class BoringAreaRemover : public MapArray 5 | { 6 | public: 7 | BoringAreaRemover(); 8 | void Run(); 9 | 10 | private: 11 | void FloodFillToProduceDistanceMap(Coord start); 12 | }; 13 | 14 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/ConnectionNode.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class ConnectionNode 4 | { 5 | public: 6 | virtual ~ConnectionNode(); //Make the class polymorphic to satisfy requirements of dynamic_cast 7 | virtual bool IsRoom() const = 0; 8 | virtual bool IsCorridor() const = 0; 9 | bool operator==(const ConnectionNode& other) const; 10 | }; -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/ConnectionNodeFilteredCollection.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "ConnectionNodeFilteredIterator.h" 3 | #include "PlacedRoom.h" 4 | #include "Corridor.h" 5 | 6 | template 7 | class ConnectionNodeFilteredCollection 8 | { 9 | public: 10 | ConnectionNodeFilteredIterator begin(); 11 | ConnectionNodeFilteredIterator end(); 12 | T& recent(); 13 | T& random(); 14 | int size = 0; 15 | }; 16 | 17 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/ConnectionNodeFilteredIterator.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | #include "PlacedRoom.h" 5 | #include "Corridor.h" 6 | 7 | template 8 | class ConnectionNodeFilteredIterator 9 | { 10 | public: 11 | using list_iter = std::list>::iterator; 12 | 13 | ConnectionNodeFilteredIterator(list_iter element_in); 14 | ConnectionNodeFilteredIterator operator++(); 15 | bool operator==(const ConnectionNodeFilteredIterator& other); 16 | bool operator!=(const ConnectionNodeFilteredIterator& other); 17 | T& operator*(); 18 | 19 | private: 20 | list_iter element; 21 | }; 22 | 23 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/ConnectionNodeWrapper.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "ConnectionNode.h" 3 | #include 4 | 5 | //Wraps over ConnectionNode so that ConnectivityGrapher can use the integer id instead of the pointer 6 | //Using the pointer leads to non-deterministic behaviour in Boost.Graph 7 | 8 | class ConnectionNodeWrapper 9 | { 10 | public: 11 | ConnectionNodeWrapper(int id_in, ConnectionNode& node_in); 12 | ConnectionNodeWrapper& operator=(const ConnectionNodeWrapper& other); //Must be defined because this'll be copied/moved around a vector 13 | 14 | bool operator==(const ConnectionNodeWrapper &other) const; 15 | bool operator!=(const ConnectionNodeWrapper &other) const; 16 | bool operator<(const ConnectionNodeWrapper &other) const; 17 | ConnectionNode& node(); 18 | 19 | int id; 20 | 21 | private: 22 | std::reference_wrapper node_ref; //References can't be reassigned, but ref_wrappers can. We need to reassign a pointer in operator=. We keep it hidden so that we don't do &wrapper.node_ref elsewhere in code and get the address of the reference_wrapper rather than what it contains 23 | }; 24 | 25 | namespace std //Inject into namespace 26 | { 27 | template <> 28 | struct hash 29 | { 30 | std::size_t operator()(const ConnectionNodeWrapper& k) const 31 | { 32 | return k.id; 33 | } 34 | }; 35 | } 36 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/ConnectivityGraphVertexIteratorWrapper.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | #include "ConnectionNodeWrapper.h" 5 | 6 | class ConnectivityGraphVertexIteratorWrapper 7 | { 8 | public: 9 | using list_iter = std::list>::iterator; 10 | 11 | ConnectivityGraphVertexIteratorWrapper(); 12 | ConnectivityGraphVertexIteratorWrapper(list_iter iter_in); 13 | 14 | int operator*(); 15 | bool operator!=(ConnectivityGraphVertexIteratorWrapper const & rhs); 16 | bool operator==(ConnectivityGraphVertexIteratorWrapper const & rhs); 17 | ConnectivityGraphVertexIteratorWrapper& operator++(); 18 | ConnectivityGraphVertexIteratorWrapper operator++(int); 19 | 20 | list_iter iter; 21 | }; 22 | 23 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/ConnectivityGrapher.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | #include 5 | #include "ConnectivityGraphVertexIteratorWrapper.h" 6 | #include "ConnectionNodeWrapper.h" 7 | 8 | class Map; 9 | class Islands; 10 | 11 | ///https://www.boost.org/doc/libs/1_68_0/libs/graph/doc/table_of_contents.html 12 | 13 | struct ConnectivityGraph 14 | { 15 | 16 | }; 17 | 18 | using vertex_descriptor_cg = int; 19 | using edge_descriptor_cg = std::pair; 20 | using out_edge_iterator_cg = boost::shared_container_iterator>; 21 | using edge_iterator_cg = boost::shared_container_iterator>; 22 | using vertex_iterator_cg = ConnectivityGraphVertexIteratorWrapper; 23 | using vertices_size_type_cg = int; 24 | using edges_size_type_cg = int; 25 | using degree_size_type_cg = int; 26 | 27 | namespace boost 28 | { 29 | template<> 30 | struct graph_traits 31 | { 32 | using vertex_descriptor = vertex_descriptor_cg; 33 | using edge_descriptor = edge_descriptor_cg; 34 | 35 | using out_edge_iterator = out_edge_iterator_cg; 36 | using vertex_iterator = vertex_iterator_cg; 37 | using edge_iterator = edge_iterator_cg; 38 | using edges_size_type = edges_size_type_cg; 39 | 40 | using directed_category = boost::undirected_tag; 41 | using edge_parallel_category = boost::disallow_parallel_edge_tag; 42 | struct traversal_category : 43 | virtual boost::vertex_list_graph_tag, 44 | virtual boost::edge_list_graph_tag, 45 | virtual boost::incidence_graph_tag {}; 46 | 47 | using vertices_size_type = vertices_size_type_cg; 48 | using degree_size_type = degree_size_type_cg; 49 | 50 | using in_edge_iterator = void; 51 | 52 | static vertex_descriptor_cg null_vertex() { return -1; } 53 | }; 54 | } 55 | 56 | std::pair vertices(ConnectivityGraph const & g); 57 | std::pair edges(ConnectivityGraph const & g); 58 | edges_size_type_cg num_edges(ConnectivityGraph const & g); 59 | vertex_descriptor_cg source(edge_descriptor_cg const & edge, ConnectivityGraph const &); 60 | vertex_descriptor_cg target(edge_descriptor_cg const & edge, ConnectivityGraph const &); 61 | vertices_size_type_cg num_vertices(ConnectivityGraph const & g); 62 | std::pair out_edges(vertex_descriptor_cg vertex, ConnectivityGraph const & g); 63 | degree_size_type_cg out_degree(vertex_descriptor_cg vertex, ConnectivityGraph const & g); 64 | 65 | using connection_distance_map = std::unordered_map; 66 | 67 | class ConnectivityGrapher 68 | { 69 | private: 70 | struct NodeFoundExitBFS {}; 71 | 72 | struct GraphvizNodePainter 73 | { 74 | void operator()(std::ostream& out, vertex_descriptor_cg v); 75 | }; 76 | 77 | public: 78 | using node_link = boost::graph_traits::edge_descriptor; //Graph edge 79 | 80 | class find_node_id : public boost::default_bfs_visitor 81 | { 82 | public: 83 | find_node_id(ConnectionNode& t) : target_connection_node(t) { } 84 | void discover_vertex(vertex_descriptor_cg v, const ConnectivityGraph& g) const; //discover_vertex is called when vertex is encountered for the first time https://www.boost.org/doc/libs/1_68_0/libs/graph/doc/BFSVisitor.html 85 | private: 86 | ConnectionNode& target_connection_node; 87 | }; 88 | 89 | bool AreNodesConnected(ConnectionNode& node1, ConnectionNode& node2); 90 | connection_distance_map GetDistancesFromNode(ConnectionNode& node, bool include_corridors); 91 | connection_distance_map GetDistancesFromNode(vertex_descriptor_cg node, bool include_corridors); 92 | std::vector> GetNodesWithNeighbourCount(int desired_count); 93 | Islands GetIslands(); 94 | void Export(); 95 | 96 | private: 97 | ConnectivityGraph g; 98 | }; 99 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/Coord.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | struct Coord 4 | { 5 | int x; 6 | int y; 7 | }; 8 | 9 | bool operator==(Coord const& lhs, Coord const& rhs); 10 | Coord operator+(Coord const& lhs, Coord const& rhs); 11 | Coord operator-(Coord const& lhs, Coord const& rhs); 12 | Coord operator*(Coord const& lhs, int rhs); -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/Corridor.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "Coord.h" 3 | #include "MapArray.h" 4 | #include "ConnectivityGrapher.h" 5 | #include "ConnectionNode.h" 6 | #include "TileWallData.h" 7 | #include 8 | #include 9 | #include 10 | 11 | class Tile; 12 | 13 | class Corridor : public ConnectionNode 14 | { 15 | public: 16 | Corridor(ConnectionNode& start_node, ConnectionNode& end_node, std::vector& tiles_in); 17 | static std::optional> TryToPlace(ConnectionNode& start_node, ConnectionNode& end_node, Coord start, Coord end, int dilation_iterations); 18 | static std::optional> TryToPlace(ConnectionNode& start_node, ConnectionNode& end_node, const std::vector& path_tiles, int dilation_iterations); 19 | static void DilateTile(int x, int y, MapArray& map_data, std::vector& dilated_tiles, size_t& failed_dilations); 20 | static void DilateTiles(const std::vector& tiles_to_dilate, MapArray& map_data, std::vector& dilated_tiles, size_t& failed_dilations); 21 | static void CheckTileWhenPlacing(int x, int y, MapArray& map_data, std::vector& dilated_tiles, size_t& failed_dilations); 22 | static void CheckTileForWallPlacement(Coord neighbour, std::vector& dilated_tiles); 23 | void CheckTileForDilationToMaximum(Coord current, Coord neighbour, std::vector& previously_dilated, std::vector& dilated_tiles, std::vector& dilated_into_walls); 24 | void DilateToMaximum(); 25 | void PlaceWalls(); 26 | 27 | bool IsRoom() const override; 28 | bool IsCorridor() const override; 29 | std::unique_ptr tile_wall_data; 30 | 31 | void Unplace(); 32 | void RePlaceMetadata(); 33 | void AddConnection(ConnectionNode& node); 34 | 35 | std::vector> connections; 36 | }; -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/CorridorInfo.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include "Direction.h" 4 | 5 | struct CorridorInfo 6 | { 7 | int thickness; 8 | std::vector> tiles; //x, y, direction 9 | }; 10 | 11 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/DRandom.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include //Same generation across platforms, compared to std? Haven't tested either. 3 | #include "Direction.h" 4 | 5 | class DRandom 6 | { 7 | public: 8 | DRandom(unsigned int seed); 9 | ~DRandom(); 10 | 11 | static DRandom* instance; 12 | 13 | Direction GetDirection(); 14 | int GetInt(int a, int b); 15 | float GetFloat(float a, float b); //TODO: This RNG won't be deterministic across platforms 16 | float GetZeroOne(); //TODO: This RNG won't be deterministic across platforms 17 | 18 | private: 19 | boost::random::mt19937 rng; 20 | }; 21 | 22 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/Direction.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | enum class Direction 3 | { 4 | Up = 0, 5 | Right = 1, 6 | Down = 2, 7 | Left = 3 8 | }; -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/DoorPosition.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | enum class DoorPosition 3 | { 4 | Top, 5 | Right, 6 | Bottom, 7 | Left 8 | }; -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/EmptySpacePathfinder.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include "Coord.h" 7 | #include "TileType.h" 8 | #include "ConnectivityGrapher.h" 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | 16 | ///https://www.boost.org/doc/libs/1_68_0/libs/graph/doc/table_of_contents.html 17 | class Tile; 18 | 19 | struct TileGraph 20 | { 21 | 22 | }; 23 | 24 | using vertex_descriptor_tg = int; 25 | 26 | struct vertex_iterator_tg 27 | { 28 | vertex_iterator_tg(); 29 | vertex_iterator_tg(int v); 30 | vertex_descriptor_tg operator*(); 31 | vertex_iterator_tg& operator++(); 32 | vertex_iterator_tg operator++(int); 33 | bool operator==(vertex_iterator_tg const & rhs); 34 | bool operator!=(vertex_iterator_tg const & rhs); 35 | 36 | int value; 37 | }; 38 | 39 | using vertices_size_type_tg = int; 40 | using edge_descriptor_tg = std::pair; 41 | using out_edge_iterator_tg = std::array::iterator; 42 | using degree_size_type_tg = int; 43 | 44 | int get_row(vertex_descriptor_tg vertex, TileGraph const & g); 45 | int get_col(vertex_descriptor_tg vertex, TileGraph const & g); 46 | vertex_descriptor_tg make_vertex(int row, int col, TileGraph const & g); 47 | vertices_size_type_tg num_vertices(TileGraph const & g); 48 | std::pair vertices(TileGraph const & g); 49 | vertex_descriptor_tg source(edge_descriptor_tg const & edge, TileGraph const &); 50 | vertex_descriptor_tg target(edge_descriptor_tg const & edge, TileGraph const &); 51 | bool operator==(edge_descriptor_tg const & lhs, edge_descriptor_tg const & rhs); 52 | bool operator!=(edge_descriptor_tg const & lhs, edge_descriptor_tg const & rhs); 53 | std::pair out_edges(vertex_descriptor_tg vertex, TileGraph const & g); 54 | degree_size_type_tg out_degree(vertex_descriptor_tg vertex, TileGraph const & g); 55 | 56 | namespace boost 57 | { 58 | template<> 59 | struct graph_traits 60 | { 61 | using vertex_descriptor = vertex_descriptor_tg; 62 | using edge_descriptor = edge_descriptor_tg; 63 | 64 | using out_edge_iterator = out_edge_iterator_tg; 65 | using vertex_iterator = vertex_iterator_tg; 66 | 67 | using directed_category = boost::undirected_tag; 68 | using edge_parallel_category = boost::disallow_parallel_edge_tag; 69 | struct traversal_category : 70 | virtual boost::vertex_list_graph_tag, 71 | virtual boost::incidence_graph_tag {}; 72 | 73 | using vertices_size_type = vertices_size_type_tg; 74 | using degree_size_type = degree_size_type_tg; 75 | 76 | using in_edge_iterator = void; 77 | using edge_iterator = void; 78 | using edges_size_type = void; 79 | 80 | static vertex_descriptor_tg null_vertex() { return -1; } 81 | }; 82 | } 83 | 84 | template<> 85 | struct std::iterator_traits 86 | { 87 | using value_type = vertex_descriptor_tg; 88 | using difference_type = int; //? 89 | using reference = vertex_iterator_tg&; //? 90 | using pointer = vertex_iterator_tg*; //? 91 | using iterator_category = random_access_iterator_tag; //? 92 | }; 93 | 94 | //Template specialisation of put() to work with std::unordered_map rather than the usually array-style. I do this because I want to store predecessors in an efficient way. 95 | //Definition in boost/property_map/property_map.hpp 96 | //Don't turn the ptrdiff into a vertex_descriptor_tg, since it won't compile under x64. The pointerdiff changes size, yet the size of vertex_descriptor_tg (which is an int) doesn't change. 97 | template <> 98 | inline void put(std::unordered_map* storage, std::ptrdiff_t index, const vertex_descriptor_tg& value); 99 | 100 | struct PathToNearestConnectable 101 | { 102 | TileType connectedTileType; 103 | std::vector path; 104 | ConnectionNode& node; 105 | int index_of_connectable; //Door index if type==door. Open connection index if type==open connection. Otherwise undefined. 106 | }; 107 | 108 | class EmptySpacePathfinder 109 | { 110 | private: 111 | struct NodeFoundExitBFS {}; 112 | struct ConnectableTileReturnData 113 | { 114 | vertex_descriptor_cg last_vertex_in_path; 115 | vertex_descriptor_cg vertex_with_connectable; 116 | ConnectionNode& node; 117 | TileType type; 118 | }; 119 | 120 | public: 121 | class get_path : public boost::default_bfs_visitor 122 | { 123 | public: 124 | get_path(vertex_descriptor_tg t) : target_tile_node(t) { } 125 | using event_filter = boost::on_discover_vertex; 126 | 127 | void operator()(vertex_descriptor_tg v, const TileGraph &g) const; 128 | private: 129 | vertex_descriptor_tg target_tile_node; 130 | }; 131 | 132 | class get_nearest_connectable_tile : public boost::default_bfs_visitor 133 | { 134 | public: 135 | get_nearest_connectable_tile(const std::vector>& island_to_connect_to_in) : island_to_connect_to(island_to_connect_to_in) { } //Find the nearest door/corridor/openconnectable that doesn't belong to the room we start in 136 | using event_filter = boost::on_discover_vertex; 137 | 138 | void operator()(vertex_descriptor_tg v, const TileGraph &g) const; 139 | void CheckConnectable(vertex_descriptor_tg v, vertex_descriptor_tg tile_to_check) const; 140 | private: 141 | const std::vector>& island_to_connect_to; 142 | }; 143 | 144 | std::optional> GetPath(Coord start, Coord end); 145 | std::optional GetPathToNearestConnectable(Coord start, const std::vector>& island_to_connect_to); 146 | 147 | private: 148 | TileGraph g; 149 | }; 150 | 151 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/EntropyGrid.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | #include 5 | 6 | #include "Coord.h" 7 | #include "OutputTile.h" 8 | #include "Pattern.h" 9 | 10 | namespace WFC 11 | { 12 | class EntropyGrid 13 | { 14 | public: 15 | struct LowestEntropyResult 16 | { 17 | Coord position; 18 | float value; 19 | }; 20 | 21 | EntropyGrid(int width, int height); 22 | void Create(const boost::multi_array& output, const std::vector& patterns); 23 | void Collapse(Coord coord); 24 | LowestEntropyResult GetLowestEntropyPixel(); 25 | void ReduceEntropyNoUpdate(Coord pos, int amount); 26 | void CheckIfCoordShouldBeNewMinimum(Coord pos); 27 | 28 | private: 29 | boost::heap::priority_queue min_entropy_tracker; 30 | boost::multi_array entropies_with_noise; 31 | int width; 32 | int height; 33 | 34 | std::vector remaining_entropies_ordered; 35 | boost::multi_array noise; 36 | }; 37 | 38 | bool operator<(const EntropyGrid::LowestEntropyResult& lhs, const EntropyGrid::LowestEntropyResult& rhs); 39 | 40 | } 41 | 42 | 43 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/FileManager.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace FileManager 4 | { 5 | void ConvertRoomsToJSON(bool full_refresh); 6 | void ConvertPatternsToJSON(bool full_refresh); 7 | } -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/GameInterface.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | #ifdef GAME_COMPILE 5 | extern "C" 6 | { 7 | __declspec(dllexport) char* Generate(const char* load_disk_path, int width, int height, unsigned int seed, int min_rooms, int min_boss_distance, int min_treasure_distance, int min_shop_distance, int min_non_start_distance); 8 | __declspec(dllexport) void Delete(char* str); 9 | } 10 | 11 | std::string ExportMapToJSON(); 12 | #endif -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/Islands.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | #include "ConnectivityGrapher.h" 5 | #include "ConnectionNode.h" 6 | 7 | class Islands 8 | { 9 | public: 10 | Islands(const std::map& islands_map_in, int num_islands); 11 | 12 | std::map islands_map; 13 | std::vector>> islands; 14 | 15 | bool ConnectIslands(int id1, int id2); 16 | void RemoveCorridorOnlyIslands(); 17 | }; -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/Map.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include "MapArray.h" 4 | #include "PlacedRoom.h" 5 | #include "Corridor.h" 6 | #include "EmptySpacePathfinder.h" 7 | #include "ConnectionNodeFilteredCollection.h" 8 | #include "RoomPlacer.h" 9 | 10 | #ifndef GAME_COMPILE 11 | #include 12 | #endif 13 | 14 | class Map : public MapArray 15 | { 16 | public: 17 | Map(); 18 | 19 | void Reset(int width, int height, RoomPlacer* room_placer); 20 | void Display(bool done); 21 | void ConnectRooms(); 22 | void EraseRoom(PlacedRoom& node, bool unplace); 23 | void EraseCorridor(Corridor& node, bool unplace); 24 | void RemoveConnections(ConnectionNode& node); 25 | bool SpecialRoomExists(RoomType type); 26 | PlacedRoom& AddRoom(int x, int y, const std::vector& doors_in, TileWallData* tile_wall_data, int rotation, int prefab_index); 27 | PlacedRoom& AddRoom(int x, int y, const std::vector& doors_in, std::unique_ptr tile_wall_data); 28 | Corridor& AddCorridor(std::unique_ptr node); 29 | 30 | void AddWrapper(ConnectionNode& node); 31 | void RemoveWrapper(ConnectionNode& node); 32 | 33 | ConnectivityGrapher connectivity_grapher; 34 | EmptySpacePathfinder empty_space_pathfinder; 35 | ConnectionNodeFilteredCollection rooms; 36 | ConnectionNodeFilteredCollection corridors; 37 | 38 | std::vector>> special_rooms; //Start, boss, treasure, shop. 39 | 40 | std::list> nodes; 41 | std::vector node_wrappers; 42 | ConnectionNodeWrapper NodeToWrapper(ConnectionNode& node); 43 | ConnectionNodeWrapper IntToWrapper(int id); 44 | ConnectionNode& IntToWrapperNode(int id); 45 | int NodeToWrapperInt(const ConnectionNode& node); 46 | 47 | private: 48 | RoomPlacer* room_placer; 49 | Map& operator=(const Map&) = delete; //Stop Map object from being copyable 50 | Map(const Map&) = delete; 51 | 52 | #ifndef GAME_COMPILE 53 | cv::Mat displayImg; 54 | #endif 55 | 56 | public: 57 | int nodes_added = 0; 58 | }; -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/MapArray.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include "TileType.h" 4 | #include "Tile.h" 5 | #include "Coord.h" 6 | 7 | template 8 | class MapArray 9 | { 10 | public: 11 | MapArray() 12 | { 13 | 14 | } 15 | 16 | MapArray& operator=(const MapArray& old_map_array) //Copy assignment 17 | { 18 | this->width = old_map_array.width; 19 | this->height = old_map_array.height; 20 | this->data.resize(boost::extents[height][width]); //Must resize before assigning 21 | this->data = old_map_array.data; 22 | return *this; 23 | } 24 | 25 | MapArray(const MapArray& old_map_array) //Copy constructor 26 | { 27 | this->width = old_map_array.width; 28 | this->height = old_map_array.height; 29 | this->data.resize(boost::extents[height][width]); //Must resize before assigning 30 | this->data = old_map_array.data; 31 | } 32 | 33 | void SetSize(int width, int height) 34 | { 35 | this->width = width; 36 | this->height = height; 37 | data.resize(boost::extents[height][width]); 38 | } 39 | 40 | bool IsValid(int x, int y) const 41 | { 42 | return x >= 0 && y >= 0 && x < width && y < height; 43 | } 44 | 45 | bool IsValid(Coord t) const 46 | { 47 | return IsValid(t.x, t.y); 48 | } 49 | 50 | T Get(int x, int y) const 51 | { 52 | return data[y][x]; 53 | } 54 | 55 | T Get(Coord t) const 56 | { 57 | return data[t.y][t.x]; 58 | } 59 | 60 | void Set(int x, int y, const T& tile) 61 | { 62 | data[y][x] = tile; 63 | } 64 | 65 | void Set(Coord t, const T& tile) 66 | { 67 | data[t.y][t.x] = tile; 68 | } 69 | 70 | boost::multi_array& GetDataReference() 71 | { 72 | return data; 73 | } 74 | 75 | int width; 76 | int height; 77 | boost::multi_array data; 78 | }; 79 | 80 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/OutputTile.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | namespace WFC 5 | { 6 | struct OutputTile 7 | { 8 | std::optional collapsed_pattern; 9 | std::vector> possible_patterns; //Pattern index, number of patterns in each direction that add to entropy 10 | }; 11 | } -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/Pattern.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | #include 5 | #include "WFCTileType.h" 6 | 7 | namespace WFC 8 | { 9 | class Pattern 10 | { 11 | public: 12 | Pattern(int n); 13 | boost::multi_array tiles; //NxN 14 | int frequency; 15 | 16 | size_t GetTileHash() const; 17 | void SetTileHash(); 18 | Pattern GetRotated90() const; 19 | Pattern GetFlipped() const; 20 | 21 | size_t tile_hash; 22 | 23 | static std::vector LoadPatternsFromJSON(std::string_view path, int& n_out); 24 | static std::vector ExtractPatternsFromTexture(int n, const boost::multi_array& texture); 25 | static void AddPattern(const Pattern& pattern, std::vector& patterns, std::unordered_map& pattern_hash_to_index); 26 | static void ImageToJSON(std::string_view texture_path, std::string_view json_path, int n_force = -1); 27 | 28 | }; 29 | } 30 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/PatternIndex.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | 5 | #include 6 | 7 | #include "Pattern.h" 8 | #include "Coord.h" 9 | #include "Direction.h" 10 | 11 | namespace WFC 12 | { 13 | class PatternIndex 14 | { 15 | public: 16 | void CreatePatternIndex(int n, const std::vector& patterns); 17 | bool CheckPatternConnectsToBaseline(int pattern_baseline, Direction direction, int pattern_other); 18 | 19 | private: 20 | void TryAddPatternToIndex(int n, Coord offset, int pattern_baseline, int pattern_sliding, const std::vector& patterns); 21 | bool CheckPatternAtPositionCanOverlap(int n, Coord offset, const Pattern& pattern_baseline, const Pattern& pattern_sliding); 22 | 23 | //Note that the order of sliding then baseline is better for cache, due to the order WaveFunctionCollapse::PropagateToNeighbour iterates 24 | boost::multi_array, 2> index; //[sliding][baseline][0..3 directions] -> bool of whether pattern can be a neighbour 25 | }; 26 | } -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/PlacedRoom.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | #include "PossibleDoor.h" 5 | #include "ConnectivityGrapher.h" 6 | #include "ConnectionNode.h" 7 | #include "TileWallData.h" 8 | #include "RoomType.h" 9 | 10 | class PlacedRoom : public ConnectionNode 11 | { 12 | public: 13 | PlacedRoom(int x, int y, const std::vector& doors_in, TileWallData* tile_wall_data, int rotation_in, int prefab_index); 14 | PlacedRoom(int x, int y, const std::vector& doors_in, std::unique_ptr tile_wall_data); 15 | PlacedRoom(PlacedRoom&& placed_room) = delete; //Don't want to move, since I keep track of pointers. Don't want to accidentally use a pointer from before a move 16 | PlacedRoom& operator=(PlacedRoom&& placed_room) = delete; 17 | PlacedRoom& operator=(const PlacedRoom&) = delete; //Never want to copy a PlacedRoom 18 | PlacedRoom(PlacedRoom& placed_room) = delete; 19 | 20 | bool IsRoom() const override; 21 | bool IsCorridor() const override; 22 | void Unplace(); 23 | void ConnectToNearbyRoomsOrCorridors(); 24 | void TryPlaceDoor(PossibleDoor& d); 25 | //void TryConnectOpenConnections(OpenConnection& o); 26 | int UnconnectedDoors() const; 27 | bool HasConnectionAvailable() const; 28 | 29 | Coord p; 30 | int rotation; //Used by C# 31 | int prefab_index; 32 | RoomType room_type = RoomType::Normal; 33 | std::vector possible_doors; 34 | 35 | //Only set at the end of room placement 36 | enum class RoomConnectivity 37 | { 38 | Regular = 0, 39 | DeadEnd, 40 | Isolated 41 | }; 42 | RoomConnectivity room_connectivity = RoomConnectivity::Regular; 43 | 44 | 45 | //Used to access positions of tiles and walls. 46 | //Raw: Points to data that is fixed at startup, like unmodified room prefabs 47 | //unique_ptr: Points to modified prefab data or proc gen room data. Stored in this object. 48 | std::variant> tile_wall_data; 49 | 50 | private: 51 | void Place(); 52 | }; 53 | 54 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/PossibleDoor.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "ConnectivityGrapher.h" 3 | #include "Coord.h" 4 | #include "TileWallData.h" 5 | #include 6 | 7 | class ConnectionNode; 8 | class Corridor; 9 | 10 | enum class DoorFacing 11 | { 12 | Top, 13 | Right, 14 | Bottom, 15 | Left, 16 | SingleTile 17 | }; 18 | 19 | struct PossibleDoor 20 | { 21 | Coord tile1_relative; //Coordinates are relative to room 22 | Coord tile2_relative; //Is -1, -1 when door is a single tile 23 | Coord tile_outside_relative; //The tile just outside of the room 24 | DoorFacing facing; 25 | ConnectionNode* connection_opt; 26 | bool open_connectable; 27 | 28 | PossibleDoor(); 29 | PossibleDoor(int x1, int y1, int x2, int y2, TileWallData& tiles_and_walls, bool open_connectable = false); 30 | bool SetOutsideTile(int x, int y, TileWallData& tiles_and_walls); 31 | void SetConnectionWithCorridor(ConnectionNode& node_this, Corridor& corridor); 32 | void SetConnectionWithAnotherDoor(PossibleDoor& door_other, ConnectionNode& node_this, ConnectionNode& node_other); 33 | bool Connected() const; 34 | PossibleDoor Get90RotatedCopy(int room_height) const; 35 | void Place(Coord room, ConnectionNode& node) const; 36 | void Unplace(Coord room) const; 37 | Coord GetOutsideAdjacentTile() const; 38 | 39 | static void PlaceAllDoorTiles(); 40 | }; 41 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/Requirements.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | struct Requirements 3 | { 4 | int min_rooms; 5 | 6 | int min_boss_distance; 7 | int min_treasure_distance; 8 | int min_shop_distance; 9 | int min_non_start_distance; 10 | }; -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/RoomGenerator.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "Tile.h" 3 | #include "MapArray.h" 4 | #include "TileWallData.h" 5 | #include "PossibleDoor.h" 6 | #include 7 | #include 8 | 9 | enum class ProceduralRoomTileType 10 | { 11 | Unprocessed, 12 | Nothing, 13 | Wall, 14 | PossibleConnection, 15 | Reserved 16 | }; 17 | 18 | class RoomGenerator : public MapArray 19 | { 20 | public: 21 | RoomGenerator(int x, int y, int width, int height); 22 | 23 | bool Generate(); 24 | void AddSquare(); 25 | 26 | static bool CheckWallShouldBePlaced(const MapArray& map_array, int x, int y); 27 | static bool CanDilateWallIntoRoom(const MapArray& map_array, int x, int y); 28 | 29 | private: 30 | int CountTiles(); 31 | void PlaceDoors(); 32 | void PlaceSingleDoors(); 33 | bool DoorCanBePlacedAtCaller(int i, int j); 34 | bool TileOutsideOfRoom(int i, int j); 35 | int room_x; 36 | int room_y; 37 | std::vector possible_doors; 38 | TileWallData tile_wall_data; 39 | }; 40 | 41 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/RoomPlacer.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "RoomPrefab.h" 3 | #include "RoomType.h" 4 | #include "Requirements.h" 5 | #include "WFCDungeonGenInterface.h" 6 | 7 | enum class PlaceRoomResult 8 | { 9 | Placed, 10 | NormalNotPlaced, 11 | SpecialNotPlaced 12 | }; 13 | 14 | class RoomPlacer 15 | { 16 | public: 17 | RoomPlacer(std::string_view load_disk_path); 18 | void PlaceRooms(int w, int h, unsigned int seed, const Requirements& requirements); 19 | PlaceRoomResult DecideWhichRoomTypeToPlace(int approx_x, int approx_y, bool align_doors); 20 | bool PlaceRoomPrefab(int approx_x, int approx_y, bool align_doors, std::vector& prefabs, RoomType type); 21 | bool PlaceProceduralRoom(int approx_x, int approx_y); 22 | void ConnectDeadEnds(); 23 | bool ConnectSpecialRooms(bool &special_rooms_connected); 24 | bool FinaliseSpecialRooms(const Requirements& requirements); 25 | 26 | //Don't add or remove from this vector once they've been loaded. Pointers are stored to the elements inside. A resize may invalidate those pointers. 27 | std::vector room_prefabs, boss_room_prefabs, treasure_room_prefabs, shop_room_prefabs; 28 | 29 | private: 30 | std::vector LoadRoomPrefabs(std::string_view rooms_path, std::string_view pattern); 31 | void HandleIsolatedRooms(); 32 | void RemoveInaccessibleRooms(); 33 | void EraseDeadEndCorridors(); 34 | void SetRoomConnectivity(); 35 | void Reset(); 36 | 37 | WFC::WFCDungeonGenInterface wfc_interface; 38 | }; -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/RoomPrefab.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | #include 5 | #include "PossibleDoor.h" 6 | #include "TileWallData.h" 7 | #include "RoomType.h" 8 | 9 | #ifndef GAME_COMPILE 10 | #include 11 | #endif 12 | 13 | class Map; 14 | 15 | //Determines how many times we rotate the room while checking if it fits. We still rotate rooms even if they're NoRotations. 16 | enum class RotationType 17 | { 18 | Asymmetrical = 0, 19 | OneAxisSymmetry = 1, 20 | TwoAxisSymmetry = 2 21 | }; 22 | 23 | class RoomPrefab 24 | { 25 | public: 26 | RoomPrefab(); 27 | RoomPrefab(RoomPrefab&& other) = default; 28 | 29 | static RoomPrefab CreateFromJSON(const std::string& path); 30 | 31 | bool PlaceWhereItFits(int x, int y, int prefab_index, bool strict); 32 | bool DirectPlace(int x, int y, int prefab_index, RoomType desired_type, bool strict); 33 | void Place(int x, int y, int current_rotation_element, int prefab_index); 34 | bool IsValid(int x, int y, int rotation_elemt); 35 | static void ExportImageToJSON(const std::string& image_path, const std::string& json_path); 36 | bool CanBePlacedOnTile(int x, int y, const std::vector& tiles_to_test, bool strict); 37 | bool DoorsCanBePlacedOnTile(int x, int y, const std::vector& doors, bool strict); 38 | void Reset(); 39 | 40 | //Note: All the points here (and in RoomTileWallData) are offsets. Must add to the rooom's x,y to get map coordinates 41 | std::array room_tile_wall_data; //0: 0 degrees, 1: 90 degrees, 2: 180 degrees, 3: 270 degrees 42 | std::array, 4> possible_doors; //The place booleans must be reset every time the prefab is newly accessed 43 | std::vector open_connections; 44 | int bounds_width = 0; 45 | int bounds_height = 0; 46 | bool placed = false; 47 | RotationType rotation_type; 48 | 49 | #ifndef GAME_COMPILE 50 | private: 51 | static bool IsDoorTile2(int i, int j, cv::Mat& img); 52 | #endif 53 | }; 54 | 55 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/RoomType.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | enum class RoomType 3 | { 4 | Normal, 5 | Start, 6 | Boss, 7 | Treasure, 8 | Shop, 9 | Procedural 10 | }; -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/Tile.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "TileType.h" 3 | #include "ConnectivityGrapher.h" 4 | #include "ConnectionNode.h" 5 | 6 | class Tile 7 | { 8 | public: 9 | Tile(); 10 | Tile(TileType type); 11 | Tile(TileType type, ConnectionNode* node); 12 | 13 | bool IsPathable() const; 14 | bool RoomCanBePlacedOnStrict() const; 15 | bool RoomCanBePlacedOnRelaxed() const; 16 | bool IsRoom() const; 17 | ConnectionNode& GetNode() const; 18 | 19 | TileType type; 20 | ConnectionNode* node; 21 | }; -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/TileType.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | enum class TileType : uint8_t 5 | { 6 | Nothing, 7 | RoomWall, 8 | RoomFloor, 9 | PossibleConnection, 10 | Door, 11 | OpenConnection, 12 | CorridorWall, 13 | CorridorFloor, 14 | CorridorDilatedToMaximum, 15 | CorridorDilatedToMaximumPreviouslyWFC, 16 | WFCFloor, 17 | WFCWall, 18 | FreeWall 19 | }; -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/TileWallData.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "Coord.h" 3 | #include 4 | class TileWallData 5 | { 6 | public: 7 | TileWallData(); 8 | TileWallData(std::vector& tiles, std::vector& walls); 9 | std::vector tiles; //Doesn't overlap with the walls vector below 10 | std::vector walls; //Any possible doors won't be in the walls array. Whether placed or not. I think. Keep track of this for procedural and prefab 11 | }; 12 | 13 | -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/WFCDungeonGenInterface.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | 5 | namespace WFC 6 | { 7 | 8 | class WFCDungeonGenInterface 9 | { 10 | public: 11 | WFCDungeonGenInterface(std::string_view load_disk_path); 12 | int Place(int x, int y, int width, int height); 13 | int PlaceConstantVisualisation(int x, int y, int width, int height); 14 | 15 | private: 16 | std::vector pattern_paths; 17 | }; 18 | 19 | } -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/WFCTileType.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | 5 | namespace WFC 6 | { 7 | struct WFCTileType 8 | { 9 | enum WFCTile 10 | { 11 | Empty, 12 | Floor, 13 | Wall, 14 | NonRoomFloor, 15 | Asteroid 16 | }; 17 | 18 | WFCTile tile; 19 | 20 | bool operator==(const WFCTileType& other) const; 21 | bool operator!=(const WFCTileType& other) const; 22 | 23 | std::tuple ToRGB() const; 24 | void Set(uint8_t r, uint8_t g, uint8_t b); 25 | }; 26 | } -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/WallOffNothingAreas.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "Coord.h" 3 | #include "MapArray.h" 4 | #include "Tile.h" 5 | 6 | class WallOffNothingAreas 7 | { 8 | public: 9 | static void Run(); 10 | 11 | private: 12 | static void FloodFill(Coord start, MapArray& map_copy); 13 | }; -------------------------------------------------------------------------------- /SpaghettiDungeonGen/include/WaveFunctionCollapse.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include "WFCTileType.h" 8 | #include "PatternIndex.h" 9 | #include "Coord.h" 10 | #include "OutputTile.h" 11 | #include "EntropyGrid.h" 12 | 13 | namespace WFC 14 | { 15 | class WaveFunctionCollapse 16 | { 17 | public: 18 | WaveFunctionCollapse(std::string_view json_path, int width, int height); 19 | 20 | boost::multi_array Run(); 21 | boost::multi_array RunVisualiseContinuous(std::function)> callback); 22 | void RunVisualiseOnly(); 23 | 24 | private: 25 | struct Propagation 26 | { 27 | Coord pos; 28 | int pattern_lost; 29 | }; 30 | 31 | std::optional Observe(); 32 | void Collapse(Coord pt); 33 | void Propagate(); 34 | void PropagateToNeighbour(Coord baseline_pos, Coord offset, Direction direction, int pattern_lost); 35 | static constexpr Direction DirectionFromOffset(Coord offset); 36 | void VisualiseOutput(); 37 | boost::multi_array GetOutput(); 38 | boost::multi_array GetOutputDuring(); 39 | 40 | boost::multi_array output; 41 | boost::multi_array has_pattern; //Dimensions are y, x, pattern index 42 | EntropyGrid entropy_grid; 43 | std::queue to_update; 44 | std::vector patterns; 45 | PatternIndex pattern_index; 46 | 47 | int width; 48 | int height; 49 | int n; 50 | }; 51 | } -------------------------------------------------------------------------------- /SpaghettiDungeonGen/main.cpp: -------------------------------------------------------------------------------- 1 | #ifndef GAME_COMPILE 2 | #include 3 | #include 4 | #include 5 | #include "FileManager.h" 6 | #include "RoomPlacer.h" 7 | #include "Pattern.h" 8 | #include "WaveFunctionCollapse.h" 9 | #include "DRandom.h" 10 | 11 | 12 | int main(int argc, char* argv[]) 13 | { 14 | if (argc == 3) 15 | { 16 | boost::random::random_device device; 17 | uint32_t seed = device(); 18 | 19 | boost::filesystem::path tex_path = argv[1]; 20 | boost::filesystem::path json_path = boost::filesystem::change_extension(tex_path, "json"); 21 | 22 | int n = std::stoi(argv[2]); 23 | WFC::Pattern::ImageToJSON(tex_path.string(), json_path.string(), n); 24 | 25 | DRandom rand(seed); 26 | WFC::WaveFunctionCollapse wfc(json_path.string(), 64, 64); 27 | wfc.RunVisualiseOnly(); 28 | } 29 | else if (argc == 1) 30 | { 31 | FileManager::ConvertPatternsToJSON(true); 32 | FileManager::ConvertRoomsToJSON(true); 33 | 34 | while (true) 35 | { 36 | boost::random::random_device device; 37 | uint32_t seed = device(); 38 | //uint32_t seed = 3082447256; 39 | std::cout << "Seed: " << seed << "\n"; 40 | 41 | RoomPlacer rp("C:\\Users\\Example\\Documents\\git\\SpaghettiDungeonGen\\"); 42 | Requirements requirements; 43 | requirements.min_rooms = 30; 44 | requirements.min_boss_distance = 4; 45 | requirements.min_treasure_distance = 3; 46 | requirements.min_shop_distance = 2; 47 | requirements.min_non_start_distance = 2; 48 | rp.PlaceRooms(120, 120, seed, requirements); 49 | } 50 | } 51 | else 52 | { 53 | std::cout << "Unknown number of arguments" << std::endl; 54 | } 55 | 56 | return 0; 57 | } 58 | #endif --------------------------------------------------------------------------------