My current issue in this program is the running performance is not very great, especially the horizontal move is a bit stiff now.
I knew this bad performance might arise from the collision check in each move. I did my best to use more pointer than the copy assignment, etc to make the run faster. But it still has some issue to prevent from smoothly running anyway.
The tip in <
http://www.thegeekstuff.com/2015/01/c-cpp-code-optimization/> is great. The practical use of these tips are very time consuming though.
If you guys can get some practically useful solution to simply boost the running performance, I would be no more appreciated.