PlayN - Repeat image in background layer

2019-09-11 14:51发布

问题:

How I can repeat (X and Y) an image in background layer?

回答1:

I believe this code does something similar:

final ImageLayer bgLayer = graphics().createImageLayer(bgImage);
bgLayer.setRepeatX(true);
bgLayer.setRepeatY(true);
graphics().rootLayer().add(bgLayer);


标签: java playn