2015-02-25 17:12:48 +08:00
# cocos2d-x v3.5 Release Notes #
2015-01-15 08:59:03 +08:00
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE - RUN doctoc TO UPDATE -->
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
- [Misc Information ](#misc-information )
- [Requirements ](#requirements )
- [Runtime Requirements ](#runtime-requirements )
- [Compiler Requirements ](#compiler-requirements )
- [How to run tests ](#how-to-run-tests )
- [Mac OSX & iOS ](#mac-osx-&-ios )
- [Android ](#android )
- [Windows ](#windows )
- [Linux ](#linux )
- [How to start a new game ](#how-to-start-a-new-game )
2015-03-19 17:38:52 +08:00
- [v3.5 ](#v35 )
2015-03-13 17:18:29 +08:00
- [v3.5rc0 ](#v35rc0 )
- [Highlights of v3.5rc0 ](#highlights-of-v35rc0 )
- [Features in detail ](#features-in-detail )
- [More 3D particle features of (PU) supported ](#more-3d-particle-features-of-pu-supported )
2015-02-25 17:12:48 +08:00
- [v3.5beta0 ](#v35beta0 )
- [Highlights of v3.5beta0 ](#highlights-of-v35beta0 )
2015-03-13 17:18:29 +08:00
- [Features in detail ](#features-in-detail-1 )
2015-02-25 17:31:50 +08:00
- [3D Particles ](#3d-particles )
2015-03-13 17:18:29 +08:00
- [Supported PU features ](#supported-pu-features )
- [Particle usage ](#particle-usage )
2015-01-15 08:59:03 +08:00
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2014-01-07 08:23:06 +08:00
# Misc Information
2015-03-13 17:18:29 +08:00
* [Full Changelog ](https://github.com/cocos2d/cocos2d-x/blob/v3/CHANGELOG )
2014-05-20 07:56:33 +08:00
* v3.0 Release Notes can be found here: [v3.0 Release Notes ](https://github.com/cocos2d/cocos2d-x/blob/cocos2d-x-3.0/docs/RELEASE_NOTES.md )
2014-01-07 08:23:06 +08:00
# Requirements
## Runtime Requirements
* Android 2.3 or newer
* iOS 5.0 or newer
* OS X 10.7 or newer
* Windows 7 or newer
2014-05-20 07:56:33 +08:00
* Windows Phone 8 or newer
2014-07-06 20:53:17 +08:00
* Linux Ubuntu 14.04 or newer
2014-01-07 08:23:06 +08:00
## Compiler Requirements
2014-07-16 11:26:21 +08:00
* Xcode 5.1 or newer for iOS or Mac
2014-07-06 20:53:17 +08:00
* gcc 4.9 or newer for Linux
2014-11-29 13:20:21 +08:00
* ndk-r10c for Android
2014-05-20 07:56:33 +08:00
* Visual Studio 2012 or newer for Windows (win32)
* Visual Studio 2012 or newer for Windows Phone 8
2014-01-07 08:23:06 +08:00
2014-04-21 14:50:27 +08:00
## How to run tests
2014-03-04 18:15:30 +08:00
### Mac OSX & iOS
* Enter `cocos2d-x/build` folder, open `cocos2d_test.xcodeproj`
* Select `iOS` or `OS X` target in scheme toolbar
* Click `run` button
### Android
2014-03-07 08:37:33 +08:00
You can run the samples...
2014-03-04 18:15:30 +08:00
2014-03-07 08:37:33 +08:00
**Using command line:**
2014-03-04 18:15:30 +08:00
2015-01-06 09:55:44 +08:00
$ cd cocos2d-x
$ ./setup.py
$ cd build
$ ./android-build.py cpp-empty-test -p 10
$ adb install cocos2d-x/tests/cpp-empty-test/proj.android/bin/CppEmptyTest-debug.apk
2015-01-15 06:51:42 +08:00
2014-03-04 18:15:30 +08:00
Then click item on Android device to run tests. Available value of `-p` is the API level, cocos2d-x supports from level 10.
2014-03-07 08:37:33 +08:00
**Using Eclipse:**
2014-03-04 18:15:30 +08:00
2015-01-06 09:55:44 +08:00
$ cd cocos2d-x
$ ./setup.py
$ cd build
$ ./android-build.py cpp-empty-test -p 10
2015-01-15 06:51:42 +08:00
2014-03-04 18:15:30 +08:00
Then
* Import cocos2d-x Android project into Eclipse, the path used to import is `cocos/2d/platform/android`
2014-03-14 15:01:11 +08:00
* Import `cpp-empty-test` Android project into Eclipse, the path used to import is `tests/cpp-empty-test/proj.android`
* Build `cpp-empty-test` Android project and run
2014-03-04 18:15:30 +08:00
### Windows
* Enter `cocos2d-x/build` , and open `cocos2d-win32.vs2012.sln`
2014-03-14 15:01:11 +08:00
* Select `cpp-empty-test` as running target
2014-03-04 18:15:30 +08:00
* Click run button
### Linux
2015-01-06 09:55:44 +08:00
$ cd cocos2d-x/build
$ ./install-deps-linux.sh
$ cd ../..
2015-01-15 06:51:42 +08:00
2014-03-04 18:15:30 +08:00
Then
2015-01-06 09:55:44 +08:00
$ mkdir build
$ cd build
$ cmake ../cocos2d-x
$ make -j4
2015-01-15 06:51:42 +08:00
2014-03-04 18:15:30 +08:00
Run
2015-01-06 09:55:44 +08:00
$ cd bin/cpp-empty-test
$ ./cpp-empty-test
2015-01-15 06:51:42 +08:00
2014-03-06 14:44:33 +08:00
## How to start a new game
2014-05-20 08:05:05 +08:00
Please refer to this document: [ReadMe ](../README.md )
2015-03-19 17:38:52 +08:00
# v3.5
There are only some minor changes and bug fixes in this verison.
* EditBox: Color4B font color is supported
* Fix memory leak in AutoReleasePool
* Fix FileUtils:getWritablePath() return wrong path on Mac& Windows
2014-12-31 18:15:27 +08:00
2015-03-13 11:51:32 +08:00
# v3.5rc0
## Highlights of v3.5rc0
2015-03-13 17:18:29 +08:00
* More features of Particle(PU) is supported
* Disable reverse of MoveTo
* CsLoader: add callback when loading a CSB file
* Fix transparent Billboard and Sprite3D rendering error
* Fix Motionstreak does not work with MoveTo and MoveBy
* More bugs fixed
2015-03-13 11:51:32 +08:00
## Features in detail
2015-03-13 17:18:29 +08:00
###More 3D particle features of (PU) supported
* Observer: On Count Observer, On Emission Observer, On Expire Observer, On Position observer, On Clear Observer, On Time Observer, On Quota Observer, On Velocity Observer, On Collision Observer, On Event Flag Observer, On Random Observer.
* Event Handler: Do Enable Component Event Handler, Do Expire Event Handler, Do Placement Particle Event Handler, Do Stop System Event Handler, Do Affector Event Handler, Do Freeze Event Handler, Do Scale Event Handler.
* Behavior: Slave Behavior
2015-03-13 11:51:32 +08:00
2015-03-13 19:35:52 +08:00
Observer and Event Handler allow you to listen to the particle system and trigger some events. The Event handler can do something when the event happens. For example, there is a observer on the particle system, and it listens to the particle number when the number is greater than 100, it tirggers an event to stop the particle system. This allows you to create more complex particles. For more details, please refer to the Particle Universe User's Guide.
2015-03-13 18:09:47 +08:00
2015-02-25 17:12:48 +08:00
# v3.5beta0
2014-12-31 18:15:27 +08:00
2015-02-25 17:12:48 +08:00
## Highlights of v3.5beta0
## Features in detail
2014-12-31 18:15:27 +08:00
2015-02-25 17:12:48 +08:00
### 3D Particles
2015-01-06 09:51:17 +08:00
2015-03-13 15:08:09 +08:00
#### Supported PU features
2015-03-13 17:18:29 +08:00
* Render: Billboard Renderer, Box Renderer, Sphere Renderer, Entity Renderer, Ribbon Trail Renderer.
2015-03-13 15:08:09 +08:00
2015-03-13 17:18:29 +08:00
* Emitter: Point Emitter, Box Emitter, Sphere Surface Emitter, Line Emitter, Circle Emitter, Position Emitter, Slave Emitter.
2015-03-13 15:08:09 +08:00
2015-03-13 17:18:29 +08:00
* Affector: Gravity Affector, Linear Force Affector, Scale Affector, Sine Force Affector, Color Affector, Randomiser, Line Affector, Align Affector, Jet Affector, Vortex Affector, Geometry Rotator, Texture Rotator, Texture Animator, Particle Follower, Sphere Collider, Plane Collider, box Collider, Path Follower, Flock Centering Affector, Velocity Matching Affector.
2015-03-13 15:08:09 +08:00
#### Particle usage
2015-02-25 17:12:48 +08:00
It allows to import particles from Particle Universe (http://www.fxpression.com). The usage of particles is as follow,
2015-01-06 09:51:17 +08:00
2015-02-25 17:12:48 +08:00
Option 1, create 3D particle with particle (.pu) file and material file
2015-01-06 09:51:17 +08:00
```c++
2015-02-25 17:12:48 +08:00
auto rootps = PUParticleSystem3D::create("lineStreak.pu", "pu_mediapack_01.material");
addChild(rootps);
rootps->startParticleSystem();
2015-01-06 09:51:17 +08:00
```
2015-02-25 17:33:56 +08:00
Option 2, you can also create 3d particle with particle (.pu) file only, it will load all the material files in the material path
2015-01-06 09:51:17 +08:00
```c++
2015-02-25 17:12:48 +08:00
auto rootps = PUParticleSystem3D::create("advancedLodSystem.pu");
addChild(rootps);
rootps->startParticleSystem();
2015-01-06 09:51:17 +08:00
```
2015-02-25 17:12:48 +08:00
For more information, please refer to `cpp-tests/Particle3DTest`