A simple calculator made with the CDK's trigger system. The calculator only supports 2 operands, and can only work with
A simple calculator made with the CDK's trigger system. The calculator only supports 2 operands, and can only work with whole numbers.
Inputs are modeled as tanks. Shoot the tanks to trigger the input that corresponds to the name above the tank.
The calculator behaves much like a standard 4-function calculator: use the number inputs to enter the first number, enter the arithmetic operator, enter the second number, then hit equals.
The "screen" of the calculator is a small text popup just below the middle of the screen.
The "Clear All" input will reset the input equation.
The "Clear" input is a little bit more complicated. If you have not yet entered an operator, "Clear" will clear the first number. If you have entered an operator, "Clear" will clear the second number, returning the calculator to the state it was in when you entered the first number.
Note: this is a single mission. Unfortunately I haven't been able to get this working in multiplayer battles.
Developed and tested on WT version 2.7.0.182. It should work on other versions, but this is the only one I've tested it on.
v0.2 Changelog:
Made calculator display persistent