next we make use of a built in function to limit the range that textures can be drawn to, before drawing our solid surfaces, just like last time:

the second for loop is new however it runs a custom function which renders textures from all the sprite/tile layers in the currently loaded room onto the second half of the texture page.