The Burba Blog Rotating Header Image

Learning Cocos2d and Objective-C

I’ve recently switched gears from the That’s a Comic! project to the iPhone game project.

I will be using Cocos2D for most of the heavy lifting. This is also my first foray into Objective-C and a triumphant return to a C based language after years of not touching C or C++.

Here’s a fairly comprehensive list of sites to browse through before/while undertaking a Cocos2D iPhone game project:

Cocos2d iPhone API Reference:
http://www.cocos2d-iphone.org/api-ref/latest-stable/annotated.html
Great tutorials and lists:
http://kwigbo.com/
http://www.bit-101.com/blog/?p=2138
http://iphonedev.net/
http://www.alexcurylo.com/blog/2009/05/16/resources-cocos2d/
http://morethanmachine.com/macdev/?tag=cocos2d
http://silentmac.com/?tag=cocos
http://vinc456.wikidot.com/cocos2d
Touch Event Handler:
http://permadi.com/blog/2009/06/cocos2d-adding-handler-to-touch-events/
Overview of Cocos2d (a little old but still good):
http://lethain.com/entry/2008/oct/03/notes-on-cocos2d-iphone-development/
Moving a Sprite:
http://iphonedev.net/2009/05/10/cocos2d-example-move-sprite/
Coloring Sprites:
http://lukehatcher.com/post/449164972/coloring-sprites-with-cocos2d-iphone
Objective-C Memory Management:
http://www.bit-101.com/blog/?p=2233
Great Beginner Forum Post:
http://www.cocos2d-iphone.org/forum/topic/737
iPhone Custom Made Sound Manager:
http://www.71squared.com/2010/01/latest-sound-manager-class/
How to fix iPhone Signing Errors:
http://www.codza.com/how-to-fix-iphone-code-signing-errors
Game Examples:
http://codaset.com/lhunath/deblock
http://wiki.github.com/lhunath/Gorillas/
http://code.google.com/p/grabbed/
http://kwigbo.com/post/335053103/pusher-source-code
http://ortatherox.com/thrown/
http://www.ortatherox.com/site/
http://github.com/haqu/tweejump
Sound Effect Libraries:
http://www.grsites.com/archive/sounds/
Objective-C Docs:
http://www.cocoadevcentral.com/

Box2d: extending b2ContactFilter and b2ContactListener:
http://blog.xyris.ca/?tag=box2d

Box2d Reference and Tutorial (C++):
http://www.box2d.org/manual.html#_Toc258082967

Cocos2d iPhone API Reference:
http://www.cocos2d-iphone.org/api-ref/latest-stable/annotated.html

Cocos2d iPhone Google Code Page:
http://code.google.com/p/cocos2d-iphone/

Chipmunk API Reference:
http://code.google.com/p/chipmunk-physics/wiki/cpShape

Using Chipmink ONLY for collision detection:
http://www.cocos2d-iphone.org/forum/topic/577

Chipmunk 5.0 New Collision Detection Function:
http://www.cocos2d-iphone.org/forum/topic/3996

Vector Dot Products:
http://www.algebralab.org/lessons/lesson.aspx?file=Trigonometry_TrigVectorDotProd.xml

Easing Actions in and out:
http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:actions_ease

Using CCCallFunc with parameters:
http://www.cocos2d-iphone.org/forum/topic/721

Cocos2d iPhone Best Practices:
http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:best_practices

Great tutorials and lists:
http://kwigbo.com/
http://www.bit-101.com/blog/?p=2138
http://iphonedev.net/
http://www.alexcurylo.com/blog/2009/05/16/resources-cocos2d/
http://morethanmachine.com/macdev/?tag=cocos2d
http://silentmac.com/?tag=cocos
http://vinc456.wikidot.com/cocos2d

Touch Event Handler:
http://lethain.com/entry/2008/oct/20/touch-detection-in-cocos2d-iphone/
http://permadi.com/blog/2009/06/cocos2d-adding-handler-to-touch-events/

Overview of Cocos2d (a little old but still good):
http://lethain.com/entry/2008/oct/03/notes-on-cocos2d-iphone-development/

Moving a Sprite:
http://iphonedev.net/2009/05/10/cocos2d-example-move-sprite/

Coloring Sprites:
http://lukehatcher.com/post/449164972/coloring-sprites-with-cocos2d-iphone

