Java 类org.newdawn.slick.geom.Path 实例源码

项目:SpaceDefence    文件:Board.java   
public Board(Vector2f pos, Vector2f size){
    //shape = new Rectangle(pos.x, pos.y, size.x, size.y);
    shape = new Path(pos.x, pos.y);
    shape.lineTo(pos.x, pos.y + size.y);
    shape.lineTo(pos.x + size.x, pos.y + size.y);
    shape.lineTo(pos.x + size.x, pos.y);
    shape.lineTo(pos.x, pos.y);
}