Monthly Archive for December, 2010

cocos2d v0.99.5 released. Mac, Retina Display and PVR textures

After 5 intermediate releases, and more than 5 months of development I’m happy to announce that cocos2d for iPhone and Mac! v0.99.5 is available for download:

Release Notes: v0.99.5 Release Notes

API Reference: v0.99.5 API Reference

Full Changelog: v0.99.5 Changelog

Developers: Developers

Highlights of v0.99.5:

  • Mac Support
  • Automatic Retina Display support
  • PVR textures

Mac support

cocos2d now supports Mac as a target platform!

Porting your cocos2d (iOS) game to Mac is really easy. If your game only uses cocos2d then the only thing that you have to modify is event handling code. eg: Replace accelerometer/touches code with keyboard/mouse code.

All the cocos2d for iOS functionality is present on Mac with only a few exceptions (see Release Notes). cocos2d for Mac  also supports fullscreen and auto-resize.

cocos2d already includes Mac templates, so it is as easy to start a cocos2d Mac project as it is for iOS.

Remember that the Mac App Store opens on January 6, 2011

Retina Display

All the cocos2d API was converted from Pixels to Points. It means that cocos2d supports Retina Display automatically.

If you have a cocos2d game for iPhone and you want to support iPhone 4 (Retina Display), then the only thing that you have to add is the Retina Display assets (graphics and graphics meta data), and nothing more! There is no need to modify your existant code.

PVR Textures

Do you want to improve the loading time of your game ? Then PVR textures is what you need :)

What is PVR ? PVR is a container format, in particular a texture container format. You can pack any texture format inside a PVR file, including RGBA4, RGBA5551, RGB565, PVRTC-4bpp,… texture formats.

PVRTC-2bpp and 4-bpp are supported since cocos2d v0.5.2, but since v0.99.5 it is possible to pack ANY texture format. (List of  supported formats)

Why PVR is faster than .PNG / .BMP / .GIF images ? Because the texture is already in the desired format. There is no need to decode and convert the image to the correct texture format.

According to some performance tests, PVR files are loaded up to 8x times faster than .PNG files.

The only problem with PVR files is that they can be as 10x times bigger than the .PNG counterpart. In this case, cocos2d offers the alternative to compress the PVR files using gzip or a custom format, keeping an small file size (usually smaller than .PNG) with faster loading times.

Cocos2d for iPhone 0.99 Beginner’s Guide

Cocos2d for iPhone 0.99

Hi, this is Pablo Ruiz, author of Cocos2d for iPhone 0.99 Beginner’s Guide book. It is  published by Packt Publishing for a series of opensource related books.

The book is aimed towards people who are just beginning with Cocos2d. When I began working with Cocos2d, around mid 2009, there wasn’t much reference material, just the Sapus Tongue source code and a couple of tutorials around the internet. So, at that time there were lots of post in the forums of people needing help getting started, how to work with the samples, how to get their first app to build and so on. So what I wanted to do is to fill that space, to write a book that would help people get started with this great framework.

This book is designed to get you familiarized with Cocos2d for iPhone, allowing you to build your own games. To that end, the book is organized in easy-to-follow examples. Through the book we’ll be building 3 different types of games that exploit all the power Cocos2d has.

Chapter 1 – Getting started with Cocos2d

We’ll start by taking a look at the sample projects that are included in the source. Then you will learn how to install the templates to easily start a new project and then you’ll make your first simple project. We’ll also talk about some Cocos2d basic concepts.

Finally we’ll take a look at the debugging features of Cocos2d.

Chapter 2 – Playing with Sprites

In this chapter you will learn all there is to Sprites. By the end of the chapter you will be able to create and manage your own objects.

We’ll also start building the first of the 3 games we’ll make in the book. We’ll take a look at how to begin developing a simple puzzle game.

Chapter 3– Let’s do some actions

Cocos2D Allows you to move, scale, tint and apply a lot more of effects to objects over time. In this chapter we’ll continue enhancing the first game to make it look nicer.

Chapter 4- Pasting Labels

Every game needs to show some text at some point. It could be an instruction text, hints, scores or a lot of things. In this chapter we will take a look at all the ways Cocos2d has to place texts on the screen and modify them.

Chapter 5 – Surfing through Scenes, layers and transitions.

Scenes and layers are where all the content of Cocos2d games is placed. Your game may consist in just one Scene with one layer, or as many as you want! In this chapter we will get into the details of how to make the best use of them, switch between scenes with Transitions and also how to handle accelerometer and touch input on the layers.

Continue reading ‘Cocos2d for iPhone 0.99 Beginner’s Guide’

Zombie Farm: Another cocos2d hit

Recently Apple released the Top 10 list of iPhone/iPad apps for 2010, and Zombie Farm appeared #6 in the Overall Top 10 GROSSING iPhone Apps, beating mega hits like Doodle Jump and Plants vs. Zombies.

Overall Top 10 GROSSING iPhone Apps:

  1. MLB.com At Bat 2010
  2. Angry Birds
  3. Call of Duty: Zombies
  4. Bejeweled 2 + Blitz
  5. FriendCaller 3 Pro
  6. Zombie Farm
  7. TomTom U.S.A.
  8. TETRIS®
  9. Plants vs. Zombies
  10. Doodle Jump – BE WARNED: Insanely Addictive!

It is worth noting (also mentioned by  TechCrunch) that Zombie Farm is the only freemium game in the Top #10.

Congratulations Zombie Farm.

The cocos2d family keeps growing

The cocos2d family keeps growing and growing and growing… :-)

The new members of the family are:

  • cocos2d-x, in C++, multiplatform
  • cocos2d-android-1, in Java, for Android
  • cocos2d-javascript, in Javascript, for Web

cocos2d-x

cocos2d-android-1

cocos2d-javascript

Related links:

Updated: Added cocos2d-javascript site.



Social Widgets powered by AB-WebLog.com.