Rotate the room and make a gravity based ball react to the changed course. Very simple. Made with Game Maker 8.0.