A side scroller game that uses the accelerometer (original hey!)
I am not sure if I have implemented best practises, as there are many ways to skin a cat when it comes to graphics.
This is still work in progress, please feel free to rip it apart.
I think that the attached Boshack_1.zip (which uses a canvas, is a better implementation, I have tweaked the controls, and worked out that I should have moved the views or images under timer, not in accelerometerchanged.
As to which is better for the battery, I would have to say the imageview example, as with the canvas example, I can feel the phone getting warm.
I am not sure if I have implemented best practises, as there are many ways to skin a cat when it comes to graphics.
This is still work in progress, please feel free to rip it apart.
I think that the attached Boshack_1.zip (which uses a canvas, is a better implementation, I have tweaked the controls, and worked out that I should have moved the views or images under timer, not in accelerometerchanged.
As to which is better for the battery, I would have to say the imageview example, as with the canvas example, I can feel the phone getting warm.
Attachments
Last edited: