Java Video Tutorial 54 Java Polygon Collision Detection

preview_player
Показать описание

I'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!
Рекомендации по теме
Комментарии
Автор

Look forward to it. Anything related to Java and programming will be of interest to me. :) Many thanks.

arthurmee
Автор

I already knew this but I like your vids :D

Thegamemakur
Автор

This series of Java tutorials are the BEST!

durtX
Автор

I agree, it's the Best serie i ever seen in the net maybe because you don't make things complicated =P you should be proud of your self

bilalbilou
Автор

Thank you :) It's nice when a few lines of code can cause dramatic changes. I love making these tutorials

derekbanas
Автор

Thank you :) This was just 1 of I think 3 different ways to detect polygon collision that I covered. Thanks for the tip

derekbanas
Автор

It gets much better tomorrow! The ship has been fixed and is ready for action :)

derekbanas
Автор

Thank you very much :) This is really the first tutorial in which I just kept at it with or without views. I'm up to over 90 videos at this point. I'm glad you like them!

derekbanas
Автор

Often I decide to make videos based off of unanswered questions in forums. It is absolutely amazing how complicated some people make collision detection. I actually show you 2 easier ways to implement it later in the tutorial. I accomplish it in about 6 lines of code. Fun stuff :)

derekbanas
Автор

Thank you :) Take a look at Make Java Executable. That should provide the answer you seek

derekbanas
Автор

Thank you :) My goal was to make the most definitive Java tutorial online. I'm glad you like it

derekbanas
Автор

I would think somebody with the name Thegamemakur might know about this stuff. I'll check out your channel

derekbanas
Автор

Thank you :) I'm glad I was able to help. This tutorial series seems to really be lossing steam. I'll finish up the game and then move on to other topics. Thanks for watching

derekbanas
Автор

Thank you :) You really should give it a go. Imagine being able to make anything. I'll be rolling out a ton of Android apps very soon. I'll give away all of the source code. My goal is to allow anyone to make any app or game they want!

derekbanas
Автор

Awesome.. I look forward to watching it

devinafroseth
Автор

Thank you :) I cover 3 ways to do collision detection. My next tutorial will be on algorithms and data structures

derekbanas
Автор

I think I'll have to watch these over

Chevifier
Автор

Thanks very much. This is exactly what I was looking for . . .I tried myself but was getting stuck. You've now helped me clarify where I was going wrong. Marvellous and another thumbs up. :)

arthurmee
Автор

You can make a ton of games just using what I cover here :) Understand that I sometimes show a couple ways to do things. I think I show 3 ways to handle collision detection. I do this to help you think through applying this stuff to other games

derekbanas
Автор

Helloooo again! You made this complicated idea very easy to understand. I have a request (and let me know if you've done this elsewhere, but I couldn't find it) say after we're done making this game, or any program, and we want to export it and make it downloadable to others... how would you go about this? Maybe this is much easier than I think, but a tutorial would be great!

SilentSonance
visit shbcf.ru