builder
builder copied to clipboard
spx: global variables' definition
1. About 1st var block
It is by design of Go+ classfile: only the first var block will be transformed to fields of result class (struct). The following var blocks will be transformed to global variables in package.
We may leverage "auto-format" to merge multiple var blocks — package-scope global variables are meant to be avoid.
2. About auto loadSprite
At least we should not panic even if loadSprite failed. https://github.com/goplus/spx/issues/330