[android-developers] Re: Small game develop

2011-03-10 Thread Daniel Felix
After update the changes of the position, call the "invalidate()" method. This method redraw the canvas. Regards, Felix On Mar 8, 10:11 am, JackeyChan wrote: > I only want the ball can move with user input: up , down, left, > right. > now , the ball is created by extend the View class and draw i

[android-developers] Re: Small game develop

2011-03-10 Thread Robert Green
Have one big custom surface view for your game. Use canvas to draw stuff to it. Keep fields that are the position. Process input to change the position. Draw the ball where the position is on your surface (using canvas). See the examples that come with Android SDK for more info on using surfac