Browse Source

Merge pull request #21 from tony/patch-1

Fix C++ code sample highlighting in README
Denis Muratshin 10 years ago
parent
commit
69768b2d65
1 changed files with 17 additions and 18 deletions
  1. 17 18
      readme.md

+ 17 - 18
readme.md

@@ -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)