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
- Introduction to frame animation related concepts
- 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