【发布时间】:2019-08-15 22:14:05
【问题描述】:
所以,我正在尝试使用 JavaFX 创建游戏。我知道大部分基础知识,但我对如何在 JavaFX 中创建精灵运行周期感到困惑。
我希望能够使用一种方法调用运行周期,例如:
public static void runCycle(){
// execute run cycle, I think the Animation class may help here?
// move image as well, I got that nailed down already though.
}
我知道这不是 MRE,但我正在尝试集思广益,所以如果您有任何建议,请告诉我! :)
链接的图像是精灵表,如果有人可以帮助我解决这个问题,那就太好了。谢谢!
【问题讨论】: