Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Cave Engine

An easy 3D desktop Game Engine scriptable in Python. · By Uniday Studio

Import Python Modules

A topic by almusx created Mar 14, 2024 Views: 172 Replies: 1
Viewing posts 1 to 2

Is it possible to import python modules into your engine?

Yes, it is. But due to the way we currently implement the Python bindings, in order to reduce the amount of extra stuff required to run the game, I've drastically reduced the amount of Python Modules available by default. So if you go to the Engine folder and open the Lib folder, you'll see the modules shipped with the engine. In order to access different modules, you need to add them to this Lib folder and resolve the dependencies (adding them too).

Once you've done that, by restarting the engine you should be able to import the new modules just fine.