hi bob thanks for taking your time to check out my question.. i'm very
thankful to you. i'll try the code snippet and search more about lunar
lander in google, once again, thanks a lot sir.


2012/11/26 bob <[email protected]>

> Sounds like you will want to check out the Lunar Lander demo.
>
> Here's a snippet:
>
>        private void doDraw(Canvas canvas) {
>             // Draw the background image. Operations on the Canvas
> accumulate
>             // so this is like clearing the screen.
>             canvas.drawBitmap(mBackgroundImage, 0, 0, null);
>
>             int yTop = mCanvasHeight - ((int) mY + mLanderHeight / 2);
>             int xLeft = (int) mX - mLanderWidth / 2;
>
>             // Draw the fuel gauge
>             int fuelWidth = (int) (UI_BAR * mFuel / PHYS_FUEL_MAX);
>             mScratchRect.set(4, 4, 4 + fuelWidth, 4 + UI_BAR_HEIGHT);
>             canvas.drawRect(mScratchRect, mLinePaint);
>
> Also, the docs for android.graphics.Canvas are surprisingly good.
>
>
> On Sunday, November 25, 2012 7:39:20 PM UTC-6, Prabu Siabuabu wrote:
>>
>> hi everyone! do everyone here have any resources, links, or article about
>> how to make canvas apps on android in native?? i have a javascript canvas
>> app and didn't know or exactly stuck withhow to convert it to android, so
>> i'm looking to any resource in native or anything else to make my app can
>> run on android. thanks in advance.
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to