Tuesday, October 27, 2009

LevelSVG map editor

My second game will be a platform game, and one of the most time-consuming tasks is creating good level maps.
So I put a lot of effort in trying to ease this task by creating an SVG parser that supports:
  • Basic physics types like: rect, circle, lines, bezier paths and nested transformations
  • The possibility to edit physics properties like: density, friction, restitution and isSensor
  • The possibility to link SVG elements with pre-defined physics objects and cocos2d sprites
  • Collision detection logic between these elements
  • Jump logic (the hero only jumps when touching the ground)
  • Movement logic (tilt, d-pad)
Example video:


The source code of this level "editor" will be available for purchase in a few days.

Tuesday, October 20, 2009

Sapus Tongue source code v1.8.3 released

Sapus Tongue v1.8.3 source code released.

Changes:
  • Uses cocos2d v0.8.2
  • Uses Admob 2009-10-16. Includes libAdMob3 for SDK 3.0
  • To prevent crashes, Admob is enabled only on SDK 2.2. It can be enabled on SDK 3.0 by adding the libAdMob3 library
  • Uses the new cocos2d logo
  • Uses DisplayLink director on SDK >= 3.1
  • Uses COCOS2D_DEBUG=1 instead of DEBUG=1 on debug builds to make CCLOG() works
If you have bought the Premium or Updates source code package, you should have received an email with the download link. If you have not yet received it, please let me know and I'll be happy to send it to you. Thanks.

Tuesday, September 8, 2009

Sapus Tongue source code v1.8.2 released

Sapus Tongue v1.8.2 source code released.

Changes:
  • Uses cocos2d v0.8.1 (final)
  • Fixed leak in GameHUD#newTextField_Rounded method
  • Fixed extra-release in GameHUD#saveCallback

If you have bought the Premium or Updates source code package, you should have received an email with the download link. If you have not yet received it, please let me know and I'll be happy to send it to you. Thanks.

Thursday, August 13, 2009

cocos2d + box2d: part II

Today I've been working on the editor and it is more or less functional. It is still a prototype, but it should work for very basic games.

Here is a video that shows some of it's features.


Wednesday, August 12, 2009

Experimenting with cocos2d + physics engine

Coding real games is the best way to evaluate how useful a game library is (like cocos2d).

I'm really happy with cocos2d, and the way it has evolved, but I think cocos2d needs to have better integration with a physics engine (box2d, chipmunk, or any other physics engine).

And by integration I mean:
  • An easy way to edit a physics world (bodies, shapes, etc.)
  • An easy way to edit visual world (eg: using tile map)
  • An easy way to match the physics world and the visual world
Ideally all these steps should be integrated using just 1 editor.

But before coding 1 editor that integrates physics + visual worlds, I'm exploring the existent alternatives.

For example, the tiled editor is a really good tile map editor (supported since cocos2d v0.8.1), and inkscape can be used to draw physics edges. But is it easy to mix those editors ? What are the alternatives ?

Well, that's what I'm doing now... I'm building a platform game with the idea to evaluate how easy is to code it using cocos2d.

The 1st step I took was to learn box2d. If you want to test the latest box2d version (from svn) inside the iPhone without cocos2d, use this patch. And if you want to use the latest box2d version with cocos2d, then you should use the latest cocos2d svn revision.

Did you code a platform game using cocos2d ? Would you mind sharing your experience ?

Tuesday, July 28, 2009

Sapus Tongue source code v1.8.1 released



Sapus Tongue v1.8.1 source code released.

Changes:
  • Uses cocos2d v0.8.0 (final)
  • Added LoadingBarNode.m class
    • It's a simple but useful class that displays progress while the textures are being loaded
    • Once the textures are loaded, a callback is called
    • This class can be used like any other CocosNode object
If you have bought the Premium or Updates source code package, you should have received an email with the download link. If you have not yet received it, please let me know and I'll be happy to send it to you. Thanks.

Wednesday, July 1, 2009

Sapus Tongue v1.8 released

Sapus Tongue v1.8.0 source code released.

Changes:
  • Uses cocos2d v0.8-beta + fixes (r1067)
  • Uses cocos2d v0.8 features:
    • onEnterTransitionDidFinish signal
    • new parallax code
    • Uses new CocosDenshion sound engine
    • calls [[TextureMgr sharedTextureMgr] removeUnusedTextures]; on dealloc
  • Hi Scores: uses cc_playername instead of usr_playername
  • Uses AdMob 2009-06-17

If you have bought the Premium or Updates source code package, you should have received an email with the download link. If you have not yet received it, please let me know and I'll be happy to send it to you. Thanks.