A game engine is software used to create and run video games. It provides developers with tools and systems that handle graphics, physics, sound, animation, and input, so they do not have to build everything from scratch.
At its core, a game engine controls the game loop. The game loop constantly repeats several steps: it reads player input (keyboard, controller, mouse), updates the game world (movement, physics, AI), and renders graphics to the screen. This loop runs many times per second.
Game engines include several important components. The rendering engine draws 2D or 3D graphics. The physics engine simulates movement, gravity, and collisions. The audio engine handles sound effects and music. There are also systems for artificial intelligence, networking, and animation.
Popular game engines include Unity, Unreal Engine, and Godot. Developers use programming languages like C# or C++ within these engines to control gameplay mechanics.
Game engines also include development tools such as visual editors, asset managers, and debugging systems. These tools allow designers and artists to build game worlds without deep programming knowledge.
In summary, a game engine is a complete software framework that manages graphics, physics, sound, and logic to make video games interactive and functional.