Java version of the 2d Platformer test