package com.jonathan.survivor.managers; import com.badlogic.gdx.utils.Pool; import com.jonathan.survivor.entity.Box; class BoxPool extends Pool { /** Called when no free objects are available in the pool, and a new one must be created. */ @Override public Box newObject() { //Create and return a new box whose bottom-center is positioned at (0,0). return new Box(); } }