[gnome-games/gnibbles-clutter] Changed the animation when the level load & worm appear on the board
- From: Guillaume Béland <guillaubel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-games/gnibbles-clutter] Changed the animation when the level load & worm appear on the board
- Date: Tue, 4 Aug 2009 22:28:04 +0000 (UTC)
commit 9b0872c6da420fbc4ba92639ab1824936be2b3c9
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 aad580b..9e1a766 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 469466e..49c28bd 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]