How to make your own Sonic fan character!
Source: youtube.com
Step 1.
In Supporting Files > Mac, find ApplicationDelegate and replace your ApplicationDidFinishLaunching with this:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
CCDirectorMac *director = (CCDirectorMac*) [CCDirector sharedDirector];
NSRect aFrame=[[NSScreen mainScreen] frame];
CGSize winSize = CGSizeMake(1200,720);
CC_DIRECTOR_INIT(winSize);
[self.window showsResizeIndicator];
[director setResizeMode:kCCDirectorResize_AutoScale];
[director setProjection:kCCDirectorProjection2D];
[window_ setContentAspectRatio:NSMakeSize(16,9)];
[window_ setContentAspectRatio:NSMakeSize(winSize.width,winSize.height)];
[window_ setStyleMask:[window_ styleMask] | NSResizableWindowMask | NSMiniaturizableWindowMask];
[window_ setTitle:@”Your games name here”];
aFrame=[[NSScreen mainScreen] frame];
if (aFrame.size.width<=winSize.width || aFrame.size.height<=winSize.height) [window_ zoom:self];
[window_ center];
[glView_ setFrameSize:NSMakeSize(window_.frame.size.width,window_.frame.size.height)];
// Enable “moving” mouse event. Default no.
[window_ setAcceptsMouseMovedEvents:NO];
[[GameManager sharedGameManager] loadGameState];
[[GameManager sharedGameManager] enableMusic];
[[GameManager sharedGameManager] enableSounds];
[self toggleFullScreen:self];
[[CCDirector sharedDirector] runWithScene:[StartScene scene]];
/**
Commandline Usage:
-map map1.tmx
Will load the map1.tmx file into the game
*/
NSDictionary *arguments = [[NSUserDefaults standardUserDefaults] volatileDomainForName:NSArgumentDomain];
NSString *mapfile = [arguments objectForKey:@”map”];
if(mapfile != nil) {
[[GameManager sharedGameManager] loadLevelWithFilename:mapfile];
return;
}
[debugMenu setHidden:YES];
#ifdef DEBUG
[debugMenu setHidden:NO];
#endif
[window_ setBackgroundColor:[NSColor clearColor]];
[window_ setOpaque:NO];
[window_ setHasShadow:NO];
}
Step 2.
In MainWindow.xib on the left hand side where you can choose Files Owner, Window etc. Select window and press backspace to delete it.
Then select the Menu and click window on the toolbar you see at the top. It will already have the Bring All to Front option. Drag a new menu item from the object library on the bottom right and in inspector call it ‘FullScreen’ or something and underneath the name click in the box and then press command-F on the keyboard to assign that shortcut to the action.
Lastly select the connections inspector and then choose AppDelegate on the right instead of the menu bar. You should see that the last two options are toggleHighRes and toggleFullscreen. Drag from the connection point on toggleFullScreen to your new Full Screen menu item.
Run the game and you will see that you can press CMD-F to go to full screen or select it from the window menu option.
You can also resize the window by dragging the edges too. However notice that you cannot get out of the game without launching Mission Control and selecting Xcode then stop??
Step 3.
Adding a quit button is pretty much a requirement to get out of the game. In this case we will hijack the about button in MenuScene.mm simply find the
- (void)onAbout:(id)sender
Function and replace it with this:
- (void)onAbout:(id)sender {[[NSApplication sharedApplication] terminate:nil];}
Now when you launch the app you’ll be able to press the about button and quit the game.
There we go, a fullscreen option for Commander Cool. It’s not the most elegant method but until the creators update it to Cocos2D version 2.0 it’s the only way to do it (I wouldn’t recommend trying to update to 2.0 yourself…I’ve tried and it seems impossible as it breaks so much).
Absolutely adore this song.
Just has a very warm innocent sound to it that reminds me of summer days as a kid.
I’ve abandoned eBay altogether now. Not only because of the fees but due to the poor way in which they handle disputes. My PayPal account has been £300 negative for the past month because three sellers decided they wanted £10-20 compensation for damage to items that doesn’t exist. Oddly enough these kind of customers always suffer from an inability to speak english and they often admit that they didn’t read the item description. FYI I’m not being racist, it’s just a flat out observation.
The disputes always begin on eBay for the requested amount but then PayPal has an knee jerk reaction and immediately claws back all of the original payment for the item and holds it, effectively crippling the account for an unspecified amount of time. Which is kinda ironic, seeing as the two companies pretty much deny that any communication between them exists. Funny how they can both hear each others’ alarm bell???!??
I’m fed up of having the piss taken out of me by scamming asshat buyers whilst being bled dry by a faceless company with no common sense. 10% commission (and then a further 2.5% in PayPal) is daylight robbery, especially seeing as eBay keep all of their cash in a Luxembourg account. That said if they had more intelligent and malleable policies governed by decent employees then I probably wouldn’t mind so much. To add insult to injury the ridiculously fixed postage fees also mean that 9 times out of 10 it usually costs me more to sell the item than I make!
Due to the aforementioned I’m currently in a situation where I can’t sell or receive money at all. I can’t pay my eBay fees because their asshattery has locked up my PayPal account (and I refuse to add yet another credit card to the mix) and if I could pay my fees I wouldn’t be able to sell anything because receiving a payment would just drown into the wrongfully created negative balance (which after 48 days is still present despite it clearly being me in the right as the buyers have made no actions or responded to any of the dispute arranged questions presented by eBay - honestly guys, if you’re looking to scam money out of me it’d pay to check your emails once a month). I know it’ll all sort eventually but if I was a business this would have effectively crippled me.
I’m really surprised that some huge lawsuit involving eBay hasn’t come into play yet. It’s like the world’s biggest rogue company, everybody knows it but nobody has done anything about it.
I also found out the other day that eBay now own Gumtree too…I thought the tone of their “friendly” reminder emails sounded familiar.
I FUCKING HATE EBAY!