From 9890a4f655fae76b8e229ee8b4e7a1753b069a9f Mon Sep 17 00:00:00 2001 From: minggo Date: Thu, 12 Jan 2012 10:39:39 +0800 Subject: [PATCH] modify picture and set android icon for HelloLua --- HelloLua/Resource/hello.lua | 9 +-------- HelloLua/android/AndroidManifest.xml | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/HelloLua/Resource/hello.lua b/HelloLua/Resource/hello.lua index b6eec66108..7569a2ac0a 100644 --- a/HelloLua/Resource/hello.lua +++ b/HelloLua/Resource/hello.lua @@ -93,20 +93,13 @@ spriteDog:setPosition(cocos2d.CCPoint(0, winSize.height/4*3)) layerFarm:addChild(spriteDog) animation = cocos2d.CCAnimation:animation() -animation:addFrame(frame0) -animation:addFrame(frame1) -animation:setDelay(0.5) -animation:setName('wait') animFrames = cocos2d.CCMutableArray_CCSpriteFrame__:new(2) animFrames:addObject(frame0) animFrames:addObject(frame1) ---animation = cocos2d.CCAnimation:animationWithName("wait", 0.5, animFrames) + animation = cocos2d.CCAnimation:animationWithFrames(animFrames,0.5) - -animation = cocos2d.CCAnimation:animationWithFrames(animFrames, 0.5) - animate = cocos2d.CCAnimate:actionWithAnimation(animation, false); spriteDog:runAction(cocos2d.CCRepeatForever:actionWithAction(animate)) diff --git a/HelloLua/android/AndroidManifest.xml b/HelloLua/android/AndroidManifest.xml index 677d565f88..fdd48d278c 100644 --- a/HelloLua/android/AndroidManifest.xml +++ b/HelloLua/android/AndroidManifest.xml @@ -7,7 +7,7 @@ + android:debuggable="true" android:icon="@drawable/icon">