A student's pathetic attempt at writing his own 2D engine