Marat Yakupov Google NaCl as new platform?
Posts 99
Added by Marat Yakupov 10 months ago

I think that this would be great if cocos2d-x have NaCl platform as option.

I've tried build HelloWorld recently, successfully.
Changes and additions that needed to build it yourself can be checked here: https://github.com/moadib/cocos2d-x/tree/nacl

Only major difference - resources loading, with NaCl it must be done asynchronously. So in my approach i've packed resources to zip-archive and download it before initializing anything. After downloading it's mounted as VFS and all FileUtils methods loads everything from this archive.

Maybe someone wants participate in this? I do not have enough time to make complete port now.

Keith Johnston RE: Google NaCl as new platform?
Posts 2
Added by Keith Johnston 10 months ago

Fantastic! I can't wait to give this a try. I think there is a huge opportunity here for cocos2d-x.

Oren Bengigi RE: Google NaCl as new platform?
Posts 107
Added by Oren Bengigi 9 months ago

Hi Marat Yakupov,
Nice work, I've tried to compile it and had a few compilation errors related to libxml2,png,jpg and Tiff.
However, the hello world is running.
Were you able to compile the third-party libraries?

I've noticed that the include directories in the Makefile are set with a non-existing path.

Marat Yakupov RE: Google NaCl as new platform?
Posts 99
Added by Marat Yakupov 9 months ago

You right, forgot to add information how compile dependencies.

Ok, I'll add information & nessesary files for naclports to build them when I return from vacation :) Thanks for feedback.

mort deus RE: Google NaCl as new platform?
Posts 1
Added by mort deus 9 months ago

Actually ive started developing a new family branch-off from cocos2d and cocos2d-x that specifically targets Chrome's in development extension to native client called pnacl (llvm) using Google's Go programming language.

http://www.gocos2d.org/

Also you can use Golang as a native compiled language for Google's AppEngine/ComputeEngine, and a few other google goodies are planned for the project.

However, as I explain on my blog, im having to work on Go's llvm compiler frontend before I can dive into the core library, so at the moment there is only a very short tease of example code to go off of. :(

However im sure everyone who uses gocos2d when its ready for production will find it a very enjoyable experience.

[note]
Some may suggest gocos2d should be claimed under the cocos2d-x family and not to fragment the projects more.
Gocos2d is a not a port of cocos2d-iphone or cocos2d-x. I dont look at the code for these projects. However I reference the cocos2d python library to make sure that the function identifiers are as familiar to developers as possible.

This is how I view the cocos2d family and why I think it's missing a family member. All cocos2d based projects branch off to fulfill their own purpose. Cocos2d-py was made to make opengl simpler, Cocos2d-iphone was created to make mobile development simpler, and Cocos2d-x was created to make porting simpler.

Gocos2d was designed to make every aspect of the indie 2d game development process simpler. With concurrency, appengine, llvm, chrome, and a website that has huge plans you guys wont believe,(I cant disclose to much on it yet). I believe that everyone who uses cocos2d will be surprised by how fun and elegant the gocos2d development experience can be.

Im confident to say that gocos2d has a bright future and hope that cocos2d's community will welcome this new young project into the cocos2d family with open arms.

Im too tired tonight to explain more, but ill write a blog explaining the project in more depth tomorrow. If anybody wants to get a hold of me to ask questions or anything like that, then you may send me an email.

gocos2d_header.png (70.5 kB)

Zhe Wang RE: Google NaCl as new platform?
Posts 1642
Location Amoy, China
Added by Zhe Wang 9 months ago

Cool. I helped you to show out gocos2d logo in your post.

Enjoy Coding, Enjoy Life.

Marat Yakupov RE: Google NaCl as new platform?
Posts 99
Added by Marat Yakupov 9 months ago

mort deus, i want use same code for all platforms, so GO can't be chosen by me :)

Marat Yakupov RE: Google NaCl as new platform?
Posts 99
Added by Marat Yakupov 9 months ago

Oren Bengigi wrote:

Were you able to compile the third-party libraries?

I've noticed that the include directories in the Makefile are set with a non-existing path.

Look at this, hope that now you can build all dependencies yourself :)
http://github.com/moadib/cocos2d-x/commit/cb586083d0dbc5e2edf4b645837b5c15e5aa81ae

Justin Moore RE: Google NaCl as new platform?
Posts 1
Added by Justin Moore 8 months ago

! This is something I've been trying to do myself. Thrilled to see you've made progress on it.

May also be relevant to publishing on Steam (as mentioned here http://www.cocos2d-x.org/boards/6/topics/2880?r=11643) -- I think I read that you can publish on Steam with chromiumembedded (http://code.google.com/p/chromiumembedded/) which I believe can run NaCl apps.

Thanks for sharing! I hope to get your sample working myself.


(1-8/8)