2D gaming programming engine