Esempio n. 1
0
void init_pacman(WINDOW* wnd, int num_ghosts)
{
    pacman_wnd = wnd;
    pacman_wnd->width = MAZE_WIDTH;
    pacman_wnd->height = MAZE_HEIGHT + 1;
    pacman_wnd->cursor_char = GHOST_CHAR;

    draw_maze();

    int j;
    for (j = 0; j < num_ghosts; j++)
        create_new_ghost();
}
Esempio n. 2
0
void ghost_proc(PROCESS self, PARAM param)
{
    create_new_ghost();
}