Tag Archives: entity

Managing Entities

  1. Summary
  2. Definitions
  3. Objectives
  4. Article
    1. Theory
    2. The Entity
    3. The EntityList
    4. Making EntityList extensible
    5. EntityLayer & EntityLayers
    6. Alternative Data Structures
  5. Expanding
  6. Code Download
  7. Applet
  8. 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.

Continue reading