Cocos2d-x Developer Blog

Grabbing OpenGL frames with Android Studio

An OpenGL Frame Grabber allows us to analyze all the OpenGL function calls that render a particular frame. With it, among other things, we can find performance issues and rendering bugs. A few months ago, OpenGL Frame grabbing capabilities were added into Android Studio.

Warning: Android Studio’s OpenGL Frame Grabber is currently tagged as experimental

This is how we use it for Cocos2d-x games.

Create a Cocos2d-x game and compile it for Android Studio + armeabi-v7a

Create a C++ game, but it could be a JS or Lua game as well:

We should add the armeabi-v7a support by adding “APP_ABI := armeabi-v7a" into the Application.mk file (by default it will only compile it for armeabi).

After adding that line, it should look like this: Application.mk

And we should add the following C++ code snippet. Just edit the mygame/proj.android-studio/app/jni/hellocpp/main.cpp file and add the following lines:

After editing the file, it should look like this: main.cpp

After those changes, we are ready to compile it. Just do cocos compile -p android --android-studio

(pay attention to the "--android-studio" option). Example:

(more…)

Posted in Uncategorized Tagged with: , ,

Interview with the team behind “Water City”

Screenshot_2016-01-06-21-35-21

The team behind Water City talks with us about using Cocos2d-x to create their new game.

1. Tell us where you came up with the idea for this game. What were your inspirations?

Screenshot_2016-01-06-21-36-30We developed the game during a Game Jam in our home city, and the event organizers provided the theme/topic of the game, which was water conservation. After researching for a while, we realized that to conserve more water there has to be a joint effort on the part of both the government and each and every individual in the community. From these insights we decided to make a game where the player has to develop a city through different social projects centered around technology and education.
(more…)

Posted in Uncategorized Tagged with:

Handling Non-Consumable IAP items using SDKBOX

Overview

Handling your IAP items is quite an easy task, if you are using SDKBOX plugins.
You need to be cautious with the following quick-checks to handle your IAP items.

This post primarily aims at informing developers the correct way to implement and test Non-Consumable IAP items using SDKBOX IAP plugin.

 

Setting up IAP using SDKBOX

At this point of time we assume that you have installed the IAP plugin from SDKBOX and are ready with the sample code injected into your sdkbox_config.json. If not, please go through the link – http://docs.sdkbox.com/en/plugins/iap/

(more…)

Posted in Uncategorized Tagged with: , ,

Interview with ET Bros.

icon

We are super happy to be able to interview Elias and Tedy from ET Bros. Authors of a game you may recall from your childhood! Do you have a good memory, hint, hint. On top of a great concept, they have brought a game to production using our new Cocos Creator game development tool.

0. Tell me a bit about yourself and team.

We are a team of two guys that are just getting into mobile gaming. My name is Elias Fares and my indie partner is Tedy Tadi. We’ve had experience building a mobile app before where we almost turned it into a startup after receiving funding for the app idea. After our initial venture, we decided to have a go at mobile gaming. We are long-time childhood friends who grew up together and want to build something fun together.

 

(more…)

Posted in Business Tagged with:

Microsoft improves Android development for Cocos2d-x!

Our friends at Microsoft are working to improve developing Android apps with Visual Studio 2015 and Cocos2d-x. It’s a lot of work and we surely do appreciate everything Microsoft does to help our community. What does this mean for you? Eventually a single .sln project to handle all of your Android development needs!

Read more about their efforts here.

Thank you Microsoft!

Posted in Announcement Tagged with: ,

Cocos Creator v1.1.2 released!

Cocos Creator 1.1.2 officially released!

We are excited to release version 1.1.2 of Cocos Creator. Cocos Creator is a new, unified, development tool that handles every step in the game development process.
(more…)

Posted in Announcement Tagged with:

Build a 5-Star Game with the SDKBOX Apteligent Plugin

Apteligent, formerly known as Crittercism, provides tools that empower mobile developers and product managers to prioritize, troubleshoot, and resolve issues that damage their users’ app experience. We’re thrilled to work with Cocos2d-x and the SDKBOX team to allow Apteligent to be easily installed on the platform.

Game developers face a tough challenge with the saturation of games in the App Store and increasing expectations from users. If your game is slow or crashing, the user will simply move on to your competitor. In addition, poor performance hurts ratings and reviews, which in turn discourages downloads from the App Store.
(more…)

Posted in Business Tagged with:

Setting up Facebook app for SDKBOX services

Overview

In order to correctly avail all the Facebook services provided by SDKBOX, follow the steps as mentioned in this article.

(more…)

Posted in Uncategorized Tagged with: , ,

Cocos2d-x v3.12 released!

We are happy to announce the release of Cocos2d-x v3.12!

This release brings bug fixes and API maintenance, as well as:

  • fixed Android performance issues
  • add experimental VR support
  • add Tizen support
  • Web engine performance improved in WebGL mode
  • support obb extension on Android

Read the full release notes.

Download it today!

Posted in Announcement Tagged with:

Interview with Petro Shmigelskyi, developer of Cardinal Land

header-2

For this developer we talk with Petro Shmigelskyi developer of Cardinal Land.

0. Tell us a bit about yourself and team.

2I am the cofounder of a small indie game development team called DogoTogo. It consists of two people; me as a technical guy, and artist Mihai Tymoshenko. We are situated in the picturesque city of Lviv, located in western Ukraine.

I have four years of experience in game development. At the moment I am involved in a robotics startup, which is my main job and takes most of my time. With the free time I have, I work on my indie games. Robotics and game development are my favorite technology interests. Even software solutions are similar in both physics based games and in robots. In games one is working with objects in the virtual world and in robotics you working with objects in the real world. Some algorithms and software architecture can be very similar.

Mihai Tymoshenko has many years of experience in the game development industry. He is the author of graphics for many successful games. The most famous of course is Contre Jour, which received the “iPad Game of the Year” Award by Apple in 2011. At the moment he is a freelance artist and is working on his comic book that recently published its first volume.

(more…)

Posted in Business Tagged with:

Categories