A basis for java 2D-platformers