Background picture of infinite loop of Android actual combat aircraft game (2)
•
Android
Firstly, analyze the elements in the game interface: infinite rolling background picture, operable protagonist, protagonist's bullet, protagonist's blood volume, two monsters (enemy aircraft), a boss and boss's explosion effect
Look at the renderings first
1. Firstly, the background image principle of infinite scrolling is realized: two bitmap objects are defined. When the first bitmap reaches the end, the second bitmap follows from the end of the first bitmap
Then call the method in mysurfaceview
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码