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)- Pick a release from defold/extension-poco releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. require('poco.lua.defold-poco')in a script or GUI script.- Call
poco:init_server(15004)ininit. - Call
poco:server_loop()inupdate. - Add custom functions the client can call with
poco:set_dispatch_fn.
- Pick a release from defold/extension-poco releases and add its Source code (zip) URL (or a packaged
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.