Output - pddring/cpu-battle-tank GitHub Wiki

image

The Little Man Computer has 4 different output devices which can be used to control the tank:

  1. User output: This displays the contents of the accumulator register to the screen in a popup box
  2. Movement: This lets you move the tank forwards and backwards
  3. Steering: This lets you change the direction that the tank is currently facing.
  4. Aim: This lets you change the direction that the gun is currently facing.
  5. Weapons: This lets you shoot in the direction that the gun is currently facing.

Change the drop down boxes to see explanations and code samples for each output device.