2D engine template