You didn't give much background of what your experience has a dev. so It`s hard to say if you you can just switch to the same salary.
I personnaly made the switch for 1 1/2 year, I was a backend java dev (jboss, srping, hibernate) and switched to a game job doind backend server work at a similar salary* .
So has long you can translate your work in the new job you should be fine, I saw poeple switch from iOs/android apps dev or web dev to game witout losing any salary doing game.
* :my yearly was actually increased but my hourly salary was somewhat the same.
Note that the gaming industry can be rough (even the casual gaming one) with long hour and crazy deadline, be prepare to work much more than the normal 40hr/week you normaly see.