Objective-C Memory Management:
http://www.bit-101.com/blog/?p=2233

Great Beginner Forum Post:
http://www.cocos2d-iphone.org/forum/topic/737

iPhone Custom Made Sound Manager:
http://www.71squared.com/2010/01/latest-sound-manager-class/

How to fix iPhone Signing Errors:
http://www.codza.com/how-to-fix-iphone-code-signing-errors

Game Examples:
http://codaset.com/lhunath/deblock
http://wiki.github.com/lhunath/Gorillas/
http://code.google.com/p/grabbed/
http://kwigbo.com/post/335053103/pusher-source-code
http://ortatherox.com/thrown/
http://www.ortatherox.com/site/
http://github.com/haqu/tweejump

Sound Effect Libraries:
http://www.grsites.com/archive/sounds/

Objective-C Docs:
http://www.cocoadevcentral.com/

Optimizing Texture Loading in Cocos2d:
http://allseeing-i.com/Performance-tips-for-Cocos2d-for-iPhone

That’s a Comic! Logo

Here is the (hopefully) finished version of the logo for the That’s a Comic! website:

logo_1

Thoughts on The 7 Habits of Highly Effective People

stephen-covey-7-habits-of-highly-effective-people

In The 7 Habits of Highly Effective People, self help guru Stephen Covey reveals a large number of profound (yet rooted firmly in common sense) concepts to promote personal emotional growth or “effectiveness” as he calls it. He explains the concrete principles underlying humanity (principles like integrity, honestly, and compassion) as objective truths that govern success and the achievement of personal growth and stability. Spiritually, these principles are common to all religions and lie at the very core of popular myth, parable and holy texts.

To apply these principles, certain mindsets are required. For example, the mindset of “Win-Win” is required to see the possibility of mutual benefit in one’s actions and then to properly work interdependently with other people. All the advice given by Mr. Covey stresses long term commitment and long term growth. This advice is then applied to a number of practical areas including business, parenting and personal relationships. He refutes determinism and argues for “fundamental human endowments” that set us apart as truly free actors. We are free to choose and to take command of our own life. The motivation to this end comes from advised introspection to seek out our true sub-conscious needs. He stresses self-knowledge to prioritize our lives around what is most fulfilling. He then applies this concept to the group with interdependent group leadership.

It might sound too good to be true or it might sound like obvious common sense, but, Mr. Covey’s understanding of the human condition provides hard objective ground for the naturally relativist cynic to stand on. His normative assertions of the goodness of things like integrity, truthfulness, and understanding are indisputable. He applies these principles practically to modern life and provides strategies for cultivating ourselves and our relationships. For someone interested in understanding the fundamental essences of human life and existence from a practical perspective, Mr. Covey’s work is a must read.

That’s a Comic Character Designs

Here are some initial character designs for That’s a Comic:

Burba

Burba

Julie

Julie

Mike

Mike

Jon

Jon

Ramifications of Wikipedia – The Second Renaissance

