options.add(new MenuItem(opt[i]));
options.get(i).setX(model.width / 2);
options.get(i).setY((i * 25) + ((model.height / 2) - (opt.length * 25)));
}
pointer = new Sprite(">>");
char[][] bset = new char[10][50];
for(int y = 0; y < bset.length; y++){
for(int x = 0; x < bset[y].length; x++){
if(x == 0 || x == bset[y].length - 1){
bset[y][x] = '|';
if(y == 0 || y == bset.length - 1){
bset[y][x] = '+';
}
}else if(y == 0 || y == bset.length - 1){
bset[y][x] = '-';
}else{
bset[y][x] = ' ';
}
}
}
border = new Sprite(bset);
border.setX(options.get(0).getX() - 50);
border.setY(options.get(0).getY() - 25);
border.fill(true);
pointer.setX(options.get(select).getX() - (pointer.getCharSet().length * 25));
pointer.setY(options.get(select).getY());
bg = new Sprite(model.getMap("menu").getRaw()[2]);
bg2 = new Sprite(model.getMap("menu").getRaw()[2]);
bg2.setX(-bg.getCharSet().length * 24);
bg.setXVel(0.01);
bg2.setXVel(0.01);