a learning process in 2d graphics and collision