Skip to Content
defold-typescript libraries
defold (official)

defold/extension-poco

A native extension that implements the Poco test automation API, so Python test scripts on a computer can dump the scene graph and send clicks, swipes and key events to a running game. It ships the poco.lua.defold-poco Lua server module and a native poco_helper module (dump, click, swipe, keyevent), plus a test project and Python example scripts.

Lua API not typed — upstream ships no .script_api, so resolve skips it.

  • GitHub: defold/extension-poco — pinned to 1.0.2 (released while Defold 1.2.192 was current)
    1. Pick a release from defold/extension-poco releases and add its Source code (zip) URL (or a packaged .zip asset, if the library ships one) to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. require('poco.lua.defold-poco') in a script or GUI script.
    3. Call poco:init_server(15004) in init.
    4. Call poco:server_loop() in update.
    5. Add custom functions the client can call with poco:set_dispatch_fn.

Engine APIs

poco:set_view_proj and poco:set_gui_view_proj take view projection matrices built with vmath, which default to the identity matrix.

On this page