NPC - How to Make a 2D Game in Java #14

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



Category:
Tutorial
Duration: 31:52
15,494 views
369


In this video, we will implement an NPC and set his behavior.

We are no longer alone in this world!

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 Prepare NPC images
0:54 House-keeping
3:08 Create NPC class
7:34 Create NPC array
7:57 Place NPC on Map
9:23 Draw NPC
13:05 NPC Movement and AI
17:14 Update NPC
19:43 Create Action Lock Counter
22:14 Player to NPC Collision
27:40 NPC to Player Collision
30:51 Final Result

#java2dgame #javagamedevelopment #javatilegame







Tags:
javagametutorial
javabuildgame
javaswing
javagui