The main thing you need to think about for your main loop is, do you want a real time type of game (I.e. if you sat still and didnt do anything monsters etc would still be wandering around and can attack you) or a more turn based game where everything waits for you to make a move (E.g. When you hit a key to move the character, it will at this point move all the monsters).
For the first scenario, a very basic main loop would probably look like:
{
> Has a key been pressed? If so Process key
> Has a new time intival passed? If so Move Monsters
> UpdateTime Is it day or night? Set colour sceme accodingly
}
With this method you may make a time intival 5 seconds, so the monsters wil move every 5 seconds whether you press a key ot not.
For the second scenario a very basic main loop would be
{
> Check for a key press
> If key pressed
> Process Key
> Move Monsters
> Update Time
}
In this method, moving your character triggers another time intival so the monsters move when you do.
I hope this is some help.
Jas
----
Http://www.jsun.co.uk