示例#1
0
void new_game() {
  set_grid_to_zero();
  srand(time(NULL));
  draw_tetramino();
  new_shape();
  fill_current_shape(current_shape.index + 1);
  update_score();
  gtk_widget_queue_draw(application.window);
  g_timeout_add(500, timeout, NULL);
}
示例#2
0
void show_current_shape(void) {
  fill_current_shape(current_shape.index + 1);
}
示例#3
0
void hide_current_shape(void) {
  fill_current_shape(0);
}