At the heart of every game is user interaction between the player and the game. The basis of this interaction is an input/output cycle. Input is when a user provides information to the software. For example, types of player input could include pressing a directional control pad or using a joystick to move the player character, clicking a button to fire a weapon, selecting dialog choices from a menu, or entering text to name the player character. In turn, the game or software can produce output in the opposite direction, providing information or game results to the player. Examples can include displaying non-player dialog, informing the player about battle results, and playing sound effects to alert the player about a nearby enemy.
You can see that a game is a give-and-take relationship between the software and the player. We can also think of several types of input devices and methods, which vary depending on the game and the platform (or system). Some possibilities include:
- Keyboard: The keyboard is a standard input method for computer games. In addition to text input, the keyboard can be used to control player actions and other functionality, such as the game camera.
- Touch-screen: Touch-screens are a primary input method for games on smartphones and tablets. The Nintendo DS also has a touch-screen, which is paired with a stylus. For smart phones and tablets, games might also have an onscreen keyboard to replace the physical ones from computers.
- Mouse and pointer: If you are using a computer, you will probably use a mouse to point and click or even move, combined with a keyboard.
- Gamepad/controller: Most game consoles come with some sort of gamepad or controller. At the least, there are usually some buttons, and there may also be analog sticks (similar to mini-joysticks) and shoulder buttons for additional controls.
- Joystick: A common sight in arcades, the joystick is the common input device for arcade cabinets, but also some computer games can be controlled by a plug-in joystick.
- Microphone: Some games, such as several Legend of Zelda games on Nintendo DS, allow the player to use sound and breath to provide input and meet challenges.
- Motion sensors: Systems such as the Nintendo Wii and Microsoft Kinect use devices that detect player motion and react accordingly. Smartphones and tablets might also use accelerometers to track changes in device height, angle, and other motion variables.
- Other specialized devices: Some games have specific special input devices. For example, the original NES system had a light gun for games such as Duck Hunt. Popular arcade game Dance Dance Revolution required a foot pad to process players' dance steps, and Guitar Hero provides a special guitar replica device.
As far as output, there are several common means and devices, such as:
- Screen: Probably the most common output device for video games. The game can present text and graphics to the player. However, some games might not need a screen. For example, they might be based on audio.
- Speakers: Game sound effects, and even music, are an important way for the game to convey information to players. Some visually-impaired players have even been able to enjoy mainstream games using just sound alone (for example: https://kotaku.com/5766791/how-a-blind-man-plays-video-games). With devices such as Alexa, as well as screen readers and other software, there are surely plenty of opportunities to make audio-based games.
- Controllers: Some systems include controllers that implement vibration, based on what's happening in the game. For example, if there is an in-game explosion, the controller might vibrate, and the vibration intensity could vary, depending on how close the player is to the explosion.
One of the first things you see in many games is an introduction screen and an instruction to press a button to start. Then there might be some sort of backstory text to introduce you to the game's context. This approach was particularly true with older games, before technology allowed long, elaborate cut scenes. For example, have a look at the introduction for the original Legend of Zelda game on the NES: https://www.youtube.com/watch?v=CcCAYwh_05I.