You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
我在 test/camera 里补充了个示例。是我最近在做 demo 时写的一个小玩意。
代码在 https://github.com/ejoy/ant/blob/master/test/camera/pkg/ant.test.camera/gameobject.lua
使用时这样初始化一个对象,设置 x y r 。x y 为 2d 坐标,r 是朝向的角度值。
这样就可以让这个对象绕原点旋转:
在 data_changed 这个 stage 更新它们:
Beta Was this translation helpful? Give feedback.
All reactions