Chest spawns direction based on player direction

I realize the math looks a bit convoluted. I don't really understand why the +4 is actually needed there, but it does seem to center the item more on screen so I went with it. If you can come up with something cleaner that works better, by all means.