20 minutes using the C ++ hamster to play games to get personally with white entry

VC ++ stick fight rats game source code, commonly known as playing hamster, the program can be compiled, but the running time of the show stick some problems, that is, some procedures in dealing with imperfect BMP image, but as a whole can play, I believe we all know this game Research released the source code for now.

Projects:

 

Code shows:

 

Show results:

 

A screen are professional C ++ hamster to play games, the mouse location, size, status; for judge position drawing and mouse clicks, display order: after hole - rat - before the hole, each row location, size is not the same, mouse , 1: mice, 0: no mouse, 2: was hit, whether the hit position determination according to the mouse click, a mouse next random number of +1 the number of mice is off ;.

 

 

 

Guess you like

Origin blog.csdn.net/weixin_41986518/article/details/93192364