Angband development tasks
Collapse
X
-
Comment
-
Stuff has moved around a lot. The UI now runs the game, as follows:
So run_game_loop() just does all the game stuff until the player gets to command again. I'm not sure if that helps - it's probably best to just start reading codeCode:/** * Play Angband */ void play_game(bool new_game) { /* Load a savefile or birth a character, or both */ start_game(new_game); /* Get commands from the user, then process the game world until the * command queue is empty and a new player command is needed */ while (!player->is_dead && player->upkeep->playing) { cmd_get_hook(CMD_GAME); run_game_loop(); } /* Close game on death or quitting */ close_game(); }
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.Comment
-
That gives me... dangerous ideas. I think I'll have a proper look at the code tomorrow. (No promises, &c.Stuff has moved around a lot. The UI now runs the game, as follows:
So run_game_loop() just does all the game stuff until the player gets to command again. I'm not sure if that helps - it's probably best to just start reading codeCode:/** * Play Angband */ void play_game(bool new_game) { /* Load a savefile or birth a character, or both */ start_game(new_game); /* Get commands from the user, then process the game world until the * command queue is empty and a new player command is needed */ while (!player->is_dead && player->upkeep->playing) { cmd_get_hook(CMD_GAME); run_game_loop(); } /* Close game on death or quitting */ close_game(); }
)
EDIT: Thanks, btw.Comment
Comment