As someone burned by this in the past, I’ll give you the same advice I give everyone that asks this. Go and talk to an accountant. Honestly, there is so many more rules and loopholes that if you try and do it all yourself
A) you’ll lose tons of time you could be making games
B) you’ll probably lose money in the long run because you don’t know what to take advantage of.
If you know an accountant, get a feel from the situation from them first, if you don’t, I highly recommend speaking to your local enterprise board, just so they can give advice specific to your circumstances.
Finance world is a lot more complicated than you think :D