How to move two boxes at multiplayer if input buffer reads only one character at a time?

48 Views Asked by At

I am writing an assembly program for two boxes moving at the same time and I want the two players on the same pc to move with each other. How to do that with int 16h/1 and int 16h/0

I tried it with int 16 but could not find a solution.

1

There are 1 best solutions below

1
Sep Roland On

The problem that you're describing was solved in Making a pong game in assembly, how do I get an input of multiple keystrokes at once?.

Of course, you'll have to swap my colored boxes for your moving boxes, but the underlying methods are the same. Good luck and ask another question if implementing poses some specific trouble(s).