• Its up to you how to implement Collision detection
  • Its not the main purpose for this engine to do that. this engine has some basic function for testing 2d collisions between two sprites
  • do all in updateLogic
  • use different lists where only "obstacle" sprites are inserted and used for collision check
  • use the SpriteQuadtreeGroup as root node in a State

Simple approach

  • implement IObstacle (as marker interface for later)
  • use sprites collision detection methods

Special approaches



Using FixedScrollableLayer

Use color coding for ground collision checks or static background obstacles. You can load two textures into this layer, one is for the basic collision of the level and the other is the original background image.