List of usage examples for com.badlogic.gdx.math Polygon Polygon
public Polygon(float[] vertices)
From source file:at.therefactory.jewelthief.actors.enemies.Bandit.java
License:Open Source License
@Override public Polygon getPolygon() { float x = getPosition().x; float y = getPosition().y; float[] vertices = { x + 5, y - 10, x + 13, y + 2, x + 13, y + 7, x + 10, y + 10, x + 7, y, x, y + 10, x - 4, y + 10, x - 14, y + 5, x - 14, y - 1, x - 12, y - 8, x - 14, y - 8, x - 14, y - 11, x - 9, y - 11, x - 5, y - 5, x, y - 10 }; return new Polygon(vertices); }
From source file:at.therefactory.jewelthief.actors.enemies.Bat.java
License:Open Source License
@Override public Polygon getPolygon() { float x = getPosition().x; float y = getPosition().y; float[] vertices = { x + 16, y - 5, x + 16, y + 1, x + 8, y + 9, x, y + 8, x - 8, y + 9, x - 16, y + 1, x - 16, y - 5, x, y - 9 };//from ww w .j av a2 s .c o m return new Polygon(vertices); }
From source file:at.therefactory.jewelthief.actors.enemies.Battlecopter.java
License:Open Source License
@Override public Polygon getPolygon() { float x = getPosition().x; float y = getPosition().y; float[] vertices = { x + 13, y, x + 14, y + 3, x + 10, y + 7, x + 6, y, x + 3, y, x - 5, y + 6, x + 3, y + 8, x - 15, y + 6, x - 7, y + 4, x - 14, y - 1, x - 14, y - 8, x - 9, y - 6, x - 9, y - 8, x - 4, y - 8, x - 2, y - 5, };//from www .ja va 2 s. c o m return new Polygon(vertices); }
From source file:at.therefactory.jewelthief.actors.enemies.Battleship.java
License:Open Source License
@Override public Polygon getPolygon() { float x = getPosition().x; float y = getPosition().y; float[] vertices = { x + 16, y - 5, x + 16, y + 3, x + 2, y + 5, x + 2, y + 12, x - 4, y + 12, x - 6, y, x - 16, y, x - 16, y - 9, x - 14, y - 12, x + 11, y - 12 }; return new Polygon(vertices); }
From source file:at.therefactory.jewelthief.actors.enemies.BigBandit.java
License:Open Source License
@Override public Polygon getPolygon() { float x = getPosition().x; float y = getPosition().y; float[] vertices = { x, y - 16, x + 2, y - 8, x + 16, y + 2, x + 16, y + 12, x, y + 12, x - 1, y + 15, x - 5, y + 15, x - 8, y + 10, x - 11, y + 16, x - 14, y + 12, x - 11, y + 1, x - 16, y, x - 16, y - 3, x - 8, y - 8, x - 7, y - 15 }; return new Polygon(vertices); }
From source file:at.therefactory.jewelthief.actors.enemies.Camel.java
License:Open Source License
@Override public Polygon getPolygon() { float x = getPosition().x; float y = getPosition().y; float[] vertices = { x + 6, y - 10, x + 9, y - 5, x + 6, y - 2, x + 10, y + 3, x + 10, y + 7, x + 13, y + 7, x + 13, y + 10, x + 7, y + 10, x + 7, y + 4, x + 3, y + 4, x + 1, y + 10, x - 4, y + 8, x - 9, y + 10, x - 13, y - 2, x - 13, y - 10, x - 7, y - 10, x - 3, y - 4, x + 1, y - 10 }; return new Polygon(vertices); }
From source file:at.therefactory.jewelthief.actors.enemies.Cloud.java
License:Open Source License
@Override public Polygon getPolygon() { float x = getPosition().x; float y = getPosition().y; float[] vertices = { x + 36, y - 1, x + 18, y + 11, x + 5, y + 8, x - 5, y + 12, x - 25, y + 10, x - 36, y + 2, x - 32, y - 10, x - 15, y - 8, x + 2, y - 12, x + 18, y - 12, x + 34, y - 7, }; return new Polygon(vertices); }
From source file:at.therefactory.jewelthief.actors.enemies.Drop.java
License:Open Source License
@Override public Polygon getPolygon() { float x = getPosition().x; float y = getPosition().y; float[] vertices = { x + 5, y - 3, x, y + 9, x - 5, y - 3, x - 2, y - 9, x + 2, y - 9 }; return new Polygon(vertices); }
From source file:at.therefactory.jewelthief.actors.enemies.Helicopter.java
License:Open Source License
@Override public Polygon getPolygon() { float x = getPosition().x; float y = getPosition().y; float[] vertices = { x + 16, y - 3, x + 8, y + 3, x + 13, y + 5, x + 13, y + 6, x - 4, y + 6, x - 16, y + 7, x - 11, y + 4, x - 16, y - 1, x - 6, y - 1, x - 3, y - 7, x + 11, y - 7, }; return new Polygon(vertices); }
From source file:at.therefactory.jewelthief.actors.enemies.Sailboat.java
License:Open Source License
@Override public Polygon getPolygon() { float x = getPosition().x; float y = getPosition().y; float[] vertices = { x + 16, y - 5, x + 6, y + 10, x + 3, y + 8, x - 3, y + 14, x - 9, y + 11, x - 6, y + 7, x - 15, y + 5, x - 15, y - 13, x + 10, y - 13 }; return new Polygon(vertices); }