This code is part of the learning libgdx video series I made (In Spanish).