This is how it looks in chrome and mozilla  I am using cocos2dx-3.10  I have used this code  var TestLayer = cc.LayerColor.extend({     ctor: function () {         this._super(cc.color(255, 255, 255));           var lineUp = new cc.DrawNode();...
I have done some research and can't find a direct easy way to run my cocos2d-x project which is built in c++ on the web. If anyone has a solution besides re-writing my code in js or html I would love to hear it. Things I have tried so far...   Em...
I am trying to save a high score integer to the user's Android system, so that it can persist throughout all game-play experience.  I have read that using Cocos2D-X one can use NSUserDefaults but this doesn't seem to be available in the Cocos...
Context: I'm creating a Cocos2d-JS Game. I have already created the Project and am in development phase.  I can run cocos run -p web or cocos run -p web --source-map from the project directory in the Console. These commands work and allow me to r...
How would one load a javascript structure (object or array) from a file in Cocos2d-X 3.  My res/test.json:  {     version:"1.0",     data:"this is some data." }   I'm able to load the file content like so:  var data = fileUtil.get...
I wrote a game with Phaser engine but sadly i didn't get any good performance even with cocoonjs. I tried to optimize it but i don't think i can optimize enough.   So i'm trying to switch to cocos2d-js. I tried some examples with cocos2d...
Getting some error even for sample cocos2d helloworld file.  Android NDK: android-13 is unsupported. Using minimum supported version android-14.     [armeabi] Compile++ thumb: cocos2dxandroid_static <= ProcessCpuTracker.cpp /home/user/Documents/co...
I add a sprite that has eventListener to layer.When I touch it no error but no effect yet.  Here is my code:    onTouchBegan : function (event) {                 var spriteFrames = [];                 var frame = cc.spriteFrameCache.getSpriteFrame(re...
I've existing AngularJS based web app. It is supposed to be like a game portal, so that user can choose which game he wants to play. The games are written with cocos2d-js.  Are there any restrictions/rules to follow to embed AngularJS into cocos2...
I’m converting my game from cocos2d-x 2.2.3 to cocos2d-js 3.2, but the players already have saved progress using the old CCUserDefaults. Now that I have to use localStorage in cocos2d-js, how can I read the old data that was saved using CCUserDefau...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.