I’m trying to draw a hexagon shaped asteroid on a clone of Asteroids I’m making for a class.
sprite = new Polygon();
sprite.addPoint(0,0);
sprite.addPoint(0,-40);
sprite.addPoint(30,-40);
sprite.addPoint(60,-10);
sprite.addPoint(60,20);
sprite.addPoint(40,50);
sprite.addPoint(-20,50);
sprite.addPoint(-50,20);
sprite.addPoint(50,-10);
sprite.addPoint(20,-40);
Yet when I do it, I end up with this

So what is going wrong? I drew it out on a coordinate plane, and copied the points over. It was my understanding that Java would draw it out in the order I listed the points, and I had the (0,0) in there in the interest of rotating the asteroid for the game.
It’s not really a hexagon, the last two points look strange
Think those final two should be:
but even with that, its going to look a lop-sided pacman – back to the drawing board I think.