Hanxing Yang
Hanxing Yang
Run spx v2.0.0-pre.27 on device with DPR: 2, command: ``` ./spx/go/bin/spx run --goenv=/Users/nighca/code/goplus/builder/spx-gui-desktop/spx --path=/Users/nighca/code/goplus/builder/spx-gui-desktop/project ``` The window size is half of the value specified by field `run` in `assets/index.json`. Example...
Related: https://github.com/goplus/builder/issues/1845
For details, see https://github.com/nighca/builder-experience/issues/29 示例项目中的球(Sprite `d`)在 `show` 之后立刻调用 `glide`,大小不符预期;如果在 `show` 与 `glide` 之间加个 `wait 0.1`,则没有问题
See https://github.com/nighca/builder-experience/issues/17 for project to reproduce.
以下是记录 > ### Sprite pivot (x, y) > > Sprite 的“定位/缩放/旋转参考点”相对其左上角的偏移量,正的 x 表示向右偏移,正的 y 表示向上偏移。 > > 如设置 pivot: 0, 0,则表示该精灵的“定位/缩放/旋转参考点”在其左上角。 > > 那么 sprite x: 0, y: 0 时,精灵的左上角与舞台中心对齐...
Audo-binding is a mechanism / feature: In a project with sprites (named as `Sp1`, `Sp2`, `Sp3`) & sounds (named as `sd1`, `sd2`), if you define vars in `main.spx` as below:...
Errors can occur during game execution. XBuilder aims to display a dedicated error UI when these occur. Ideally, SPX would provide a reliable error detection API, such as an `onError`...
To avoid blocking page interaction. By default, iframe script runs in the same thread as the parent page. See details in https://stackoverflow.com/questions/11510483/will-a-browser-give-an-iframe-a-separate-thread-for-javascript. Running spx / godot in a separate thread...
## Existed APIs #### Type `Color` (spx v1) alias for `image/color.RGBA` ```go type RGBA struct { R, G, B, A uint8 } func (c RGBA) RGBA() (r, g, b, a...
It is a linear curve used for animating APIs like `step` and `glide`. Using other curves like cubic Bézier by default could offer a more natural feel.