Collision Detection - How to Make a 2D Game in Java #6

Channel:
Subscribers:
24,000
Published on ● Video Link: https://www.youtube.com/watch?v=oPzPpUcDiYY



Category:
Tutorial
Duration: 26:44
39,995 views
856


In this video, we will implement collision detection so player character stops when he tries to walk through solid tiles.

Caution: This is a tutorial for Java 2D beginners so it's pretty verbose! (and the pacing is a bit slow...)

If you have any questions, feel free to leave a comment.

If you want to use my asset (images/maps/sound) that are used in this tutorial, here's the link:
https://drive.google.com/drive/folders/1OBRM8M3qCNAfJDCaldg62yFMiyFaKgYx?usp=sharing

*I'm releasing my art/music/sound effects to help your smooth learning with this series. If you wish to use them to create public content (profitable/non-profitable), please contact me via Twitter or email. Both links are in the About section of this channel. In any case, please don't re-distribute my asset (graphics/sound) and limit it to personal use.

Thanks for watching.

Timestamps:
0:00 Set tile collision status
1:54 Set player's solid area
7:28 Set up Collision Checker
10:28 Detect collision
25:40 Final result

#javagamedevelopment #java2D #javagametutorial #javagameprogramming







Tags:
java2dgame
javagamedevelopment
javatopdowngame
javagametutorial
javagametutorialforbeginner