Android dev update
Apr. 19th, 2011 05:35 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
I've been writing a game for Android. This is mainly so I can put Android Development on my CV, so I'll have to put it on Android Market at some point...
I think it's almost done. The remaining issues:
It's a bit slooooow. 60ms per frame gives less than 20fps, and I want at least 30! I can probably do some clever stuff where I just clear sections of screen that have been drawn.
The actual game logic is plenty fast (2ms per tick) although I do seem to slow down to a 20th of the speed when debugging.
I have no idea how to do the control system.
There's a glitch in my AI. The plane is firing before it turns. I have no idea why. I have a fix explicitly for that but it doesn't work. This sort of thing is really hard to debug since it relies on things being just so.
Now, the control system is a headache. This is based off an Amiga game where you pushed the stick left to rotate anti-clockwise and right to rotate clockwise. Android of course has no stick. It has an optical trackball, but people have huge problems understanding the control system.
So I have to work how to deal with that one. I could add a tutorial screen. I could add controls on the touch screen. I could change the control method. I think I need playtesters.
On the whole though I'm reasonably happy with it. Really would like to finish it off so I can stick it on the android market and start project #2.
What's project #2? A sound board. Because I should be able to do that in a couple of days.
I think it's almost done. The remaining issues:
It's a bit slooooow. 60ms per frame gives less than 20fps, and I want at least 30! I can probably do some clever stuff where I just clear sections of screen that have been drawn.
The actual game logic is plenty fast (2ms per tick) although I do seem to slow down to a 20th of the speed when debugging.
I have no idea how to do the control system.
There's a glitch in my AI. The plane is firing before it turns. I have no idea why. I have a fix explicitly for that but it doesn't work. This sort of thing is really hard to debug since it relies on things being just so.
Now, the control system is a headache. This is based off an Amiga game where you pushed the stick left to rotate anti-clockwise and right to rotate clockwise. Android of course has no stick. It has an optical trackball, but people have huge problems understanding the control system.
So I have to work how to deal with that one. I could add a tutorial screen. I could add controls on the touch screen. I could change the control method. I think I need playtesters.
On the whole though I'm reasonably happy with it. Really would like to finish it off so I can stick it on the android market and start project #2.
What's project #2? A sound board. Because I should be able to do that in a couple of days.
Control system
Date: 2011-04-19 05:35 pm (UTC)(no subject)
Date: 2011-04-20 10:15 am (UTC)This is one of the tricky aspects of Android...