Cocos2D for the Web

Standalone Beta Build

A few people asked for it, so I’ve built Cocos2D JavaScript into a single JavaScript file which you can use without the need to install anything. Just drop the .js file into your HTML and everything is available under the cc global namespace. The zip includes a very simple demo.

This is an early test build and likely doesn’t work properly in places. Let me know what you think.

Download the standalone build here

Posted

Comments

ryuheechul

ago, ryuheechul said

I’ve downloaded and tried it, but how can I use sprite image file on this standalone build?

Ryan

ago, Ryan said

Hi

This will work, but it’s a rather ugly approach in my option. I will simplify the process in the next version so you don’t need to create an Image or Texture2D.

https://gist.github.com/2841535

BDM

ago, BDM said

Is there any way to get the Box2d physics working with the standalone build? Can’t figure it out…

Nikhil

ago, Nikhil said

Any Chance of releasing Documentation and tutorials for this?

otuken

ago, otuken said

what version is the standalone build based on?

Usama Ahmed

ago, Usama Ahmed said

how to use box2d with this release?

Phil

ago, Phil said

i can’t figure out how to preload resources, can you explain please?

tongjinle

ago, tongjinle said

where is the ‘util’, i cant find it

Sorry, but commenting has been disabled on this article due to a high amount of spam bots hitting it.