#include <sys/time.h>
#include <time.h>
#include <ctype.h>
+#include <math.h>
#include "word-game.h"
#include "demo-item.h"
for (i = 0; i < num_letters; i++) {
get_letter_position (indices[i], &x, &y);
- goo_canvas_item_animate (letter_items[i],
- x - GOO_DEMO_ITEM (letter_items[i])->x,
- y - GOO_DEMO_ITEM (letter_items[i])->y,
- 1.0, 0,
- 1000, 40,
- GOO_CANVAS_ANIMATE_FREEZE);
+ goo_demo_item_move_to (letter_items[i], x, y);
}
return TRUE;
get_letter_position (i, &x, &y);
letter_items[i] = goo_demo_item_new (root,
x, y,
- LETTER_SIZE, LETTER_SIZE,
+ LETTER_SIZE,
word[i],
NULL);