-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
585a887
commit 512d8ed
Showing
52 changed files
with
10,676 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// LHSceneSkeletalCharacterTest.h | ||
// LevelHelper2-Cocos2d-v3 | ||
// | ||
// Created by Bogdan Vladu on 15/05/14. | ||
// Copyright VLADU BOGDAN DANIEL PFA 2014. All rights reserved. | ||
// | ||
// ----------------------------------------------------------------------- | ||
|
||
// Importing cocos2d.h and cocos2d-ui.h, will import anything you need to start using cocos2d-v3 | ||
#import "cocos2d.h" | ||
#import "cocos2d-ui.h" | ||
|
||
#import "LevelHelper2API.h" | ||
#import "LHSceneDemo.h" | ||
|
||
@interface LHSceneSkeletalCharacterTest : LHSceneDemo | ||
|
||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// | ||
// LHSceneSkeletalCharacterTest.m | ||
// LevelHelper2-Cocos2d-v3 | ||
// | ||
// Created by Bogdan Vladu on 15/05/14. | ||
// Copyright VLADU BOGDAN DANIEL PFA 2014. All rights reserved. | ||
// | ||
// ----------------------------------------------------------------------- | ||
|
||
// Import the interfaces | ||
#import "LHSceneSkeletalCharacterTest.h" | ||
|
||
@implementation LHSceneSkeletalCharacterTest | ||
+ (LHSceneDemo *)scene{ | ||
return [[self alloc] initWithContentOfFile:@"PUBLISH_FOLDER/skeletalCharacter.lhplist"]; | ||
} | ||
|
||
- (id)initWithContentOfFile:(NSString *)levelPlistFile | ||
{ | ||
self = [super initWithContentOfFile:levelPlistFile]; | ||
|
||
if (!self) return(nil); | ||
|
||
|
||
//#if LH_USE_BOX2D | ||
CCLabelTTF* ttf = [CCLabelTTF labelWithString:@"Skeletal Character Setup.\n" | ||
fontName:@"ArialMT" | ||
fontSize:20]; | ||
//#else | ||
// CCLabelTTF* ttf = [CCLabelTTF labelWithString:@"ASSETS DEMO\nAssets are special objects that when edited they will change\nto the new edited state everywhere they are used in your project.\n\nClick to create a new officer (asset) of a random scale and rotation.\n\nChipmunk detected:\nSorry but currently Cocos2d has a bug where it does not update children physics body position.\nWhen using Chipmunk and having physics bodies on children of node transformations will not work correctly.\nSwitch to the Box2d target for correct physics transformations." | ||
// fontName:@"ArialMT" | ||
// fontSize:20]; | ||
//#endif | ||
|
||
|
||
[ttf setColor:[CCColor blackColor]]; | ||
[ttf setHorizontalAlignment:CCTextAlignmentCenter]; | ||
[ttf setPosition:CGPointMake(self.contentSize.width*0.5, | ||
self.contentSize.height*0.5+60)]; | ||
|
||
[[self uiNode] addChild:ttf];//add the text to the ui element as we dont want it to move with the camera | ||
|
||
// done | ||
return self; | ||
} | ||
|
||
|
||
|
||
|
||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.