Skip to content

Commit

Permalink
Adding sadako for deeper effect
Browse files Browse the repository at this point in the history
  • Loading branch information
radif committed Sep 24, 2012
1 parent 35781d5 commit 42fad5b
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 3 deletions.
Binary file modified ScreenShot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions StaticTV.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
490FD660160FF2EA00390080 /* sadako.png in Resources */ = {isa = PBXBuildFile; fileRef = 490FD65F160FF2EA00390080 /* sadako.png */; };
4994A30D160FE77B007BFA71 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4994A30C160FE77B007BFA71 /* QuartzCore.framework */; };
4994A30F160FE77B007BFA71 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4994A30E160FE77B007BFA71 /* OpenGLES.framework */; };
4994A311160FE77B007BFA71 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4994A310160FE77B007BFA71 /* OpenAL.framework */; };
Expand Down Expand Up @@ -196,6 +197,7 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
490FD65F160FF2EA00390080 /* sadako.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = sadako.png; path = Resources/sadako.png; sourceTree = "<group>"; };
4994A308160FE77B007BFA71 /* StaticTV.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = StaticTV.app; sourceTree = BUILT_PRODUCTS_DIR; };
4994A30C160FE77B007BFA71 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
4994A30E160FE77B007BFA71 /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
Expand Down Expand Up @@ -664,6 +666,7 @@
children = (
4994A58F160FE7C9007BFA71 /* Shaders */,
4994A31E160FE77B007BFA71 /* CloseNormal.png */,
490FD65F160FF2EA00390080 /* sadako.png */,
4994A320160FE77B007BFA71 /* CloseSelected.png */,
4994A322160FE77B007BFA71 /* Default.png */,
4994A324160FE77B007BFA71 /* HelloWorld.png */,
Expand Down Expand Up @@ -1483,6 +1486,7 @@
4994A331160FE77B007BFA71 /* [email protected] in Resources */,
4994A333160FE77B007BFA71 /* iTunesArtwork in Resources */,
4994A3BB160FE77B007BFA71 /* ChangeLog in Resources */,
490FD660160FF2EA00390080 /* sadako.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -1773,6 +1777,7 @@
4994A584160FE77D007BFA71 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
Expand Down
Binary file not shown.
12 changes: 11 additions & 1 deletion StaticTV/Classes/HelloWorldScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ bool HelloWorld::init()

// position the sprite on the center of the screen
pSprite->setPosition( ccp(size.width/2, size.height/2) );
pSprite->setScale(1.5);

// add the sprite as a child to this layer
this->addChild(pSprite, 0);
Expand All @@ -75,8 +76,17 @@ bool HelloWorld::init()
//Shader Effects:
_uniformSprites=CCArray::create();
_uniformSprites->retain();

addStaticTVEffectToSprite(pSprite);

CCSprite * sadako=CCSprite::create("sadako.png");
sadako->setPosition(ccp(size.width/2,size.height/3));
addChild(sadako);
CCDelayTime * delay=CCDelayTime::create(1.5);
CCMoveBy*moveRight=CCMoveBy::create(.01, ccp(15,0));
CCMoveBy*moveLeft=CCMoveBy::create(.01, ccp(-30,0));
CCFiniteTimeAction*seq=CCSequence::create(delay, moveRight,moveLeft,moveRight);
CCRepeatForever*repeat=CCRepeatForever::create((CCSequence *)seq);
sadako->runAction(repeat);
return true;
}

Expand Down
9 changes: 7 additions & 2 deletions StaticTV/Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,19 @@
<true/>
<key>UIPrerenderedIcon</key>
<true/>
<key>UIStatusBarHidden</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
<dict>
<key>accelerometer</key>
<true/>
<key>opengles-1</key>
<true/>
</dict>
<key>UIStatusBarHidden</key>
<true/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
</dict>
</plist>
Binary file added StaticTV/Resources/sadako.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 42fad5b

Please sign in to comment.