animation works properly in GPU rendering

also added a pause music event when the game is paused.