Is it possible to use
local composer=require "composer"
in a module without the scene functions of composer, so I have access to (for example) the composer.state tables and values inside the module?
Can this cause problems during a scene change?
With module I mean something like this:
local mod={} local composer=require "composer" loca dostuff=function() -- code here composer.state.money=1000 end mod.dostuff=dostuff return mod
I then require the module inside a “normal” composer scene at top of this scene with:
local module=require("module")
Can this be done without “problems” during a scene change, reload of the scene, etc.?