LibGDX and a 2D Gaming Framework

In June 2023, I started recording videos on how I built a 2D Gaming Framework on top of LibGDX. During that summer, I was able to publish a video every week. Then every two weeks, as work started to pick up. Then as I had time, when my Masters classes started up again.

In the videos, I built up the framework in what I perceived as a logical order, starting with a basic element of a video game, an image. I went through the documentation about rendering an image on a 2D orthographic view. I built out the BaseGame and BaseScreen class to remove all the setup required for making a 2D game. This allowed one to start making a game faster and not re-code the boilerplate code. I demonstrated how to render a static image and animated images to the screen.

It was here that I developed the Animation class, a flexible API to simplify the rendering in a reusable way. I extended with animated images, showing that now an Animation object can be reused wherever it’s needed. The Animation class can easily be swapped for another Animation class, reducing the rework of one’s code. As noted this is based on my previous Gaming Framework that I had created some time ago. While the previous is Java only code, the new one is built on top of LibGDX.