37th Day A fun-android little game Jerk Off (i)

Source: Internet
Author: User

August 3, sunny day. " Green trees and dark summer long , tower reflection into the pond, crystal curtain Movement breeze, full of rose a hospital incense. "

Cocos2d is an open-source game development framework that makes it easy to develop 2D games. Now the main branch is the iphone version, you can develop 2D games on the iphone. It offers physics, sprites (sprites), Parallax reels (parallax scrolling), support for many features such as iphone touch and accelerator. There are many games that have been developed with COCOS2D in the App Store now.

If you want to use the Java language for the development of cocos2d games on andriod, you can download the relevant development files at this URL:

https://github.com/ZhouWeikuan/cocos2d, Enter the above URL, if not git or svn friends in the bottom right corner of the page point that "Download ZIP". When developing, simply copy the contents of the Libs directory from the cocos2d-android in the downloaded cocos-master to the Libs directory of your project .

First, import the download file, throughout the whole picture

1, the download is completed after decompression, there is a directory called "Cocos2d-android", because the development of Android, so import into this directory.

2, after the import, there will be two errors.

Correction Method: The first error is that the project is a library project, and the Libray property is removed from the property.

The second error is that the folder already contains a jar file, and the source code in SRC is duplicated, only need to delete the/libs/cocos2d-android.jar file to run.

3, in the simulator run, get a game with the various functions of the demo list, for your reference to use .



Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.