I have collected items during a mini game, will I have it if I quit the mini game?

Yes. Any rewards obtained during a mini game will immediately be added to your game account.