示例#1
0
int main() {

  int max_row, max_col; // size of standard screen
  int row, col;         // current row and column of rogue
  int key;              // key pressed by user

  initialize_gui();

  /* Place rogue in his initial position. */
  row = 0;
  col = 0;
  mvaddch(row, col, '@');

  /* Move rogue based on user input. */
  while ((key = getch()) != 'q') {
    mvaddch(row, col, ' ');
    update_pos(key, row, col);
    mvaddch(row, col, '@');
    refresh();
  }

  endwin();

  return 0;
}
示例#2
0
文件: menu.c 项目: AldanisVigo/CPP
int main(int argc, char** argv){
	//Initialize GTK-3.0
	gtk_init(&argc,&argv);
	//Create the gui components
	initialize_gui();
	//Run the main entry point for gtk application
	gtk_main();
	return 0;
}