changeset 44:7d9af44f095b

Demo of concurrent words
author Thinker K.F. Li <thinker@branda.to>
date Sat, 09 Aug 2008 08:41:13 +0800
parents 6270230b9248
children 83ee36f19210
files src/X_main.c
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/X_main.c	Sat Aug 09 08:27:56 2008 +0800
+++ b/src/X_main.c	Sat Aug 09 08:41:13 2008 +0800
@@ -311,8 +311,18 @@
 	
 	MB_TIMEVAL_SET(&start, 3, 0);
 	MB_TIMEVAL_SET(&playing, 2, 0);
+	act = mb_shift_new(0, 20, coord2);
+	mb_word_add_action(word, act);
+	
+	MB_TIMEVAL_SET(&start, 3, 0);
+	MB_TIMEVAL_SET(&playing, 2, 0);
 	word = mb_progm_next_word(progm, &start, &playing);
-	act = mb_shift_new(0, 20, coord2);
+	act = mb_shift_new(0, -20, coord1);
+	mb_word_add_action(word, act);
+	
+	MB_TIMEVAL_SET(&start, 3, 0);
+	MB_TIMEVAL_SET(&playing, 2, 0);
+	act = mb_shift_new(0, -20, coord2);
 	mb_word_add_action(word, act);
 	
 	gettimeofday(&tv, NULL);