[gnome-games] Changed the animation when the level load & worm appear on the board
- From: Jason Clinton <jclinton src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-games] Changed the animation when the level load & worm appear on the board
- Date: Wed, 14 Oct 2009 02:52:45 +0000 (UTC)
commit b032878a654df0902d760bced5393b80321ff3e5
Author: Guillaume Beland <guillaume beland gmail com>
Date: Tue Aug 4 18:26:57 2009 -0400
Changed the animation when the level load & worm appear on the board
gnibbles/board.c | 8 ++++++--
gnibbles/worm-clutter.c | 6 +++++-
2 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/gnibbles/board.c b/gnibbles/board.c
index 0c67bb7..0957efe 100644
--- a/gnibbles/board.c
+++ b/gnibbles/board.c
@@ -163,8 +163,12 @@ gnibbles_board_load_level (GnibblesBoard *board)
clutter_actor_raise (board->level, board->surface);
clutter_actor_set_opacity (board->level, 0);
- clutter_actor_animate (board->level, CLUTTER_EASE_IN_QUAD, 410,
- "opacity", 255,
+ clutter_actor_set_scale (CLUTTER_ACTOR (board->level), 1.5, 1.5);
+ clutter_actor_animate (board->level, CLUTTER_EASE_OUT_CIRC, 510,
+ "opacity", 0xff,
+ "fixed::scale-gravity", CLUTTER_GRAVITY_CENTER,
+ "scale-x", 1.0,
+ "scale-y", 1.0,
NULL);
}
diff --git a/gnibbles/worm-clutter.c b/gnibbles/worm-clutter.c
index 705a983..469340c 100644
--- a/gnibbles/worm-clutter.c
+++ b/gnibbles/worm-clutter.c
@@ -542,7 +542,11 @@ gnibbles_worm_show (GnibblesWorm *worm)
{
gnibbles_worm_add_actor (worm);
clutter_actor_set_opacity (worm->actors, 0);
- clutter_actor_animate (worm->actors, CLUTTER_EASE_IN_QUAD, 410,
+ clutter_actor_set_scale (worm->actors, 2.0, 2.0);
+ clutter_actor_animate (worm->actors, CLUTTER_EASE_OUT_CIRC, 510,
+ "scale-x", 1.0,
+ "scale-y", 1.0,
+ "fixed::scale-gravity", CLUTTER_GRAVITY_CENTER,
"opacity", 0xff,
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]