An electronic toy gun for a toy shooting game includes an infrared beam
emitter, a trigger, a game data input device, and an internal processor.
The infrared beam emitter is configured to emit an encoded infrared beam.
The trigger is configured to activate a state of emission of the infrared
beam by the infrared beam emitter so as to indicate that a weapon is
being fired. The game data input device is configured to receive game
data input from a user. The internal processor is configured to receive
the game data input from the game data input device and to cause the
infrared beam emitter to emit an infrared beam that is coded with one of
a plurality of codes based on the game data input.