In this video, we add the monster's death animation, a health bar, additional AI, and sound effects.
Now we have a battle system!
If you want to use my assets (images/maps/sound) that are used in this tutorial, here's the link:
https://drive.google.com/drive/folders/1OBRM8M3qCNAfJDCaldg62yFMiyFaKgYx?usp=sharing
Guidelines for using Blue Boy Adventure's code and assets:
https://docs.google.com/document/d/1qcafOofpXYd_QPr95qbgfb1GYxXKgSZb/
The swinging weapon sound is from:
https://freesound.org/people/Hitrison/sounds/216675/
Thanks for watching.
Timestamps:
0:00 Introduction
0:33 Death animation
8:41 RESULT
9:38 Battle sound effects
11:37 RESULT
12:13 Monster health bar
20:51 RESULT
21:40 Additional AI
23:36 RESULT
#java2dgame #javagamedevelopment
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.
FAQs
We curate free YouTube courses, organized by category and language — and make it easy for you to track your learning progress.
Yes. Free courses are embedded YouTube videos.
Currently available in English — with Portuguese, Spanish, French, German, and Italian coming soon.
Check ratings, reviews, duration, and description.
All courses include a certificate of participation.
Yes, an account lets you track progress, earn certificates, and save favorites.
We auto-save your watch position so you can resume on any device.