Ramifications of Wikipedia – The Second Renaissance:
Inspired by the ease at which one can do research using modern tools (Wikipedia), I wonder what future intellectual thought will be like with such a broad range of study at our fingertips.
Wikipedia allows you to easily locate information to gain a peripheral understanding of a given field. The more in depth you need to look into the subject, the more difficult information is to find (relative to at a shallower depth). Because of the centralization and veracity of all basic information through Wikipedia, fundamental knowledge of virtually all fields has become easily obtainable. In the 20th century it was difficult to get a broad understanding of multiple fields as you had to (typically) go to the library, search through a card catalog, and most likely search through volumes of potentially out of date encyclopedias. Scholars traditionally held themselves to a single field and focused their learning there because of this inescapable initial resistance.
In the 21st century, because of not only the ease of finding basic information on all fields but also the (relative to 30 years ago) ease of finding more in depth information, intellectuals can easily obtain a more well rounded view of the world. Multiple disciplines can be understood simultaneously. Consequentially, conclusions drawn from field A can now be linked to fields B and C. This broadens the scope of understanding and leads to new conclusions encompassing many fields of study. Broad knowledge, once confined to the philosopher, sociologist or historian is now readily obtainable. Intellectuals are no longer confined to the paradigm choices of specialist (Master of a field) or generalist (”Jack of All Trades”). This information revolution will lead to a fundamental change in the attitudes of intellectuals. It will slowly strip away the selfish hoarding of intellectual capital to reveal the vast mutual benefits of shared learning and understanding through technology. To understand this cultural shift, we must look at the roots of Western “intellectual capitalism” and their formulation in the Renaissance era.
The Renaissance Ideal of the omniscient intellectual is known as the “Renaissance Man”. This man was expected to have a courtly facade masking any potential inner turmoil or vigorous thought. This man, as Baldassare Castiglione puts it, has “a certain nonchalance, so as to conceal all art and make whatever one does or says appear to be without effort and almost without any thought about it”. This practiced grace and concealed thought adds an air of effortlessness to his accomplishments. This facade has largely been maintained by the elite and carried into the late 20th century.
In our modern society this facade, or “Sprezzatura” in Italian, shown by the affluent, knowledgeable and talented can be discouraging to others. It creates a schism between seeing an accomplishment and understanding it. To the average man, it supposes that skills come much more naturally to the polymath where the average man must think through, practice and cultivate these skills. This gives the average man a complex and he comes to believe that the polymath merely flows with life and knowledge in a more natural way than he does. He feels crippled by his lack of natural talent and ability. This Sprezzatura masks the trials, mistakes, and practices of the polymath. His hard work and personal struggles are concealed and their wisdom lost.
By my own experience I have always reflexively eschewed the Sprezzatura, striving instead for openness. I believe the human mind must always be open and the modern man must display the willingness to constantly be in both a state of prideless teaching and shameless learning. This is my personal prophecy for the modern man must contend he is the prototypical “man of the future” lest he lose the will to live into it.
I am not alone as the world is moving in this direction. In the information age we have naturally opened ourselves, and our methods, up to the world. Internet based open discussion through Blogging, Microblogging (Twitter) and public comments on everything from articles to video broadcasts has married transparency and accountability to debate like never before. Many social walls have been broken down in this process and people now see the benefits of expressing themselves openly. Pioneers besides Wikipedia include MIT with their OpenCourseWare system and the myriad of private companies who subscribe to the model of open-source community driven software development. These beliefs have seeped into our common culture and, as technology becomes more advanced, they will become more prevalent.
Through this lens we catch a glimpse of the prototypical “Man of the Future”. This 21st century Renaissance man will pride himself on openness, clear thought and explanation. He will take pleasure in teaching others his skills and crafts. He will speak slowly, thoroughly, and accurately. He will be quick to admit his own lack of knowledge for he knows that the opportunity of identifying one’s own intellectual weakness is an opportunity to learn. This new man will reveal all artistic methods with a fiery enthusiasm. This cannot be confused with overthought or dwelling. The classic facade of the Sprezzatura will be removed, revealing the precious systems of logic used to improve the self.
This breakthrough to involuntary openness and intellectual generosity will fuel the creativity and zest for life of the intellectually discouraged and downtrodden. Knowing their peers’ grace is not primordial but learned, attempted and labored over will embolden those who could not see through the Sprezzatura. This is the essence of the “Second Renaissance”.

Inspired by the ease at which one can do research using modern tools (Wikipedia), I wonder what future intellectual thought will be like with such a broad range of study at our fingertips.

Wikipedia allows you to easily locate information to gain a peripheral understanding of a given field. The more in depth you need to look into the subject, the more difficult information is to find (relative to at a shallower depth). Because of the centralization and veracity of all basic information through Wikipedia, fundamental knowledge of virtually all fields has become easily obtainable. In the 20th century it was difficult to get a broad understanding of multiple fields as you had to (typically) go to the library, search through a card catalog, and most likely search through volumes of potentially out of date encyclopedias. Scholars traditionally held themselves to a single field and focused their learning there because of this inescapable initial resistance.

