Questions tagged [cocos2d-html5]

An open-source web 2D game framework, cross platforms between browsers and native applications with the C++ bindings to cocos2d-x.

Cocos2d-html5 is an open-source web 2D game framework, released under MIT License. It is a HTML5 version of Cocos2d-x project. The focus for Cocos2d-html5 development is around making Cocos2d cross platforms between browsers and native applications. On top of the framework provided by Cocos2d-html5, games can be written in Javascript, using an API that is COMPLETELY COMPATIBLE with that of Cocos2d-x javascript binding. Cocos2d-html5 project can be easily run on browsers which supports HTML5. Cocos2d-html5 also supports running game code in "Cocos2d Javascript binding" without or with little modification.

63 questions
7
votes
1 answer

Suitable library for combining with D3js , to allowing drawing to webgl (2D)

Here is what i am trying to do : http://mbostock.github.com/d3/talk/20111116/iris-splom.html But i want to do that in webgl 2d (because SVG performance is very slow, randering 10k SVG only already drops to 12 fps) On a quick search i found several…
Phyo Arkar Lwin
  • 6,673
  • 12
  • 41
  • 55
3
votes
1 answer

Cocos2d html5 vs Cocos2d-x in C++

I´m trying develop a game multiplatform, and wondering about the pros and cons about use Cocos2d html5 in JS vs Cocos2d-x in pure C+. Anyone have a feedback about use case for each technology? Thanks a lot.
Zeus Monolitics
  • 832
  • 9
  • 19
3
votes
2 answers

Same code for Cocos2Dx and Cocos2d-html5?

Here I see the following: .... the team of Cocos2d-x are working on something called "Javascript binding for Cocos2d". What that means is your very same code running on Cocos2d-html5 engine can work flawlessly on Cocos2d-X and Cocos2d-iPhone…
Narek
  • 38,779
  • 79
  • 233
  • 389
3
votes
1 answer

Can a website be made in cocos2d-html?

I have been working with cocos2d-iPhone, cocos2d-x, and cocos2d-html5 for quite some time. I wanted to ask if it is okay to build a website with cocos2d-html5. I want to do it because I want the website look interactive, animated, and scroll around…
Khawar Ali
  • 3,462
  • 4
  • 27
  • 55
2
votes
1 answer

Cocos2D-JS can't load json file exported from CocosStudio

I'm trying to load a json file exported from cocosstudio v2.3.2 var myScene = ccs.sceneReader.createNodeWithSceneFile('res/Scene.json'); I got this code from sample-cocos2d-js-scene-gui-master The problem is, i get this error: Can't find the…
cessmestreet
  • 2,298
  • 3
  • 22
  • 42
2
votes
1 answer

Cocos2d html5 onTouchEnded is not working

In my simple project I use touch events to change a button states: in this case everything works fine cc.eventManager.addListener( { event: cc.EventListener.TOUCH_ALL_AT_ONCE, swallowTouches: false, onTouchesBegan: onTouchesBegan, …
2
votes
1 answer

Does Cocos2d-js use a webview?

I need to know if the cocos2d-js (cocos2d javascript) could build a real native application and not just use a webview to display the content. what i exactly need to know, if the animations and all parts of the game logic will be transformed to some…
2
votes
1 answer

Cocos2d js dynamic light

Is there any way to use dynamic light in cocos2d js like this. I don't find any information about this, all links go only to cocos2d-x Link
2
votes
1 answer

Cocos2d-html5 - Restarting/quitting engine possible?

With Cocos2d-html5, is there any way to “quit” the engine and re-initialize its state so you can later restart the engine. We are using a Cocos2d game in a single page web app. If the user navigates to another page, we want to programmatically…
Niki Sehmi
  • 83
  • 1
  • 5
2
votes
2 answers

What is Cocos2d-JS?

Cocos2d-JS is Cocos2d-x engine's JavaScript version that includes Cocos2d-html5 and Cocos2d-x JavaScript Bindings. It equips your game with cross-browser and cross-platform abilities, accompanied by full Cocos2d-x features and simplified…
Narek
  • 38,779
  • 79
  • 233
  • 389
2
votes
0 answers

Remove no longer used sprites from memory in Cocos2d-html5

Because I'm developing on mobile devices, I wanna to remove no longer used objects (sprites) from memory. Should be detachChild be enough to have it out of memory ? What about the src references. How to remove/detach them from the dom ?
Claudio Ferraro
  • 4,551
  • 6
  • 43
  • 78
2
votes
2 answers

How to make HTML5 Canvas full page size with Cocos2D

I'm new to Cocos2D-HTML5 (and HTML5 itself) and I'm trying to get the canvas to be the full size of the page. I'm confused by how few issues are documented about this on the internet, so I hope it's actually really simple. The problem is that the…
GroovyPanda
  • 3,694
  • 8
  • 31
  • 42
1
vote
0 answers

Best way to transition between multiple Cocostudio defined scenes

I'm designing a game that has to switch between multiple game scenes. Each scene has been created in cocostudio and is imported into the code as a json file as: var obj = ccs.load(res.Symbols_json); this.addChild(obj.node); This works fine, however…
Danni
  • 43
  • 6
1
vote
0 answers

Open a website in new window and detect that redirect to another url

In iOS, android I can show a webview and when it redirect to an url, I can detect it. (like login via facebook, google ..vv..) I want to do the same thing with cocos2d-html5 or cocos2d-js. (for web-browser) I just try below code but nothing…
Tony
  • 4,311
  • 26
  • 49
1
vote
1 answer

Cocos2d-js sprite array touch event

var GameLayer = cc.Layer.extend({ ball:[], number:[], label:[], numberofballs:8, _order:0, ctor:function () { this._super(); this.init(); }, init:function(){ this._order=0; …
USER
  • 741
  • 4
  • 10
  • 21
1
2 3 4 5