Java
- 23 ответа
- 0 вопросов
20
Вклад в тег
sb.begin();
Texture unnamed = new Texture("unnamed.png");
int width = unnamed.getWidth();
int height = unnamed.getHeight();
sb.draw(unnamed, 350, 350, width, height, 0, 0, width, height, true, false);
sb.end();
sb.begin();
Texture unnamed = new Texture("unnamed.png");
Sprite sprite = new Sprite(unnamed);
sprite.flip(true, false);
sprite.setCenter(700, 600);
sprite.draw(sb);
sb.end();