Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Entity ArayList (Render Order Revised) - How to Make a 2D Game in Java #21
Play lesson

How to Make a 2D Game in Java - Entity ArayList (Render Order Revised) - How to Make a 2D Game in Java #21

5.0 (0)
8 learners

What you'll learn

This course includes

  • 26 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

In this video, we will handle render order. We create an ArrayList and put all the entities in it. We can sort the order of the array by entities' worldY position and draw them one by one. My previous video had a flaw in the code so this is the updated version. Thank you, Sunshine for pointing out the issue! 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/ Thanks for watching. Timestamps: 0:00 Why I deleted my last video 1:48 Switching from SuperObject to Entity 6:48 Creating an ArrayList of Entity 9:52 Sorting the order of the ArrayList 12:04 Drawing entities from the list 15:05 Final result #javagamedevelopment #javagametutorial

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere