# Tileset

### Difficulty: 8/10 :  <img src="https://1229800202-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQAkTlyeVttU3CJdmYk%2F-MfzOs8r_UzTe7WhP3Tc%2F-MfzUfw8K_-NmT2OXaHy%2Fdifficulty_8.png?alt=media&#x26;token=237013b1-2d9d-4ea5-8c3d-dcb63643c58e" alt="" data-size="original"> (due to amount of spriting/planning\&creativity)

\
Here is where the asset bundles start coming into play.&#x20;

Now we want to copy a base game tileset and resprite that, of course, we don't \*have\* to, but if you want to make your own just look at how expand did it once: <https://raw.githubusercontent.com/ApacheThunder/ExpandTheGungeon/dac3f0f977948c2461cbe8f9de34ee40857daa81/ExpandTheGungeon/ExpandObjects/ExpandDungeonCollections/ENV_Tileset_Belly.cs>

;)

### Example tileset for rat floor:

<img src="https://1229800202-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQAkTlyeVttU3CJdmYk%2F-Mg-RH8frbhAZ-vqo3VG%2F-Mg-XG0e4vbHL8Cna1Gx%2FENV_Tileset_FloorName.png?alt=media&#x26;token=86928dde-dd91-4a1c-9237-7e2343c5c1e5" alt="" data-size="original">&#x20;

> light green is floor \
> dark green is the tiles that go between walls and floor tiles \
> orange is the bottom half of the wall \
> dark orange is the top half of the wall (the darker oranges is a different set of walls) \
> dark blue is the bit over the walls \
> light blue is the pit the slightly darker light blue goes outside the rooms so it isnt completely dark \
> the turquoise is used between the floor tiles and a pit \
> hot pink is the floor tiles that go around pits and the crosses show which walls go together \
> the pink in the dark green squares shows where the wall would be

### Example tileset for Gungeon Proper

<img src="https://1229800202-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQAkTlyeVttU3CJdmYk%2F-Mg-RH8frbhAZ-vqo3VG%2F-Mg-YHtReOLHNzQy4W6B%2FENV_Tileset_FloorName.png?alt=media&#x26;token=80b11197-55bb-4cbd-957a-988c8fa2dc7d" alt="" data-size="original"> <br>

> the white tiles are unused tiles.

once you've got your tileset (or you can just use one of these as a placeholder) you need to place it into your assetbundle.

we are going to go back into the ModPrefabs file and add this\
`public static Texture2D ENV_Tileset_FloorName;`

and in the InitCustomPrefabs add:\
`ENV_Tileset_FloorName = ModAssets.LoadAsset("ENV_Tileset_FloorName");`<br>

Now we can access the tileset from anywhere

\
Now we need to make a new script called CustomValidTilesets.\
delete the class.

paste in:

```csharp
public enum CustomValidTilesets
    {
        GUNGEON = 1,
        CASTLEGEON = 2,
        SEWERGEON = 4,
        CATHEDRALGEON = 8,
        MINEGEON = 16,
        CATACOMBGEON = 32,
        FORGEGEON = 64,
        HELLGEON = 128,
        SPACEGEON = 256,
        PHOBOSGEON = 512,
        WESTGEON = 1024,
        OFFICEGEON = 2048,
        BELLYGEON = 4096,
        JUNGLEGEON = 8192,
        FINALGEON = 16384,
        RATGEON = 32768,
        FLOORNAMEGEON = 69696969 //DO NOT USE THIS NUMBER TO AVOID CONFLICTS
    }
```
