The test water as: Choochoo · 2youyou2

Chocho

My first game, use CocosCreator production.

Appstore : https://itunes.apple.com/app/id1189428283

Simple teaching points dongxiao
1.gif

Game level dynamic efficiency
2.gif

End points thanks to dynamic efficiency
3.gif

Technologies used

two Lite

Used in this game a lot more animated, and these animations are dynamically generated by the code, including the opening and ending text effects. Controlled by the animation program can be made very fine effect, and can be dynamically adjusted according to the environment.

cocos own animation library is the action that set, the system itself is migrating from cocos2d-x was over, and there is no advantage to good use js syntax. For example, at the same time you want to change the node color and position, to remember the names of each attribute with the action, and have a similar cc.sequence of action together, really tired.

Here is my selection of TweenLite animation library, it can run well on the web and native end.
Very simple to use, just remember that TweenLite.tothis method is almost the same.

Example:

      
      
1
      
      
TweenLite.to(node, 2, { x: 200, y: 200});

TweenLite is the foundation of animation library, Greensock there is an enhanced version of the animation library: TweenMax, TimelineLite, TimelineMax. A more detailed description can be related to GASP point of view.

Level Editor

For faster editing levels, specially in the Creator for Choochoo a custom level editor, using a custom Gizmo technology.
It is simple to implement, draw all the possible points and routes in the level editor, click on the relevant route points and generate the corresponding data, and then update the drawing based on new data.
Coupled with the property editor on the inspector, a level editor becomes very simple.

Chocho

Original: big column  of water as a test: Choochoo · 2youyou2


Guess you like

Origin www.cnblogs.com/chinatrump/p/11596783.html