Sometimes we need to call methods in the Custom C ++ class in Lua. This process can be implemented using the tolua ++ tool.
The process is as follows:
1. handwritten a c ++ file in your project, xx. h and xx. cpp
2. Open cocos2d-x-2.2.2/tools/tolua ++ and write a. pkg file.
3. register the. pkg file you just compiled in the Cocos2d. pkg file.
4. modify the content of the build. sh File
5. Execute build. sh to generate a new luaco cos2d. cpp file, and
IOS6 and iPhone 5 have been released for a while, so for cocos2dx in yesterday released the latest support of the Cocos2d-2.0-x-2.0.3 released version before running in iOS6 there will be two problems (Himi has been iphone5 real machine debugging verification and solve)
First, we provide a solution to the problem that libcurl. a cannot be compiled using armv7s:
The following is a solution for the abnormal horizontal screen of games in iOS6:
1. First,
Article content from: http://cocos2d-x.org/wiki/How_to_Start_A_New_Cocos2D-X_GameMac OS X 10.9
Software Requirements
Xcode 4.6 (for iOS or Mac)
Gcc 4.7 for Linux or Android. For Android ndk-r9 or newer is required.
Visual Studio 2012 (for Windows)
Python 2.7.5
Create A New Project
$ cd cocos2d-x$ ./setup.py$ source ~/.bash_profile # may be ~/.bash_login or ~/.profile, depends on your environemnt
Installation environment: WINXP pro SP2 sql2005 vs2005Follow the most complete dnn 4.x Installation GuideThe following are the problems and solutions I encountered during installation:1. Install dotnetnuke4.x for the first time. After the installation is complete, run default. aspx to see cocould not found dotnetnuke_template.mdf?Solution: download the file from my blog, decompress the file, and put it in t
for the present python3 use of the people is very little pitiful. But why did you give up these versions? The answer is 2.6 and 3.3 have a lot of crossover. Syntax and features, the code can be compatible with these two versions.
String compatible. 2.6 and 3.3 support the same string syntax. You can use "foo" to represent the native string (2.x indicates that byte,3.x is Unicode), and U "foo" repres
Many beginners in Python will ask: Which version of Python should I learn? For this question, my answer is usually "first choose the Python tutorial that best suits you, which version of Python you use in the tutorial, and you use that version." Study the difference between the different versions. "But if you want to develop a new project in Python, how do you choose the Python version? I can responsibly say that most python libraries support both Python 2.7.
Objective
Contact game development time is not long, has been writing Lua, writing Lua is certainly no development, at least you will write. Write the client, must see Cocos2d-x. From today onwards, officially began to cocos2d-x learning journey.
has been doing the development of C + +, turned to see Cocos2d-x, from the language, there are not many problems. Fo
This week began to learn python, because the books are based on python2.x, and I installed the Python3.1, so the book is written in a lot of places do not apply to Python3.1, specifically on Google search on the 3.x and 2.x difference. It is hereby recorded in your own space for later convenience, or to be shared with friends who want to learn python.1. Performan
The Maketrans and translate functions are common methods for string character encoding. This article focuses on demonstrating its basic usage and the differences in operating under different versions. This article refers to the 2. The x version refers to more than 2.6 versions, and the 3.X version refers to more than 3.1 versions.The 2.X version divides the strin
Chinese Original: http://www.runoob.com/python/python-2x-3x.htmlUnicodePython 2 has an ASCII str () type, Unicode () is separate, not a byte type.Now, in Python 3, we end up with a Unicode (Utf-8) string, and a byte class: Byte and Bytearrays.Since the python3.x source file uses Utf-8 encoding by default, this makes the following code legal:Division operationThe division in Python is more sophisticated than other languages and has a very complex set o
Transferred from: http://www.cnblogs.com/codingmylife/archive/2010/06/06/1752807.html1. PerformancePY3.0 runs Pystone benchmark slower than Py2.5 by 30%. Guido that Py3.0 has great space for optimization, and can be used in string and shaping operations.To achieve a good result of optimization.Py3.1 performance is 15% slower than Py2.5, and there's a lot of room for improvement.2. Encodingpy3.x source files use utf-8 encoding by default, which makes t
(1) Use terminal commands to open the. bash_profile file, command: Open. Bash_profile (Enter)After opening the file, configure the Android SDK, Ant, NDK and other environment variables, my in the Android directory, so configured as follows (for the directory, for reference only):# sdkexport Android_sdk_root=android/android-sdk-macosxexport PATH=$PATH: $ANDROID _sdk_ Rootexport PATH= $PATH: $ANDROID _sdk_root/platform-tools# ndkexport ndk_root=android/android-ndk- R9dexport PATH=$PATH: $NDK _roo
1. PerformanceThe Py3.0 runs Pystone benchmark 30% slower than Py2.5. Guido that Py3.0 has a great space for optimization, in string and plastic operations can beTo achieve good optimization results.Py3.1 performance is 15% slower than Py2.5, and there is a lot of room for improvement.
2. CodeThe py3.x source file uses Utf-8 encoding by default, which makes the following code legal:>>> China = ' Chinese '>>>print (China)The
3. Grammar1) Remove the 2
Ghost is a blog system developed using node. JS, compared to the use of PHP developed WordPress more lightweight and friendly, so this site has been switched from WordPress to Ghost, this article introduced in the Debian 8.x and Ubuntu 16.04 under the building Ghost's TutorialAll operations in this article are done under root user, please switch on your ownFirst, update the systemupdate apt-get upgradeIf you use the Debian 8.
characteristic
struts1.x
Struts2
Action class
struts1.x requires the action class to be extended from an abstract base class. A common problem with struts1.x is programming for abstract classes rather than interface-oriented programming.
The STRUTS2 action class implements an action interface, along with other interfaces, to implement
In JavaScript, it's easy to tell if a string is Chinese. Like what:
var str = "PHP programming";
if (/^[\u4e00-\u9fa5]+$/.test (str)) {
Alert ("The string is all in Chinese");
} else {
Alert ("This string is not all Chinese");
}
Taken for granted, in PHP to determine whether the string is Chinese, it will follow this idea:
$STR = "PHP programming";
if (Preg_match ("/^[\u4e00-\u9fa5]+$/", $str)) {
Print ("The string is all Chinese");
} else {
Print ("This string is not all Chinese");
}
?>
How
Virtual machine running Linux prompt "This host supports Intel Vt-x, but Intel Vt-x is disabled. "The questionChanged a new notebook, installed a virtual machine, imported the previous Linux system image, a problem.Prompt for the following error message: - - -bit operation. This host supports Intel VT-X, but Intel vt-x
springboot2.x Best Practice PrefaceThis series of articles, from zero-based contact springboot2.x to new releases, basic introductory use, hot deployment, to the integration of various mainstream frameworks redis4.x, Message Queuing acivemq, ROCKETMQ, etc., Search Framework ElasticSearch5.6 version, to Web-flux reactive programming, to actuator monitoring applica
This host supports the Intel Vt-x, but the Intel Vt-x is disabled.Intel vt-x might be disabled if it have been disabled in the Bios/firmware settings or the host have not been power-cycled s Ince changing this setting.(1) Verify that the Bios/firmware settings enable Intel vt-x and disable ' trusted execution. '(2) Pow
In the application of JavaScript, it is often encountered to determine whether two objects/values are equal. Some indicate that they look the same, but they are not the same. There are some special cases that we need to identify.Reference typeThey are all reference types, and the stored space is allocated from the heap. The value at the variable is a pointer to the memory where the object is stored.Two objects with the same properties.var a = { x : 1
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.