In the 21st century, because of not only the ease of finding basic information on all fields but also the (relative to 30 years ago) ease of finding more in depth information, intellectuals can easily obtain a more well rounded view of the world. Multiple disciplines can be understood simultaneously. Consequentially, conclusions drawn from field A can now be linked to fields B and C. This broadens the scope of understanding and leads to new conclusions encompassing many fields of study. Broad knowledge, once confined to the philosopher, sociologist or historian is now readily obtainable. Intellectuals are no longer confined to the paradigm choices of specialist (Master of a field) or generalist (”Jack of All Trades”). This information revolution will lead to a fundamental change in the attitudes of intellectuals. It will slowly strip away the selfish hoarding of intellectual capital to reveal the vast mutual benefits of shared learning and understanding through technology. To understand this cultural shift, we must look at the roots of Western “intellectual capitalism” and their formulation in the Renaissance era.

The Renaissance Ideal of the omniscient intellectual is known as the “Renaissance Man”. This man was expected to have a courtly facade masking any potential inner turmoil or vigorous thought. This man, as Baldassare Castiglione puts it, has “a certain nonchalance, so as to conceal all art and make whatever one does or says appear to be without effort and almost without any thought about it”. This practiced grace and concealed thought adds an air of effortlessness to his accomplishments. This facade has largely been maintained by the elite and carried into the late 20th century.

In our modern society this facade, or “Sprezzatura” in Italian, shown by the affluent, knowledgeable and talented can be discouraging to others. It creates a schism between seeing an accomplishment and understanding it. To the average man, it supposes that skills come much more naturally to the polymath where the average man must think through, practice and cultivate these skills. This gives the average man a complex and he comes to believe that the polymath merely flows with life and knowledge in a more natural way than he does. He feels crippled by his lack of natural talent and ability. This Sprezzatura masks the trials, mistakes, and practices of the polymath. His hard work and personal struggles are concealed and their wisdom lost.

The Book of the Courtier

The Book of the Courtier

By my own experience I have always reflexively eschewed the Sprezzatura, striving instead for openness. I believe the human mind must always be open and the modern man must display the willingness to constantly be in both a state of prideless teaching and shameless learning. This is my personal prophecy for the modern man must contend he is the prototypical “man of the future” lest he lose the will to live into it.

I am not alone as the world is moving in this direction. In the information age we have naturally opened ourselves, and our methods, up to the world. Internet based open discussion through Blogging, Microblogging (Twitter) and public comments on everything from articles to video broadcasts has married transparency and accountability to debate like never before. Many social walls have been broken down in this process and people now see the benefits of expressing themselves openly. Pioneers besides Wikipedia include MIT with their OpenCourseWare system and the myriad of private companies who subscribe to the model of open-source community driven software development. These beliefs have seeped into our common culture and, as technology becomes more advanced, they will become more prevalent.

Through this lens we catch a glimpse of the prototypical “Man of the Future”. This 21st century Renaissance man will pride himself on openness, clear thought and explanation. He will take pleasure in teaching others his skills and crafts. He will speak slowly, thoroughly, and accurately. He will be quick to admit his own lack of knowledge for he knows that the opportunity of identifying one’s own intellectual weakness is an opportunity to learn. This new man will reveal all artistic methods with a fiery enthusiasm. This cannot be confused with overthought or dwelling. The classic facade of the Sprezzatura will be removed, revealing the precious systems of logic used to improve the self.

This breakthrough to involuntary openness and intellectual generosity will fuel the creativity and zest for life of the intellectually discouraged and downtrodden. Knowing their peers’ grace is not primordial but learned, attempted and labored over will embolden those who could not see through the Sprezzatura. This is the essence of the “Second Renaissance”.

Step 1: Inspire

As my foray into the blogosphere begins and I am about to start my first real day with a blog, I would like to post my first inspirational image of the day/week/month/whenever:

Dr. Martin Luther King Jr. in jail in Birmingham

Dr. Martin Luther King Jr. in jail in Birmingham

Dr. King was not only a great civil rights leader but also a great philosopher. In this photo he shows us that while forces beyond our control may hinder us from acting we can still control our minds. Never stop thinking. Never stop reasoning. Your mind’s action cannot be halted as easily as your body’s.

King argued that people, not some abstract force, are what push through change in our society. The wheels of reform are slowed by those who see themselves merely as bystanders witnessing a historic event. So, I urge you to get up and act. If you cannot because you are physically imprisoned in jail or school or your job then at least free your mind.

Welcome. How can I make your stay more enjoyable?

This is the inagural post of The Burba Blog, the place to find everything and anything about that guy who promises to never stop bugging you about all sorts of interesting un-interesting things.

Let the blogging commence!