```
//Draw event
depth = -y;
addedDepth = 50
if (obj_player.y < y)
{
// TOP
draw_sprite_pos(spr_wall, 0, x - hdepth - addedDepth, y - vdepth - addedDepth, x + 128 - hdepth + addedDepth, y - vdepth - addedDepth, x + 128, y, x, y, 1);
}
if (obj_player.x > x)
{
// RIGHT
draw_sprite_pos(spr_wall, 0, x + 128, y, x + 128 - hdepth + addedDepth, y - vdepth - addedDepth, x + 128 - hdepth + addedDepth, y + 128 - vdepth + addedDepth, x + 128, y + 128, 1);
}
if (obj_player.y > y)
{
// BOTTOM
draw_sprite_pos(spr_wall, 0, x - hdepth - addedDepth, y + 128 - vdepth + addedDepth, x + 128 - hdepth + addedDepth, y + 128 - vdepth + addedDepth, x + 128, y + 128, x, y + 128, 1);
}
if (obj_player.x < x)
{
// LEFT
draw_sprite_pos(spr_wall, 0, x, y, x - hdepth - addedDepth, y - vdepth - addedDepth, x - hdepth - addedDepth, y + 128 - vdepth + addedDepth, x, y + 128, 1);
}
//This might be upsidedown. You'll have to swap it and figure it out.
draw_sprite_pos(spr_roof,0,x-hdepth-addedDepth,y - vdepth-addedDepth,x-hdepth+addedDepth+128,y-vdepth-addedDepth,x-hdepth+addedDepth+128,y-vdepth+addedDepth+128,x-hdepth-addedDepth,y-vdepth+addedDepth+128,1);
```