Refactoring animations #48, #49, #50

In this session I was out to fix:

  • ability of an Entity class to render whatever it likes besides it's own sprite

  • keep rendering decoupled and as abstract as possible

  • fix the offset system of the sprites so I can easily render sequential sprites of different dimensions

  • ability to add text as rendering with the drawing API (fillText and strokeText)

Example of simple level. Notice that only Player entity has a health bar.

Full video log: