Java Video Tutorial 53

Rotate Polygons JavaI first started the how to make Java games series to solve a bunch of problems. Many people in the forms are posting extremely complicated ways to rotate polygons in Java for example. It is very easy to rotate polygons!

I also saw many people struggle with other calculations like: Finding the length and angle of a line between vectors / Calculate the points of a rotating polygon / Calculate the area of irregular polygons / Find the center points of an irregular polygon / Repeat keyboard clicks if the user holds down a key…

This tutorial answers all of those questions and much more.

If you like videos like this, please tell Google [googleplusone]

Sharing is always appreciated [nttfblike]

Code From the Video

GAMEBOARD.JAVA

SPACESHIP.JAVA

ROCK.JAVA

4 thoughts on “Java Video Tutorial 53”

  1. Thank you for the series of wonderful tutorial. I am currently working on a slime mold simulation project and your tutorials give me plenty to start with.

    I do have a question: is there a specific reason why you are extending GameDrawingPanel2 using JComponent instead of JPanel? has it this something to do with using awt and not swing?

    Mei

    1. Thank you 🙂 I’m glad I was able to help. JComponent is just a base class for objects, while JPanel is used normally for layout purposes. Since I was just drawing on the screen I didn’t need the extra stuff that comes with JPanel

Leave a Reply

Your email address will not be published. Required fields are marked *