So the scenario is that im creating a game. the game is 2d real time. Everything is happening in seconds. I have though about this hard and im going with client server model to prevent my game from hacking/modification. I know if its single player one shouldnt worry but I have to. I need to understand how to put the game mechanics code on server. So that the client is only sending inputs. as per my understanding this is how it will go down. Game: items are coming at the player every second.player has only three options swipe up to jump swipe down to crouch. or third option use booster by tapping on booster i.e slow motion etc. the main thing "Highscore" is being updated on how much time has passed. now before server scene i had the item generation code in update. and swipe movement in update. What should i do? I am using azure gaming servers. Will there be a latency issue? because if there will be im screwed cuz aeverything is happening in real time. Can afford delays. even milli seconds. how do i build a workflow around this so that everything is 100% secure.' Please Kindly Dont write about "single player games should not worry.etc. "