Java Video Tutorial 57

Make a Java Asteroids GameIn this video I continue making a Java Asteroids game while teaching about OOP design principles. In previous videos I showed how to make a Java UML class diagram and then we turned the UML class diagram into a class.

Here I finish up the class so that you can now fly your ship in any direction. You’ll also be able to keep it on the game board and use life like velocity that accelerates.

All of the code is below and is heavily commented to help you learn.

Continue reading Java Video Tutorial 57

Java Video Tutorial 56

Java-Video-Tutorial-56In this part of my Java video tutorial I turn the SpaceShip UML class diagram I designed in the last video into a real class.

This class will allow you to fly the space ship around the screen at any angle. You’ll be able to rotate it while maintaining the ships current direction. It is considered to be a pretty complicated technique that is squeezed into a few lines 🙂

All of the code follows the video below to improve your learning experience.

Continue reading Java Video Tutorial 56

Java Video Tutorial 55

Java OOP Design PrinciplesIn this part of my Java video tutorial I focus on Java OOP Design Principles. We are still making the game we started in make a Java game, but now I’m creating all of the needed parts with strong use of encapsulation.

I walk you through the think process of going from features needed to a finished UML class diagram. I know this is an odd way to talk about OOP design principles, but I wanted to present it in a new fresh way.

What’s better than making a game while learning OOP?

Continue reading Java Video Tutorial 55

Java Collision Detection With Polygons

Java Collision Detection With PolygonsI’ve been asked many times to create a program that handles Java collision detection with polygons. This is a continuation of my tutorial on how to make a Java video game and if you haven’t been watching you should check it out.

It is surprisingly easy to handle collision detection with polygons. All you have to do is surround all of your polygons with rectangles and a handy dandy method named intersects handles pretty much everything else!

All the code follows the video.

Continue reading Java Collision Detection With Polygons

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…

Continue reading Java Video Tutorial 53

Black Bean Veggie Burger Recipe

Black Bean Veggie Burger RecipeHere I introduce my Black Bean Veggie Burger Recipe! You guys and girls seem to really like when I make recipe videos, so I thought I’d make another.

I’ve tried many different veggie burger recipes and this is definitely my favorite. It holds together wonderfully without putting it in the refrigerator. It also is packed with a ton of interesting tastes and textures.

My wife helped me with this, so no my hands didn’t shrink 🙂

Continue reading Black Bean Veggie Burger Recipe

Java Video Tutorial 52

Make a Java GameIn this part of my Java video tutorial, I create the spaceship object and a keyboard listener. I will use the keyboard listener to move the ship around the screen.

It is so easy to randomly add objects to the game we started making here Make a Java Video Game. I slowed things down a bit here, just to make sure you completely get the process.

All of the code is available under the video. Please feel free to ask questions.

Continue reading Java Video Tutorial 52

Cook Without A Recipe

Cooking Without a RecipeThe other day I found that I didn’t have the normal supplies to make a meal. So, I decided to take the knowledge passed down to me by my Great Grandmother to cook without a recipe. In this video you’ll see how I did that.

The goal is to make a meal that targets all 5 tastes : sweet, bitter, salty, savory and sour. In doing so, I was able to turn a few random ingredients into a yummy soup.

All of the terms I use here came from my grandmother, so don’t attack me culinary experts 🙂

Continue reading Cook Without A Recipe

Java Video Tutorial 51

Java Animating SpritesHere I continue what I started in Make a Java Video Game. If you haven’t seen it, watch it before this video.

I’ll now create the GameBoard class that will animate all of my asteroids. I redraw the board using threads. If you are rusty on them, check out my Java Thread Video Tutorial.

The code follows the video and should be used to help you better learn this material.

Continue reading Java Video Tutorial 51

Java Video Tutorial 50

Make a Video Game JavaI wanted to make the 50th part of my Java Video Tutorial special! In this tutorial, I answer numerous questions.

I begin showing you how to design a game like Asteroids. I start teaching OOP design principles using UML. You learn how to draw polygons on the screen and how to animate them. And, to top it all off I show you how collision detection works.

Yes, there is a lot in this 14 minute video 🙂

Continue reading Java Video Tutorial 50

Java Video Tutorial 49

Make a Java Paint AppIn this part of my Java Video Tutorial, I continue to show you how to make a Java paint application. If you missed part 1 watch it.

I cover numerous topics including: how to draw lines, ellipses, brush strokes. I also cover how to save transparency values for shapes. And, because you requested it how to create a custom event listener and much more.

All of the code follows the video and it is heavily commented. After this tutorial, you’ll be able to make an app with much of the functionality of Photoshop.

Continue reading Java Video Tutorial 49