Questions tagged [cocos2d-x-4.0]

10 questions
2
votes
2 answers

Cocos2d-x 4.0 new project not includes xcodeproj file

I used below command to export from command line. cocos new -l cpp -p com.bfg.mynewpro -d /Volumes/Development/Project/Development/GuruNewPro Exported source not includes main Xcode project file. How to get it exported ?
iPhoneProcessor
  • 4,980
  • 6
  • 27
  • 49
1
vote
1 answer

Cant Open Lua Scene Spine Test Cocos2dx v4

im using cocos Lua v4. and im looking how to create spine in Lua. But unfortunately, when im open Lua Test in Spine section. Its not showing spine, i got this error attempt to index global ‘sp’ (a nil value) Its that a bug ? if is not, how can i…
Just L
  • 80
  • 1
  • 2
  • 15
1
vote
0 answers

Problem building a cocos2d-x project in macOS using Ninja or Unix Make

So I recently wanted to try out Unix Make or Ninja for building my cocos2d-x game, instead of as an Xcode project, using CMake for generating the Unix Make and Ninja files. However, a fraction through the build process, it fails, giving me this…
Nahiyan
  • 510
  • 5
  • 19
1
vote
0 answers

cocos2d-x: Should I add cocos2d folder in my git repo?

I am new to cocos2d-x. Currently it's upgraded to 4.0 I tried to add files to my repo as first commit. I did some research, and I found out some added the cocos2d folder (library) in the repo, but some didn't. It's almost 300MB. Should I include…
Terence
  • 652
  • 11
  • 34
0
votes
1 answer

Incorrect loading of CSV Tilemap (tmx file) using Cocos2d-x v4 C++

I am attempting to load a 2d tiled map (.tmx + .tms files) generated from Tiled Map Editor into Cocos2d-x version 4. I am building the project using Visual Studios 2022 -- Win32 I'm trying to make the scene as simple as possible, and the tiled map…
Ilan Keshet
  • 514
  • 5
  • 19
0
votes
0 answers

Cocos2d-x collision won't trigger OnContactBegin callback

I've been trying to prevent the collision between the Player and a VisionZone (a cone in front of the player that represent a flash light effect). The VisionZone is spawning on top of the player. My problem is : since they both have physic bodies,…
Thomas
  • 1
0
votes
0 answers

Dynamic Light effect with Cocos2d-x 4.0 and C++

I've been trying to create a dynamic light effect with cocos2d-x, but I cannot find a good tutorial for the 4.0 version. For the context, I'm developping a top-down game for as a personnal project. The light would spread directly in front of the…
Thomas
  • 1
0
votes
1 answer

Cocos2dx Firebase CPP without Pod Integration

I want to integrate Cocos2dx v4 cpp project with Firebase (I am using firebase_cpp_sdk_8.11.0). This has been successfully integrated in Android. The problem that I am facing right now is integrate with IOS (without Pod). I already followed this…
Jef
  • 869
  • 4
  • 13
  • 27
0
votes
0 answers

How to add libz and libiconv?

When trying to build cocos2d-x v4 based project, I get the following error: clang: error: no such file or directory: '/usr/lib/libz.dylib' clang: error: no such file or directory: '/usr/lib/libiconv.dylib' Command Ld failed with a nonzero exit…
Rahul Iyer
  • 19,924
  • 21
  • 96
  • 190
0
votes
1 answer

Convert SimpleAudioEngine to AudioEngine Cocos2dx-v4

CocosDenshion::SimpleAudioEngine::getInstance()->preloadEffect("Sounds/Hit.mp3"); CocosDenshion::SimpleAudioEngine::getInstance()->preloadEffect("Sounds/Point.mp3"); CocosDenshion::SimpleAudioEngine::getInstance()->preloadEffect("Sounds/Wing.mp3"); …
Văn Anh
  • 1
  • 1