[gnome-games/gnibbles-clutter] Added MarioBros-like animation whena part of the worm disapear...
- From: Guillaume Béland <guillaubel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-games/gnibbles-clutter] Added MarioBros-like animation whena part of the worm disapear...
- Date: Tue, 4 Aug 2009 22:47:29 +0000 (UTC)
commit cc633ee8bb7b0d452d23c1e90b2fd925c07b19a9
Author: Guillaume Beland <guillaume beland gmail com>
Date: Tue Aug 4 18:45:48 2009 -0400
Added MarioBros-like animation whena part of the worm disapear...
Still not viewable in the game because the actor is hiden before the animation
complete
gnibbles/worm-clutter.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gnibbles/worm-clutter.c b/gnibbles/worm-clutter.c
index 49c28bd..3b09223 100644
--- a/gnibbles/worm-clutter.c
+++ b/gnibbles/worm-clutter.c
@@ -1007,10 +1007,16 @@ gnibbles_worm_shrink (GnibblesWorm *worm, gint shrinksize)
return;
} else if (actor_size == shrinksize) {
//remove tail
+ clutter_actor_animate (tmp, CLUTTER_EASE_IN_ELASTIC, 420,
+ "opacity", 0,
+ NULL);
gnibbles_worm_remove_actor (worm);
return;
} else {
//remove tail, reduce the shrinksize variable by the tail's size
+ clutter_actor_animate (tmp, CLUTTER_EASE_IN_ELASTIC, 420,
+ "opacity", 0,
+ NULL);
gnibbles_worm_remove_actor (worm);
shrinksize -= actor_size;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]