- Code Download
- Next Article
Managing the vast number of objects in your game could be time consuming. Especially when you have short-lived objects in your game like particles, bullets, and animations. This article discusses a method which utilizes arrays to store Entities and storing Entities in layers.
- Entity – something that could be drawn, is updated, and can expire.
- To design a simple Entity list which handles updating, drawing, and pruning expired entities.
- To design a class for storing layers of entities to control drawing and update order.