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

Java Video Tutorial 48

Make a Java Paint ApplicationThis tutorial is going to be a ton of fun. Today I’ll show you how to Make a Java Paint Application!

One of you guys asked me to do this and it gives me a great opportunity to review and cover new topics all at once. Somethings I cover that you may want to brush up on include using the Java Box Layout, Java ArrayList, and Java Graphics2D.

All of the code follows the video and it is heavily commented. If you have questions, feel free to ask. Everything used is here Zipped Archive

Continue reading Java Video Tutorial 48

Java Video Tutorial 47

Java 2D Graphics TutorialIn this part of my Java Video Tutorial, I cover how to draw 2D graphics in Java. This tutorial will serve as an introduction before I make a paint application with Java.

I cover drawing lines, curves, ellipses, rectangles and numerous other shapes. Then we look at strokes, fills and gradients.

All of the code follows the video and can serve as a cheat sheet, or an additional teaching tool.

Continue reading Java Video Tutorial 47

Java Video Tutorial 46

JDOM2 Video TutorialToday I introduce the easiest way to read and write to XML files using Java. It is call the JDOM2 library. With it you’ll easily read any element, or attribute and create your own.

I introduce 10 libraries and show you numerous methods that will make your life easier in just 14 minutes!

All of the code follows the video to improve the learning process.

Continue reading Java Video Tutorial 46

Java Video Tutorial 45

Java XPATH Video TutorialI received a bunch of emails asking me to make a tutorial on Java XPath. I guess you liked my previous XML XPath tutorial?

XPath can be used to easily grab data from an XML file and into your Java code. I’ll cover how to write to an XML file the easy way in my next tutorial on JDOM2.

All of the code follows the video, and it is heavily commented to help you learn.

Continue reading Java Video Tutorial 45

Java Video Tutorial 44

Parse XML JavaAfter I made my XML Video Tutorial, you asked me to show you how to parse XML with Java. So, that is what I’m doing in this tutorial.

I wasn’t sure how much to cover, because I could literally create a 5 part series on this topic. I decided to cover the basics in the video and provide another example in the code below.

If you want to see more, tell me and I’ll cover more on parsing XML with Java.

Continue reading Java Video Tutorial 44

XML Video Tutorial 7

XML Schema TutorialHere I end my XML Video tutorial by covering complex types, sequence, groups, and a ton more! I also show you how to design schemas and XML files using the Eclipse design tools.

If you missed the past tutorials, here they are based on topic: XML Video Tutorial, XSL Video Tutorial, XPATH Video Tutorial, DTD Video Tutorial, Entity Video Tutorial and part 1 of my Schema Tutorial.

All of the code from the video and more follow the video.

Continue reading XML Video Tutorial 7

XML Video Tutorial 6

XML Schema Video TutorialIn part 1 of my XML Schema video tutorial I introduce you to XML schema files. This of course is a continuation of my XML Video Tutorial.

I talk about schemas, namespaces, the different data types available, how to restrict the data, enumerations and much more.

I thought it would be best to break up this sometimes confusing subject. Use the code below to better understand what I’m doing.

Continue reading XML Video Tutorial 6

XML Video Tutorial 5

XML Entity Video TutorialIn this part of my XML video tutorial, I will cover how to use an entity. I’ll also show you how to combine XML, DTD and XSL files.

You can use an entity to create shortcuts in your DTD files. You create personal codes like those built into XML like &lt; is replaced with <.

Through using these codes you’ll be able to pull data either from within the DTD file, or from external files. All of the code follows the video.

Continue reading XML Video Tutorial 5

XML Video Tutorial 4

DTD Video TutorialIn this part of my XML Video Tutorial, I cover Document Type Definitions (DTD). DTDs are used to define the markup for your XML files.

We use DTD files to make sure data is valid and so multiple people can work together in a standardized way.

It sounds really complicated, but you are just defining what elements are required in the XML file and what type of data each element must have. The code after the video will help you learn.

Continue reading XML Video Tutorial 4

Followers/Following Ratio

Twitter Fail WhaleI’ve been asked for this list for quite some time. Many people are looking for more followers on Twitter. So, I looked for those with the best Followers/Following Ratio.

Those with the best Followers/Following Ratio are most likely to follow you and to follow you quickly. All of the Twitter users are listed below in order.

I’m sure if you are here, you know about the 2,000 follow limit. Also make sure that you don’t go overboard following and unfollowing.

Continue reading Followers/Following Ratio