|
@@ -25,25 +25,24 @@ Source code is available under MIT license (use for free anywhere).
|
|
|
- MacOSX
|
|
- MacOSX
|
|
|
- Emscripten (web)
|
|
- Emscripten (web)
|
|
|
|
|
|
|
|
-
|
|
|
|
|
##Examples of code:
|
|
##Examples of code:
|
|
|
|
|
|
|
|
- ```cpp
|
|
|
|
|
- //create sprite and display it
|
|
|
|
|
- spSprite sprite = new Sprite();
|
|
|
|
|
- sprite->setResAnim(gameResources.getResAnim("anim"));
|
|
|
|
|
- sprite->attachTo(getStage());
|
|
|
|
|
- sprite->setScale(0.5f);
|
|
|
|
|
-
|
|
|
|
|
- //run animation tween
|
|
|
|
|
- sprite->addTween(TweenAnim(gameResources.getResAnim("anim2")), duration, loops);
|
|
|
|
|
-
|
|
|
|
|
- //run position tween
|
|
|
|
|
- sprite->addTween(Sprite::TweenPosition(x, y), duration, loops);
|
|
|
|
|
-
|
|
|
|
|
- //handle events
|
|
|
|
|
- sprite->addEventListener(TouchEvent::CLICK, clickHandler);
|
|
|
|
|
- ```
|
|
|
|
|
|
|
+```cpp
|
|
|
|
|
+//create sprite and display it
|
|
|
|
|
+spSprite sprite = new Sprite();
|
|
|
|
|
+sprite->setResAnim(gameResources.getResAnim("anim"));
|
|
|
|
|
+sprite->attachTo(getStage());
|
|
|
|
|
+sprite->setScale(0.5f);
|
|
|
|
|
+
|
|
|
|
|
+//run animation tween
|
|
|
|
|
+sprite->addTween(TweenAnim(gameResources.getResAnim("anim2")), duration, loops);
|
|
|
|
|
+
|
|
|
|
|
+//run position tween
|
|
|
|
|
+sprite->addTween(Sprite::TweenPosition(x, y), duration, loops);
|
|
|
|
|
+
|
|
|
|
|
+//handle events
|
|
|
|
|
+sprite->addEventListener(TouchEvent::CLICK, clickHandler);
|
|
|
|
|
+```
|
|
|
|
|
|
|
|
##Features:
|
|
##Features:
|
|
|
- Programming language is C++.
|
|
- Programming language is C++.
|
|
@@ -78,4 +77,4 @@ And this is not all. There are a lot of features, but it is easy to use them, fr
|
|
|
|
|
|
|
|
|
|
|
|
|
##Contacts
|
|
##Contacts
|
|
|
-You could find more information on [oxygine.org](http://oxygine.org)
|
|
|
|
|
|
|
+You could find more information on [oxygine.org](http://oxygine.org)
|