Hanxing Yang

Results 222 issues of Hanxing Yang

https://github.com/goplus/builder/pull/676#discussion_r1718368773 Widget 目前有已知问题如下: `getWidget` 的定义使用了泛型(见 [`Gopt_Game_Gopx_GetWidget`](https://github.com/goplus/spx/blob/3df776b555a0532999520609e172f45c1816de49/game.go#L1358)),ispx 这里使用 `qexp -outdir pkg github.com/goplus/spx` 来生成 package `spx` 的导出信息供运行时使用;但 qexp 目前默认会跳过基于泛型的函数定义 ``` ➜ go generate 2024/08/15 20:12:28 process [github.com/goplus/spx] 2024/08/15 20:12:34 skip typeparam func...

Issues related to font: * Text not scaling and positioning right, see details in https://github.com/goplus/spx/pull/306#issue-2429494956 * Custom font file not supported, see details in https://github.com/goplus/spx/pull/306#discussion_r1705040456 * Text size calculation not...

![Image](https://github.com/user-attachments/assets/e9375073-ca5b-45ba-b644-d953bcc51c5c)

Define type for "any Sprite instance", e.g. ```go type ISprite interface { IEventSink Animate(name string) Ask(msg interface{}) BounceOffEdge() Bounds() *math32.RotatedRect ChangeEffect(kind EffectKind, delta float64) ChangeHeading(dir float64) ChangePenColor(delta float64) ChangePenHue(delta float64)...

Ideally `die` should stop all behaviors of current sprite, which includes: * Any event listening * Any future code (?) * Relationship with `Game.Stop` * What about dying (when there...

For undecided problems, comment here. For confirmed bugs, create a standalone issue.

* Fixed viewport size * Custom map size, which may be larger than viewport ### Problems * What's the default behavior? - Should we resize? - Should we follow sprite?...

### Basics * Each game contains one or more scenes. * Each scene contains one or more backdrops Multiple backdrops support (in one scene) is mainly for backward compatibility, and...