Quantcast
Channel: Code Hard
Browsing all 12 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

xCode GDB Debugger Commands

One of the things that I struggled with going from eclipse and Visual Studio to xCode was the the debugger.  Most of the objects have memory references rather than values. For a long time while...

View Article



The description method

Any object can implement the description method that is used to return a description of the contents of a receiver. The problem i have always found with this method. Is keeping the method up to date...

View Article

Image may be NSFW.
Clik here to view.

NO MORE LOGS!!!!! (Using breakpoints in xCode)

I cant count the number of times I have compiled an app and found my self lost in logs. This is not not just an xCode issue I have come across this in every language/IDE I have used. For some reason we...

View Article

Miller Cylindrical Projection with source for (Long, Lat) to (x, y)

Recently I have been trying to get a custom map working with Longitude and Latitude that plotted in the x and y in iOS. It also needed to work with a zoom and offset. It was a bit of an argus journey...

View Article

Create Cocos2d-X 2.0 Sprite Sheet

Cocos2dx is the C++ implementation of Cocos2d. Even though it is C++ and cross platform it still uses plists. There are probably a lot of tools out there that can help you create these sprite sheets. I...

View Article


Creating Frame Animation in Cocos2d-X 2.0 Using a Sprite Sheet

Since the Cocos2d-X 2.0 rc2 a lot of the initialisation has changed so this code works in Cocos2d-X 2.0. First create a sprite sheet so we can load it in. Once you have created the Sprite Sheet you...

View Article

Implementing CCCallFunc Cocos2d-X 2.0

This is a simple way of implementing CCCallFunc. ClassA wants to pass a function reference to ClassB. CCCallFunc calls a function without any parameters. If you want to get the CCObject that called it...

View Article

Using LevelHelper without Box2d for Cocos2d-X

I have been trying out LevelHelper recently and it has been very useful when making games that have a fair bit of physics. I was looking at making a really simple game that did not require physics....

View Article


Vector Graphics in iOS with CoreGraphics and PaintCode from an SVG file

Since I started iOS development there has always been one thing missing for me. That has been a vector graphic file format. There is no format currently natively supported by apple. I did some digging...

View Article


AppCode File Template for CoreGraphics and PaintCode

In my last post I setup a CALayer subclass for CoreGraphics and PaintCode. I created an AppCode template that I am sharing here. The header file template:#parse("Objective-C File Header.m") #import...

View Article

AS3 Development in OSX

I had a small AS3 project and decided I would stray from the standard Flash Builder solution provided by adobe to see how things have changed over the last few years. I ended up looking at two...

View Article

Image may be NSFW.
Clik here to view.

Embedding OTF Fonts in Windows Phone 8

Now I don’t think there is a difference between between TTF and OTF fonts when it comes to Windows Dev. I do how ever think that the way the fonts them selves are set up, are different. A lot of people...

View Article
Browsing all 12 articles
Browse latest View live




Latest Images