Monthly Archive for February, 2010

Page 2 of 2

cocos2d course

The guys from web-week are going to give a cocos2d course.

Course homepage: http://web-geeks.com/iphonedev/

Course details (copy & pasted from the Course homepage):

Price: Free

Covered In Course:
We will be covering most of cocos2D for game development, this includes AI, Sounds, Graphics, Physics, Side Scrollers, ect…

Course Length:
We plan to have the course for around 3 months, but this may change, if it does we will inform you.

Syllabus:
Every Monday you will get a weekly assignment that will be due Sunday at 11:59PM.
There will usually be a forum for questions, a page with the assignment detail, a video, and a power point for each assignment. I will give you a grade just so you can know how well your doing, and I will give tips.

There is also, an ongoing discussion on the forum: http://www.cocos2d-iphone.org/forum/topic/4390

Editors #2

To read Editors #1, please go here: Editors

cocos2d for iPhone supports different formats for the sprites, tiles and fonts. The following is a list of the editors supported by cocos2d:

Tiles

The popular tile editor called Tiled can be used to generate tile maps for cocos2d. With it, you can create orthogonal, isometric and hexagonal maps.

Tiled has 2 versions:

  • Native (QT) version: This version is constantly being updated. It is much easier to use, and has a nicer GUI. The only missing feature, as of today, is support for hexagonal maps.
  • Java version: It’s the old version, it supports hexagonal, isometric and orthogonal maps, but with an uglier GUI.

Tiled QT v.0.4.0 in action

For further information regarding how to use Tiled and cocos2d, please read: Programming guide: How to use tile maps

Download: http://mapeditor.org

Sprites

Robert Payne updated the old Texture Atlas Creator. The new version is now called  Zwoptex, and this is the new homepage: Zwoptex homepage

New features:

  • Has more arranging options
  • canvas size adjustment
  • Minimum spacing for arranging
  • A centralized way to load frames (similar to Flash)

Recently Robert also released the source code of the editor: http://www.cocos2d-iphone.org/forum/topic/4300


Zwoptex in action

For further information regarding how to use Zwoptex in cocos2d, please read: How to use Zwoptex and CCSpriteFrameCache

The guys from GameDoctors, also created an utility called mkatlas.pl to generate a compacted texture atlas from different image files. This utility is included in  the cocos2d distribution and can be found in the /tools directory.

Fonts

cocos2d has 3 ways to render fonts:

  • CCLabel: Which renders fonts using both system and custom .TTF files (introduced in v0.1)
  • CCLabelAtlas: Which renders fixed-width fonts from an image file (introduced in v0.5)
  • CCBitmapFontAtlas: Which renders variable-width fonts from an image file (introduced in v0.8)

To create images for CCLabelAtlas and CCBitmapFontAtlas you can use the following editors:

CCBitmapFontAtlas:

Hiero Font Tool editor in action

CCLabelAtlas:

Recently, the guys from Indeeo created a new editor for an improved LabelAtlas, called ALLabelAtlas.

This editor supports some effects like shadow, and it also adds support for kerning.

Download: http://www.cocos2d-iphone.org/forum/topic/4357

LabelAtlas editor

Update: tilluigi told us about a Photoshop plugin to generate SpriteSheets: http://forums.tigsource.com/index.php?topic=10578.0

If you know any other editor, please, let us know! Thanks.

ProgressTimer for cocos2d

The guys from Fancy Rat Studios just posted an interesting article regarding how to create and use a ProgressTimer in cocos2d.

ProgressTimer supports 6 ways to display progress:

  • Horizontal (left to right, or right to left)
  • Vertical (top to bottom, or bottom to top)
  • Radial (clockwise or counter clockwise)

The article is here: ProgressTimer for cocos2d

And you can download a working example from here: Download the XCode Demo

Integrating cocos2d with AGON Online

Recently, Lars Peter, one of the AGON Online developers wrote an article regarding how to integrate AGON Online with cocos2d.

You can find the article here: Integrating cocos2d with AGON Online

cocos2d v0.99.0-rc – iPad compatible

cocos2d v0.99.0-rc has been released.

Download: http://cocos2d-iphone.googlecode.com/files/cocos2d-iphone-0.99.0-rc.tar.gz

Release Notes: http://www.cocos2d-iphone.org/wiki/doku.php/release_notes:0_99_0_rc

Full Changelog: http://cocos2d-iphone.googlecode.com/svn/tags/release-0.99.0-rc/CHANGELOG

New features (from v0.9-beta2):

  • iPad compatible: cocos2d and the cocos2d tests work in any screen size (480×320, 1024×768,…) (please read the iPad SDK to learn how to create 1024×768 projects)
  • Uses Chipmunk v5.1 and Box2d r39
  • New Camera: easier to use, has more features but it also has new limitations
  • Improved speed in different components: Actions, Scheduler, BitmapFontAtlas, Camera, Node, Sprite, Touch Handler

What’s next:

  • v0.99.0 (final). No new features will be added, only important bug fixes, or opportunistic fixes.
  • Scheduler improvements, Blocks and other features will be added during the v0.99 series

This is a Release Candidate version. It means:

  • It is not yet the “final” v0.99.0 version.
  • Unless there is something totally wrong, there won’t be any changes in the API.
  • No new features will be added (unless “opportunistic” ones).

Update: If you see gray borders on your images, please update to SVN r1761 or just replace the CCSprite.m file with this file: CCSprite.m




Social Widgets powered by AB-WebLog.com.