remove useless variable
move direction and speed to simple vector, add platform example