Programming with SurfaceView and thread strategy for game development

后端 未结 3 908
别那么骄傲
别那么骄傲 2020-12-24 14:55

I am using a SurfaceView and a rendering thread to develop a game based on structure like LunarLander.

However, I faced many problems, and here I want to point them

3条回答
  •  醉酒成梦
    2020-12-24 15:49

    I've been dealing with the same issue. I'm learning about game development on Android and also based my first project on the Lunar Lander example. I found that the SpriteMethodTest project created by Chris Pruett implements a much better approach in terms of thread management. It's all about using notify and wait methods, though. I couldn't tell whether it's better than your solution or not.

提交回复
热议问题