Seeing that someone has made Tetris, it's called worship,
I have been learning MFC for a while. I usually work on it with the tutorial.Code.
I suddenly thought about doing something to review what I learned. So I thought of the mouse game.
Assume that a 3*3 button array is generated, the image is loaded with loadbitmap, and then the random number is used.
Place a buttonThe pattern is changed to a mouse, and the others become obstacles. Use timer to set the appropriate time from
Update the function repeatedly. If you hit the mouse correctly, you will receive extra points.
It seems that it is not difficult to think about it. It can be done to make it really depressing. There will be endless problems when a button is loaded with bitmap,
And it's still running, so I can't do it for cainiao, so I have the lite version below,
It is simulated by changing the text of the button. The simulation is successful, and then the modifications are made to complete loading.
Bitmap.
Dad is back watching TV ~~ Unable to concentrate, continue tomorrow ~
Don't laugh when you read this spam ~ (@ ^ _ ^ @)~
Ah, almost none involvedAlgorithmSome basic MFC operations are not good. It seems that the learning effect is not satisfactory.