Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I have a space shooter game for Android and I want to implement it as a live wallpaper. Any ideas on how this can be done?

Or better yet can anyone help me / provide a template that calls a "ship" object that fires missile? I'll do the rest from there onwards. I just need it as a starting point for learning Android.

share|improve this question
1  
I too enjoy cutting my battery life in half. –  AttackingHobo Sep 16 '11 at 5:41
    
XD XD XD aha ha ha! –  user943974 Sep 16 '11 at 7:34
add comment

1 Answer 1

The first Google hit I got for live wallpaper api android gives a good overview and links to example code.

share|improve this answer
    
It only refers to the Cube Live Wallpaper which basically deals with actual drawing on canvas, what I wanted to achieve is to call a class (Ship class) into the Wallpaper. ^^, –  user943974 Sep 16 '11 at 4:07
1  
@user943974, why does the obvious approach of calling the Ship constructor not work? –  Peter Taylor Sep 16 '11 at 5:58
    
I'm calling the ship class inside the c = holder.lockCanvas which goes something like: shipS.draw(c); where shipS = the ship class. Can you please show me the right way of "calling the Ship constructor" it might be the solution I'm looking for. –  user943974 Sep 16 '11 at 7:39
4  
@user943974, I get the impression that the question you asked isn't really the real question, which is "What's wrong with the code I've written?". How about you create a small but complete program which demonstrates your problem and (if that doesn't in itself help you solve it) post on StackOverflow? –  Peter Taylor Sep 16 '11 at 9:12
    
I thought it would be more convenient if I could see a Live Wallpaper Template that does something like my specification. Then, I could adapt from there, configure my missile, movement, speed classes to be compatible with the one provided. ^^, –  user943974 Sep 16 '11 at 9:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.