(Source code introduction:
Playing hamster is a classic game. It is not difficult to implement. It can be used as an introduction material for game development and learning.
A few days ago, when I was studying, I wrote a book and shared the source code with you for you to learn during the Chinese New Year.
The code of this post has the following learning points:
1. Zoom the picture to fit the screen
2. Simple animation implementation
3. Game sound playback
4. Design of game tools
5. Picture cutting)