Questions tagged [cocos2d-x-3.x]

Cocos2d-x is an open source game engine under MIT license. It can be used to build games, apps and other cross platform GUI based interactive programs.

Cocos2d-x is an open source game engine under MIT license. It can be used to build games, apps and other cross platform GUI based interactive programs.

Cocos2d-x allows developers to exploit their existing C++, Lua and Javascript knowledge for cross-platform deployment into iOS, Android, Windows Phone, Mac OS X, Windows Desktop and Linux, saving time, effort and cost. Cocos2d-x is fast, easy to use and loaded with powerful features.

Source: http://www.cocos2d-x.org/wiki

56 questions
0
votes
1 answer

Is there any guide for migrating Cocos2d-x 3.8 to 3.14?

I'm trying to migrate Cocos2d-x 3.8 to 3.14. but when I tried to find a blog or a blog that explaining how to solve the Issues, I could not found it. I can only found Cocos2d-x 2.X to 3.X So, I ask for help here. Could you give me some guide for…
JunYoung Yoon
  • 43
  • 1
  • 10
0
votes
1 answer

System overlay window with Android NDK C++, inc. OpenGL-ES for graphics

I am very experienced with Visual C++ and I am just starting to program native Android C++ apps with Visual Studio 2015 C++. I need to do a homescreen overlay-style app, presumably by using a TYPE_SYSTEM_OVERLAY window and SYSTEM_ALERT_WINDOW…
0
votes
1 answer

How To build cocos2dx using emscripten

I have faced with problem when I try to build simple project from source using emscripten. Let me describe my acts step by step: I am using ubuntu 14.04 LTS install emscripten (I have followed instructions) install cocos2dx (I have followed…
Mike
  • 55
  • 1
  • 7
0
votes
1 answer

Is Possible to integrate small cocos2d-x 3.2 game inside existing IOS application using swift 3?

Hello friends is it possible to create a game using cocos2dx 3.x , Swift.If this is possible than how can i integrate my game inside my native IOS application using swift3.Please Guide me.
anand
  • 141
  • 1
  • 1
  • 9
0
votes
1 answer

RenderTexture's created Image not visible

I'm trying to create a black and white Sprite based on another Sprite. Since I don't have access to sprite pixel data after it's been created and cached, I'm working around it by creating a new Image based on the , then alter the image data, then…
TankorSmash
  • 12,186
  • 6
  • 68
  • 106
0
votes
0 answers

How does one efficiently override the draw method of a sprite to change individual pixels?

Apparently in cocos2d-x, you can override the draw method of a sprite, to do interesting things. Unfortunately, I have no OpenGL experience, so I'm having a hard time figuring out what is going on in this method: void Sprite::draw(Renderer…
Rahul Iyer
  • 19,924
  • 21
  • 96
  • 190
0
votes
1 answer

Do we need to add a texture to the texture cache to get the benefits of autobatching?

Normally, when one loads the sprite frame cache from a file by calling: SpriteFrameCache::getInstance()->addSpriteFramesWithFile(filename); internally, the texture corresponding to that file is added to the texture cache by calling: Texture2D…
Rahul Iyer
  • 19,924
  • 21
  • 96
  • 190
0
votes
0 answers

Why does this downscaling algorithm produce artifacts?

I have a scaling algorithm which appears to scale the image to the right size, but produces artefacts(slight image corruption) in the right half of the image. As I am inexperienced using pointers, I suspect I may have blundered with my pointer…
Rahul Iyer
  • 19,924
  • 21
  • 96
  • 190
0
votes
1 answer

How to upload a png file in cocos2dx to a php server

I need to upload a .png file from cocos2dx to a php server. (.txt is fine for testing purposes) I edited the engine like described here: http://discuss.cocos2d-x.org/t/upload-file-with-httpclient-solved/18028/4 and…
huse
  • 324
  • 2
  • 11
0
votes
1 answer

How to make wrapped, scrollable text in cocos2d-x?

I've got a ui::Text in a ui::Layout and depending on the content, it overflows. I've looked into Label::setOverflow and Label::setWrap off the ui::Text's virtualRenderer Label, but I don't see a way to make it scrollable and wrap. How can I make a…
TankorSmash
  • 12,186
  • 6
  • 68
  • 106
0
votes
1 answer

cocos2dx 3.13 - DrawNode with animation

I am a newbie in cocos2d-x 3.13, I want draw with animation in the DrawNode like video: Art Gurus. It will draw a line the same when draw by hand. Any suggest for this solutions ? Thanks
ZNApps
  • 55
  • 2
  • 8
0
votes
1 answer

cocos2d-x FIXED_WIDTH isn't working

I have a 700x1280 image and my design resolution is 700x1280. I am not providing separate assets for each device that I target rather i will use one Resource which contains all my assets. The problem: When I set my design resolution I pass a…
Moshe Rabaev
  • 1,892
  • 16
  • 31
0
votes
1 answer

Genymotion with Cocos2d-x v3.11

I am using cocos2d-x v3.11 on mac and using Genymotion virtual devices. In my /jni/Application.mk, I've put, APP_ABI :=armeabi armeabi-v7a APP_ABI :=x86 But always same error comes NO_MATCHING_ABIS and the app doesn't launch on the…
master_dodo
  • 1,203
  • 3
  • 20
  • 31
0
votes
1 answer

Get execution time of http request

I have the following code: void GameScene::onGetServersRequestCompleted( cocos2d::network::HttpClient *sender, cocos2d::network::HttpResponse *response ) { if( 200 == response->getResponseCode() ) { std::vector *buffer =…
duri
  • 71
  • 2
  • 8
0
votes
1 answer

Python error while attempting to call cocos from the command line

To be clear, this is not an issue about creating a new project. I have a sneaking suspicion that it may have something to do with my initial setup using setup.py. The Problem: Calling "cocos" from the command line generates the following…
ARH
  • 1
  • 1
  • 3