Algo de codigo:
CLASE JUEGO
Código:
CLASE RECTprivate Stage escenario;
private Actor bola,rect;
private OrthographicCamera cam;
public Juego(Game juego) {
super(juego);
escenario = new Stage();
bola = new Bola();
rect = new Rect()
rect.getarray();
Código:
Muchas gracias por adelantado private Array<Vector2> arrayvertices;
public Rect() {
textura = new Texture("rect.png");
sprite = new Sprite(textura);}
public Array<Vector2> getarray(){
return arrayvertices;
}


