modify picture and set android icon for HelloLua

This commit is contained in:
minggo 2012-01-12 10:39:39 +08:00
parent 40b1798f41
commit 9890a4f655
2 changed files with 2 additions and 9 deletions

View File

@ -93,20 +93,13 @@ spriteDog:setPosition(cocos2d.CCPoint(0, winSize.height/4*3))
layerFarm:addChild(spriteDog) layerFarm:addChild(spriteDog)
animation = cocos2d.CCAnimation:animation() animation = cocos2d.CCAnimation:animation()
animation:addFrame(frame0)
animation:addFrame(frame1)
animation:setDelay(0.5)
animation:setName('wait')
animFrames = cocos2d.CCMutableArray_CCSpriteFrame__:new(2) animFrames = cocos2d.CCMutableArray_CCSpriteFrame__:new(2)
animFrames:addObject(frame0) animFrames:addObject(frame0)
animFrames:addObject(frame1) 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)
animation = cocos2d.CCAnimation:animationWithFrames(animFrames, 0.5)
animate = cocos2d.CCAnimate:actionWithAnimation(animation, false); animate = cocos2d.CCAnimate:actionWithAnimation(animation, false);
spriteDog:runAction(cocos2d.CCRepeatForever:actionWithAction(animate)) spriteDog:runAction(cocos2d.CCRepeatForever:actionWithAction(animate))

View File

@ -7,7 +7,7 @@
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="8"/> <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="8"/>
<application android:label="@string/app_name" <application android:label="@string/app_name"
android:debuggable="true"> android:debuggable="true" android:icon="@drawable/icon">
<activity android:name=".HelloLua" <activity android:name=".HelloLua"
android:label="@string/app_name" android:label="@string/app_name"