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
