As the title of this week’s post suggests, the changes this week are less for ts-tennis and more for ts-game-engine and giving it an ability to use sprites and sprite sheets. This was technically already semi-possible because the rendering code can display images just fine, but I wanted to be able to do some animating, and the idea of having a bunch of images and flipping between them manually made me break out in a cold sweat based purely on how crufty that seems.
This snowballed a tad bit, as touching engine code tends to do (I seem to be a natural born engineer), but various features tend to cross each others path with sprite sheets at the nexus. Well, in my brain they do. Your mileage may vary. Thus, besides sprite sheets, animations, origins and rotations are also in. All because what I really wanted to do was implement collision detection. What?