I’m guessing it would be exactly the same. If you publish the video game and make a profit with it, it’s probably a violation of your student visa terms, as long as you’re here on an F1.
You can probably publish the game for free, and as long as you don’t make any profits, that should be OK. Or you can wait until you graduate.