草庐IT

android - 这是在 LibGdx 中检测矩形触摸的正确方法吗?似乎对我不起作用

这是我的游戏屏幕的代码,我希望在触摸它时爆破我的气球。方向是纵向。但它似乎对我不起作用。publicclassGameScreenimplementsScreen{finalBBgame;privateBitmapFontfont;privatestaticfinalintno_of_frames=2;TextureballonFrames;TextureRegion[]burstFrames=newTextureRegion[no_of_frames];AnimationburstAnimation;Arrayballons;TextureRegioncurrentFrame;lon