aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/samegame/SamegameCore
Commit message (Collapse)AuthorAgeFilesLines
* Adhere to examples standards more consistentlyAlan Alpert2012-01-2012-742/+0
| | | | | | | Example subfolders should be named 'content' Change-Id: I23f5b0ef44108f54f9b1703f04faf02cafc78efb Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-055-5/+5
| | | | | Change-Id: I0a8d99909cac867dce72da70b1bbcb649989a51b Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Augment Samegame with resource efficient particle systemAlan Alpert2011-12-142-1/+2
| | | | | | | | | | | The particle system cannot automatically turn itself off when it's not needed, however it is easy enough to do so manually. This change does so in SameGame as an example. Task-number: QTBUG-22923 Change-Id: I5f2b3e572222f03c9412fd24c40276529e7d0e7e Reviewed-by: Alan Alpert <alan.alpert@nokia.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* pulse calls should use ms instead of sKent Hansen2011-09-291-1/+1
| | | | | | | | | | This updates the examples to reflect the API change that was done in commit f0dc82305eb9c9297d73cba67634e9e4bc4f3b84 Change-Id: Id08896cbe3a47adc0b02797faddf50281a24c625 Reviewed-on: http://codereview.qt-project.org/5702 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Refactor SpriteEngine out of StochasticEngineAlan Alpert2011-09-132-4/+4
| | | | | | | | | | | | Also add ParticleGroups which use only StochasticStates Simplistic change for now, just to focus the API for the particle system. ParticleGroup elements replace the particleStates property on the system, and the term "group" is now used more consistently. Change-Id: I6456f9c521b8166ccd94ea953275557bcfbf6423 Reviewed-on: http://codereview.qt-project.org/4699 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Particles module refactoring en masseAlan Alpert2011-09-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All the little changes in one commit. StochasticDirection -> Direction AngledDirection -> AngleDirection TargetedDirection -> TargetDirection QSGCustomParticle is now Affector's implementation (C++ only refactor) FollowEmitter -> TrailEmitter Kill -> Age and gained lifeLeft property ModelParticle is removed, use ItemParticle instead. Added RectangleShape to replace Shape for the case of Rectangles Abstract Types are no longer createable, despite sensible defaults. GLSL variables in CustomParticle now begin with qt_ JS variables are now such that x,vx,ax are current (old ones are now initialX, initialVX, initialAX). Same for y. A few more were extended. Emitter::emitCap -> Emitter::maximumEmitted. Set to -1 for noCap: false Emitter::noCap is gone. Emitter::emitting -> Emitter::enabled Affector::active -> Affector::enabled Affector::collisionParticles -> Affector::whenCollidingWith Affector::signal is gone. PointAttractor -> Attractor Attractor/Wander::physics -> ::affectedParameter ParticleSystem::fastForward is gone ParticleSystem::startTime is gone (use Emitter::startTime) ParticleSystem::clear -> ParticleSystem::empty And various Doc fixes. Change-Id: Ia3b02b987f692e6f1bd14c42e575381bdfb7bbb5 Reviewed-on: http://codereview.qt-project.org/4231 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* SameGame refactorAlan Alpert2011-08-156-28/+212
| | | | | | | | | | A little more imperative with dialogs controlled from script, but better separation of GameArea and UI. Also removes old highscore script that was never used. Change-Id: Ib244acc90b0fc92b3a6534169e429b6acef0838e Reviewed-on: http://codereview.qt.nokia.com/2798 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Move the demos to the examples folder.Casper van Donderen2011-07-0711-0/+557
Change-Id: I094383099bf116357a3bb6eed0052d6d14408558 Reviewed-on: http://codereview.qt.nokia.com/1059 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>