Frequently Asked QuestionsΒΆ
- Why is there both C++ and Python code?
The engine core is implemented in modern C++ for performance while the higher level game logic can be scripted in Python. The Python bindings expose the C++ classes to Python using nanobind.
- How do I use my own SDL2 renderer?
Functions such as
load_textureandRenderQueue.renderaccept integer values that are cast back toSDL_Renderer*on the C++ side. Passint(renderer_ptr)frompysdl2to integrate your existing rendering pipeline.