[gnome-2048] Make new-tile animation faster.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-2048] Make new-tile animation faster.
- Date: Fri, 1 Feb 2019 16:47:16 +0000 (UTC)
commit b3407d36ac653b1ebad3f5a4699206cb03760df2
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Fri Feb 1 17:45:15 2019 +0100
Make new-tile animation faster.
The new-tile animation is taking
the same time than the move one.
This feels a bit long, and sadly
blocks every move requests until
it is finished. Fixing that will
be hard, so for now just make it
twice as fast as it was. See #7.
src/game.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/game.vala b/src/game.vala
index 1226563..ebe8f0d 100644
--- a/src/game.vala
+++ b/src/game.vala
@@ -531,7 +531,7 @@ private class Game : Object
{
_show_hide_trans = new Clutter.TransitionGroup ();
_show_hide_trans.stopped.connect (_on_show_hide_trans_stopped);
- _show_hide_trans.set_duration (animate ? _animations_duration : 10);
+ _show_hide_trans.set_duration (animate ? _animations_duration / 2 : 10);
}
private void _on_show_hide_trans_stopped (bool is_finished)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]