The first article of "Don't save me" in Cocos2d-x3.0 game examples

Source: Internet
Author: User

What can we learn?

This is a very simple game, but it uses a lot of things (for beginners). At least for an instance, it actually involves a little more.

 

Through this game instance, you are cute (Xiao RuO: What about the unlovable person ?), You can learn the following knowledge points:

1. simple use of Cocos2d-x3.0 physical Engine

2. Read the Json file as a monster and item Configuration

3. Use Tiled maps to implement visual level editing (very powerful, I especially like this part)

4. Use Cocostudio to quickly create the UI

5. tucao

6. Make a simple physical casual game using the previous five points of knowledge ~

(Xiao RuO: What is it? Don't mess up some strange things, OK ?)

 

The above are the most important knowledge points, and there are many scattered knowledge points:

A. Background of infinite loop scrolling

B. No.

(Xiao RuO: You ** (harmonious) Ah !)

 

Nagging

It's hard for me to describe what a game is, especially when it comes to the level editor, everyone will feel the same way as me-it can be any game.

 

If you want to first look at the back of this game is what it is, please download: http://donsaveme.bmob.cn/(this is the full version)

This is the full version, but this tutorial cannot explain that much (or you have to write dozens of articles), so I chose to explain the most important part-level.

 

Well, I don't like to talk nonsense, and I'm not so nagging (it's strange). Let's get started ~

 

The first article is the preface, is to some friends who have just been in contact with the Cocos2d-x3.0, a simple explanation of the steps to create a project, has the foundation of friends, can casually scan a few eyes.

 

Cocos2d-x3.0 official version is just recently come out, and my "Don't save me" is written in RC1 version, In order to synchronous explanation, I will re-use Cocos2d-x3.0 write (copy) again. Of course, it's not all about it. I will not elaborate on the implementation of the level, the victory, failure interface, start interface, and opening animation.

 

Most importantly, this tutorial is based on the Windows 7 + VS2013 environment... Well.

 

The final project of this series of tutorials is here to download: http://yunpan.cn/QNC24JQSinzcX access password d3de

This is a lite version, that is, the version explained in this tutorial. It has a small amount of code, but it is detailed because it is intended for beginners ).

 

Create a project

Environment build I don't say LA, this if not clear can look at this post: http://www.cocoachina.com/bbs/read.php? Tid = 199238

 

Cocos2d-x to create a project can be said to have been evolving, never stopped, from plug-ins, command line to the visual interface, and finally to the command line (small if: how do I feel wrong ?)

 

The official version 3.0 is easy to create a project. First, open cmd, enter the engine folder directory, and then enter the following command:

Cocos new DontSaveMe-p com. benmutou. study. dsm-l cpp-d projects

 

Cocos2d-x3.0 game instances-Don't save me-1-Create Project commands

 

After running the program, go to the path you specified and check that the project has been generated. I will put it in the projects directory.

 

That, you don't think that the cocos2d-x-3.0beta in the picture, it means that I am deceiving everyone, in fact, I am using the official version, just because of some historical reasons, directory name can not be changed, so keep the beta name.

 

Then, open the sln file under the project proj. win32 Directory, and compile it to see if it is successful. If it is successful, you can officially start this tutorial.

 

Cocos2d-x3.0 game instance-the first part of "Don't save me"-running Engineering

 

OK. Next, we will introduce how to create a physical world.

 

 

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.