Skip to content

Commit 57a32c7

Browse files
committed
Demo fixes
1 parent 7776124 commit 57a32c7

File tree

5 files changed

+7
-1
lines changed

5 files changed

+7
-1
lines changed

migration/.~lock.the template.doc#

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lars Birkemose,Birkemose,larss-mbp,03.08.2015 14:39,file:///Users/Birkemose/Library/Application%20Support/OpenOffice/4;

migration/1-2-3.doc

15.5 KB
Binary file not shown.
File renamed without changes.

migration/the template.doc

13.5 KB
Binary file not shown.

templates/cocos2d iOS demo.xctemplate/Classes/loadScene.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ - (id)init
3232
// The thing is, that if this fails, your app will 99.99% crash anyways, so why bother
3333
// Just make an assert, so that you can catch it in debug
3434
NSAssert(self, @"Whoops");
35-
35+
36+
// preload artwork needed for load scene
37+
// NOTE!
38+
// In this case, this is also the artwork for the entire app, but in real life this would probably not be the case
39+
[[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"demo.plist"];
40+
3641
// background
3742
CCSprite9Slice *background = [CCSprite9Slice spriteWithImageNamed:@"white_square.png"];
3843
background.anchorPoint = CGPointZero;

0 commit comments

Comments
 (0)