Practical development of COCOS2D-X Project: Analysis and realization of the basic class of Kungfu boy

Source: Internet
Author: User

Practical development of COCOS2D-X Project: Analysis and realization of the basic class of Kungfu boy

Cocos2d-x Real-time project development: basic class analysis and implementation of Kung Fu Boys-course overview

  • Analysis and implementation of basic tool class of game project
  • Analysis and implementation of heroic entity class of game project
  • Analysis and implementation of a monster entity class with simple AI

I. Analysis and implementation of basic tool classes

  1. Introduction to frame animation related concepts
  2. Implementation of the animation creator and creation of a global data file

Frame animation (frames by frame)

is to break down animation actions in "continuous keyframes", that is, to draw different content by frame on each frame of the timeline so that it plays continuously and animates.

Related functions and classes involved

  • Animated frame Spriteframe
  • Frame Cache Spriteframecache

How animation is created

  • Required Parameters: Animation frame picture name, number of pictures, frame time interval, number of cycles
  • There are two ways to create a method

Practical development of COCOS2D-X Project: Analysis and realization of the basic class of Kungfu boy

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.