For a programming project at school i am looking to make a western duel game where you must test your reaction time against an opponent. I was wonder if i can add a time variable to the game, in which i can record the reaction time of the user and also set the reaction time of the opponent?
Here’s a little example, don’t know if it’s accurate enough for you. I assume OnKeyEvent should be more accurate than OnUpdate (I suppose putting it in OnRender with “If Keyboard.KeyDown(Key.Space)” is a bad idea as it is called more or less at 60 fps)