gnome-games r8702 - trunk/gnometris



Author: jclinton
Date: Wed Feb 11 03:42:41 2009
New Revision: 8702
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8702&view=rev

Log:
Rework the fall animation a bit. I don't like EXP_INC.

We also fall a little faster.

Modified:
   trunk/gnometris/blockops.cpp

Modified: trunk/gnometris/blockops.cpp
==============================================================================
--- trunk/gnometris/blockops.cpp	(original)
+++ trunk/gnometris/blockops.cpp	Wed Feb 11 03:42:41 2009
@@ -70,9 +70,9 @@
 	fall_path(NULL)
 {
 	if (!fall_tml)
-		fall_tml = clutter_timeline_new_for_duration (180);
+		fall_tml = clutter_timeline_new_for_duration (120);
 	if (!fall_alpha)
-		fall_alpha = clutter_alpha_new_full (fall_tml, CLUTTER_ALPHA_EXP_INC,
+		fall_alpha = clutter_alpha_new_full (fall_tml, CLUTTER_ALPHA_RAMP_INC,
 				NULL, NULL);
 	if (!explode_tmpl)
 		explode_tmpl = clutter_effect_template_new (fall_tml,
@@ -599,7 +599,7 @@
 		return FALSE;
 	field->cell_width = field->width/COLUMNS;
 	field->cell_height = field->height/LINES;
-	field->rescaleField();
+	field->rescaleField ();
 	return FALSE;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]