Blender Game Engine

There are two ways to create games with Blender and Python. Firstly the object-oriented way, wherein every object has it’s own script, which is executed every frame. Secondly the way, wherein the game runs in a mainloop, which calls the different funcions of the objects (like in pygame). Both use cases are shown in the following sections.