seed r834 - trunk/examples/same-seed
- From: hortont svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r834 - trunk/examples/same-seed
- Date: Tue, 3 Feb 2009 08:59:57 +0000 (UTC)
Author: hortont
Date: Tue Feb 3 08:59:57 2009
New Revision: 834
URL: http://svn.gnome.org/viewvc/seed?rev=834&view=rev
Log:
Oh wow Same Seed animations!
Modified:
trunk/examples/same-seed/board.js
Modified: trunk/examples/same-seed/board.js
==============================================================================
--- trunk/examples/same-seed/board.js (original)
+++ trunk/examples/same-seed/board.js Tue Feb 3 08:59:57 2009
@@ -196,8 +196,13 @@
li.set_light_x(real_x);
li.set_light_y(parseInt(y,10));
- li.set_position(real_x * tile_size + offset,
- (tiles_h - y - 1) * tile_size + offset);
+
+ li.anim = li.animate(Clutter.AnimationMode.EASE_OUT_BOUNCE, 500,
+ {
+ x: [GObject.TYPE_INT, real_x * tile_size + offset],
+ y: [GObject.TYPE_INT, (tiles_h - y - 1) * tile_size + offset]
+ });
+ li.anim.timeline.start();
if(!li.get_closed())
empty_col = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]